This is the community forum. For a developer response use the Client Area.
Follow us on Facebook, Twitter and YouTube!

Permalinks
#10

(28-Feb-2013, 11:23 PM)JMG Wrote:  I did what you said over their and it worked great. There seems to be a different effect though:

The permalink for a comment is now:

http://www.domain.com/Article-Name/?cmtx...mtx_perm_5

If I open that url, the page has no comments. The url that does show the comments and will go directly to the comment associated with the permalink is

http://www.domain.com/Article-Name/#cmtx_perm_5

but it's not getting written that way.

"?cmtx_perm=5#cmtx_perm_5" is the correct URL. There needs to be the cmtx_perm=5 part so that the script can calculate what page to load. Having #cmtx_perm_5 without cmtx_perm=5 might work for now but once you have multiple pages it won't. I'm not sure why it's not displaying any comments. I assume you're using the cmtx_url keyword for the $cmtx_page_id variable in your integration code, so what's probably happening is that the URL is different to the one in Manage -> Pages so it's creating a new page which has no comments. The code which handles the automatic new page creation knows to remove ?cmtx_perm=5 from the URL before checking to see if it already exists in Manage -> Pages so it should be able to deal with that. But it might be better to supply the $cmtx_page_id variable with a more reliable value, maybe supply it with just the variable1=someValue or variable2=anotherValue part of the URL, instead of the whole thing.

Have you completed the interview?
Reply


Messages In This Thread
Permalinks - by purldator - 13-Mar-2012, 02:05 AM
RE: Permalinks - by Steven - 14-Mar-2012, 09:43 PM
RE: Permalinks - by JMG - 27-Feb-2013, 06:18 AM
RE: Permalinks - by Steven - 27-Feb-2013, 01:01 PM
RE: Permalinks - by JMG - 27-Feb-2013, 06:36 PM
RE: Permalinks - by Steven - 28-Feb-2013, 07:17 PM
RE: Permalinks - by JMG - 28-Feb-2013, 08:39 PM
RE: Permalinks - by Steven - 01-Mar-2013, 05:59 PM
RE: Permalinks - by JMG - 28-Feb-2013, 11:23 PM
RE: Permalinks - by Steven - 01-Mar-2013, 06:34 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)