Page 1 of 1

how to include php script?

Posted: Tue Oct 13, 2009 7:47 pm
by docman
Hi, I am wondering what is the limit of implementing php codes in CMSMS.

So far my understanding is:

Tags:
- one can insert bits of php code without the labels et the beginnignand the end
- these tags can be included into content
? can these tags be executed AUTOMATICALLY or only by clicking on the tag ?

Plugins:
- these are stand-alone php programs
? are these equavalent to MODULES ?

{literal}{/literal}
? can someone explain the use of these tags ?
? is my understanidng correct that these tags separate any code from the content of the page, hence allowing their execution ?
? would the execution be AUTOMATIC or should it be activated in any ways ?

My motivation in asking all this is to find out what is the extent of the use of the vast body of php code out there with CMSMS.

Thanks a lot.

Re: how to include php script?

Posted: Tue Oct 13, 2009 7:54 pm
by RonnyK
Tags in the backend (Extensions -> Tags) are shared functions which are stored in the \plugins folder. They are similiar in a way to modules, as they can be in the default set, but they DONT have a admin-screen, tables etc..... Just logic.

User Defined Tags (Extensions -> User Defined Tags) are small parts of script you can create yourself, these are in the database.

Withing {literal}{/literal} in the template an external call can be made like js-call....

{literal}

{/literal}

Ronny