Forums / Setup & design / Overriding pagelayout.tpl using node number as override key?
Trond Åge Kvalø
Wednesday 04 February 2004 5:54:46 am
Hi there!
We have created a class consisting of a textline and a textfield. Then we created a node using that class where the textfield is an XML structure. When viewing that node we only want to show the XML structure without any HTML markup.
Since pagelayout.tpl contains the main layout, we wanted to create an override for pagelayout.tpl, but unlike the other overrides the admin interface does not offer the override keys for the pagelayout.tpl.
So how can we define an override for pagelayout.tpl using node number as override key?
Best regards Trond Kvalo Senior developer Atlantia as Norway
trondåge
Paul Borgermans
Wednesday 04 February 2004 6:22:45 am
You will have to edit the override.ini.appned.(php) directly, not all possibilities are foreseen in the admin interface.
hth
-paul
eZ Publish, eZ Find, Solr expert consulting and training http://twitter.com/paulborgermans
James Packham
Wednesday 04 February 2004 6:22:48 am
Hi Trond! I trust you're keeping well?
You could try using a modified version of a printer friendly page as described here:
http://www.ez.no/ez_publish/documentation/customization/custom_design/printable_pages
These templates can be customised to make pagelayout look however you want. You can access by modfiying your url, for example:
http://www.ez.no/layout/set/print/community/forum/setup_design/overriding_pagelayout_tpl_using_node_number_as_override_key
Of course you could make it look however you want :) The only problem is how you link to it, but as you know more about the structure of your site than I, I'll leave that to you :)
Regards,
~James~
Wednesday 04 February 2004 6:24:17 am
But then again, Paul's solution is probably better ;)