i'm about to modify the news-module to work together with serveral apis. Therefor I need to generate the url of the detailpages after adding an article in backend.
Detaillinks in the newsmodule are build like this:
The part missing is *PAGEID* which is the content_id of the frontend-page where the news-module is embedded.news/*NEWSID*/*PAGEID*/*NEWSTITLE*/
index.php?mact=News,cntnt01,detail,0&cntnt01articleid=*NEWSID*&cntnt01returnid=*PAGEID*
These links could be used with PAGEID=0 so that the default page is loaded.
BUT: It could be a problem if the default-page has another template than the news-page. The news-page isn't select in the menu too.
One way would be:
Code: Select all
SELECT content_id FROM cms_content_props WHERE content LIKE '%{News%'
Is there another possibility to get the content-ID of the frontend-page in which the news-module is currently embedded?
Is this frontend-page somehow connected with the backend?
Does someone has another idee how to solve that problem?
I would appreciate any advice.