Page 1 of 1
Using a <?php include ();?> - how?
Posted: Thu Jun 15, 2006 10:02 am
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
Re: Using a <?php include ();?> - how?
Posted: Thu Jun 15, 2006 10:28 am
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}
Re: Using a <?php include ();?> - how?
Posted: Thu Jun 15, 2006 10:28 am
by cdstg
Hi I guess if its working for your existing site as include (http:// 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