Can I add php in a template

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
megadouwe
New Member
New Member
Posts: 3
Joined: Mon Jan 10, 2011 10:17 am

Can I add php in a template

Post by megadouwe »

Hi there,

I hope this is the right part of the forum to ask this question.If not? You may move this question to the approriate forum part.

I want to add some own PHP code in a template. Is that possible? I want to add the code in the menu template. So I can output the text of the page with the corresponding menuitem.


I hope you can help me!

Thanks!!

With kind regards,

Douwe
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Can I add php in a template

Post by Jos »

Yes, You can do that by using a "User Defined Tag" (UDT) See under Extensions.

Note that you do not use <?php as a start there
megadouwe
New Member
New Member
Posts: 3
Joined: Mon Jan 10, 2011 10:17 am

Re: Can I add php in a template

Post by megadouwe »

Thank you for your quick reply!

Is it possible to get read the variables made from within the menu template?

My page doesn't reload when a menuitem is clicked. You can check the example on: http://test.l2mdesigners.com/home/index.html

I just want to load all the content on entering this page and show / hide the content when clicking on the menuitem. Or is there another way to do this...

Hope to hear from you soon!

Thnks!
Post Reply

Return to “Developers Discussion”