[SOLVED] proper use of returnid?

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

[SOLVED] proper use of returnid?

Post 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
Last edited by qzy on Thu Jul 26, 2007 8:56 pm, edited 1 time in total.
qzy
Forum Members
Forum Members
Posts: 48
Joined: Sun Feb 05, 2006 8:27 am

Re: [SOLVED] proper use of returnid?

Post 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
Post Reply

Return to “Developers Discussion”