Using a <?php include ();?> - how?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
scotch33
Dev Team Member
Dev Team Member
Posts: 285
Joined: Tue Feb 14, 2006 9:56 pm

Using a <?php include ();?> - how?

Post by scotch33 »

I have a file containing links and images for marketing and SEO that I pop into the backend of all my sites using the following syntax...



However, in CMSMS isn't liking that.  Can someone point me at where I can research how i should be doing this in CMSMS.

Thanks!

Scotch
cyberman

Re: Using a <?php include ();?> - how?

Post by cyberman »

Create a user defined tag named myfile with

Code: Select all

include (http://.mywebsitename/myfile.php);
inside (admin panel -> extensions). Now you can call it on every page with {myfile}
cdstg

Re: Using a <?php include ();?> - how?

Post by cdstg »

Hi I guess if its working for your existing site as include (http://&nbsp; eg http then you have url fopen enabled

Anyway in anwser to your guestion go to

 
Extensions then
    * User Defined Tags

make a new tag but don't put the in that tag just the include (http://www.yourdomain.com/page.htm);

then in your template for the site that you are using place {yourtagname}
that way it will call you tag on everypage if its just on one page you need that then don't do it in the template just in the page itself

The other option would be to make a Global Content Block  under content menu and place the content not the php include  in there eg if its stuff that does not change then in your template enter {global_content name='Name of Global Content Block'}

hope that helps




 
Post Reply

Return to “CMSMS Core”