01-Mar-2013, 06:34 PM
(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.