2012-06-27, 06:58:04
QuestarDean Wrote:Does anyone know of any reason (or ever experienced) why you can't put the tags straight into the template...? I have tried many variations but just can't get it to work... I know you can enter the HTML/PHP in the 'View' box when you are setting up the special pages, but the reason I would like them in the template is because they are quite spread around the page, and would much prefer them defined in the template assigned to that special page...Quick and dirty solution I use in my templates is the caching functions:
I may be missing something quite obvious, but if anyone could help, it would be much appreciated... (excuse all my dots... bad habit!)
Echo: <?php getPageField($slug,$specialfield); ?>
Return: <?php returnPageField($slug,$specialfield); ?>
These are global for all page types, so they should work for you.
As for your second problem, I'm not sure what's happened. Just so you know (to my knowledge), if you change your default template in the Special Page's settings that only affects the pages you make after the changes. So pages you've made prior to that change will need their template changed manually. Check that their templates are indeed the correct ones in their .xml files in your data/pages directory.