Change content template from module

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
User avatar
vaflan
Forum Members
Forum Members
Posts: 18
Joined: Mon Feb 11, 2013 3:05 pm
Location: <?='Latvia'?>

Change content template from module

Post by vaflan »

Good time.

It is possible to change the page template from the module?

The problem is this:
  one content, and when prompted for the module, it changes the content template $returnid, at the time. If you load a different params, they was again other template.

Sorry for bad English ;/
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12709
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Change content template from module

Post by Dr.CSS »

Short answer, No, but most modules have a detailpage= parameter so you can point it at a page that uses a different page template...
User avatar
vaflan
Forum Members
Forum Members
Posts: 18
Joined: Mon Feb 11, 2013 3:05 pm
Location: <?='Latvia'?>

Re: Change content template from module

Post by vaflan »

Dr.CSS wrote:Short answer, No, but most modules have a detailpage= parameter so you can point it at a page that uses a different page template...
Tnx for answer, but this need change!
It`s really needed for modules.
psy
Power Poster
Power Poster
Posts: 463
Joined: Sat Jan 22, 2005 11:19 am

Re: Change content template from module

Post by psy »

See http://forum.cmsmadesimple.org/search.p ... mit=Search

Try using the same principle to replace the default returnid to the returnid of the page you want to display.
Post Reply

Return to “Developers Discussion”