Page 1 of 1

[SOLVED] proper use of returnid?

Posted: Thu Jul 26, 2007 11:51 am
by qzy
Hi there,


I've made a small modification against FckEditor's CMSContent plugin so that I'm able to insert links to related articles, which I heavily missed from the system before. So when searching for related articles I get a list of  news_id elements (the IDs of those articles which matched the search crtiteria). Thus this is the only information I have about the news article  and this is the point where I need to build a link which points to the article. However to build a proper link, I need to get the returnid also, which I couldn't determine.
I tried to use this code snippet:

Code: Select all

$contentops =&$GLOBALS["gCms"]->GetContentOperations();
$return_id = $contentops->GetDefaultPageID();
But this doesn't work, it routes back to the deafult page.

So what does returnid describe exactly? And how to determine it?

Thanks in advance,
Balint

Re: [SOLVED] proper use of returnid?

Posted: Thu Jul 26, 2007 8:59 pm
by qzy
After looking at the code of the news module I realized, that returnid cannot be determined in advance. It always gets declared on-the-fly during page render.


Balint