I have a pretty simple webpage setup that I would like to put a Gallery2 gallery into, I have within my page a header and footer file that I include in every page of content. The Header file does things like setting up the layout via CSS and connecting to the database, the footer makes sure everything is neatly wrapped up at the end and also preloads some images.
Trying to get this to work with Gallery2 seems impossible though. In order to import my header and footer I need to put the include statements in {}s apparently. Okay, so I've done that, now all the text from the file is being printed directly onto the page... all the text... including the text from the database include file...
Is there a simple way to tell the gallery to load this header, do what that header normally does, then load itself, before loading a footer and doing what the footer normally does? I've read the top of the global.tpl file and made a copy called global.tpl.local, I've had a look at /docs/EMBEDDING but that is a very different kettle of fish..
Can anyone help?
Posts: 8601
you're looking in the right places.. the next place to look is smarty.php.net and take a look at the documentation. in your case I suspect you just want to use {php} tags so you can do a php include (instead of a smarty include) of your header/footer files.
Posts: 4
You, my friend, are a life saver!
Thank you