By Anonymous (not verified) on
Hi all
Could anyone tell me what I would need to change in the code to allow tags to be evaluated in my site's mission statement?
Many thanks,
Andy Kimbrey
Hi all
Could anyone tell me what I would need to change in the code to allow tags to be evaluated in my site's mission statement?
Many thanks,
Andy Kimbrey
Comments
Try having a look in your
Try having a look in your theme engine (? phptemplate.engine) to see where it gets $mission or whatever from.
Alternatively it may be that the tags are stripped out when the settings page is submitted, in which case I think the relevant code will be in the system.module (you could have a look at the "variables" table in the database to see whether the PHP embedded in the mission statement has been stored in the DB).
Good luck,
gpk
----
www.alexoria.co.uk
gpk
----
www.alexoria.co.uk
Got it to work
I got PHP to work in my mission by using phptemplate.
I put something like this in template.php file.
If you already have a
_phptemplate_variables()function you will have to merge this code with yours.Adding JS
I also found that if you want to do any
drupal_add_js()in your mission. You need to reset the$scriptsvariable.EG:
The same goes for CSS.
You could just do this in your
page.tpl.phpbut I like the idea of keeping things together, that way if the mission changes the included JS and CSS is also edited or removed and not left behind.This works for Drupal 6, its
This works for Drupal 6, its not pretty but it works:
Paste this code to your themes template.php
----------------------
okay.cool