Sorry, yet other question about G2 Customization from someone without a decent understanding of Smarty. :oops:
My goal is pretty simple: I want to add a couple of links to some webpage with plain html, but would like to display their content within the framework of global.tpl so the gsHeader and gsFooter is shown at all times (think good old Frames). I’m thinking about placing these links within the div id=gsHeader in the global.tpl or by adding a links.tpl above the pathbar.tpl.
But I have no idea how to implement this since global.tpl loads the main.viewBodyFile by default.
I would like to be able to load three different pages in the <body> element depending on what links the user choose. The singleBody.tpl (or is it the albumBody.tpl?) should be loaded by default but should be able to be replaced by other content.
Best regards, stoffer
Posts: 8601
are you saying you want to add some links that appear on every page? add those in gsHeader.
are you saying you want to create a new page that also shows the global.tpl header and footer? create a module with a new view.
Posts: 75
Yes - and I have already eyeballed the gsHeader. :wink:
Yes, this is what I had in mind. But I have no idea where to start to create such a module on my own. Is there any file in G2 I should look at regarding this and can modify?
Hmmm, I think that I may just be better off creating the links in gsHeader and built those other webpages so they look like G2 (same header, links and footer). The web user might not notice anyway.
Posts: 7994
You can get an overview of the process from reading the G2 dev guide. It's rough and out of date, but that combined with looking at other modules should get you going. Look at the debug module for an example of a module that creates a link on every item then uses that to display its own page.
Posts: 75
Thanks. I will try and see if I can figure it out. I'm only looking at a way to put some simple html content inside a couple of .tpl the loads in the area where the album/admin etc is shown.
Right now I'm using old fashion .html outside gallery2 for the job.