4images Forum & Community
4images Modifications / Modifikationen => Templates & Styles (Requests & Discussions) => Topic started by: redgob on August 04, 2005, 06:06:41 PM
-
Hi everybdy,
i am conrently building a new Template Packet out of the default one. I wanna seperate some often used Thing like the Navigationbar in a seperate file like sidebar.html. The normal way to insert a template is to use the { } bracktes but how can i make it working with my own templates?
Thanks for your help
-
Ahh ! finally one of my fav question has arrived. 8)
*** Solution 1 ***
A good way to do this would be by implementing your javascript codes in your includes/page_header.php then register the initials from an array which could then be used with brackets from your templates from sidebar.html if you wanted too. ;)
Could you post your sidebar javascript codes ?
*** Solution 2 ***
Or simply implement your codes in header.html file.
-
Thanks for your help, but i donīt want to insert javascript code to be used with the brackets. Lets say i wanna insert the same table on every page. it would be insane to insert it on every page, i mean if you wanna to shange the table you have to change it on everypage... A good example is the Thumbnail in the default-packet. They seperated it because a thunbnail should look the same on every page, but can i seperate html code from the rest by my own?
-
Lets say i wanna insert the same table on every page
You're lucky. I have done this for myself many months ago. It simplifies the load-up by loading the HTML templates since a single file handles the basic table layout as the rest only initials it with brackets. ;)
but can i seperate html code from the rest by my own?
In this case, absolutely. Althought, it would take some time to post all the codings in here as most modifications has been done from my end regarding this feature.
-
Try this tutorial:
http://www.4homepages.de/forum/index.php?topic=6839.0
-
Thanks for your help everyone. In the mean time i copy-pasted it in every file... but i will try your method to create new template-files.