Link too and replace body within global.tpl?

stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Fri, 2005-03-25 18:12

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

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Fri, 2005-03-25 19:04

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.

 
stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Fri, 2005-03-25 19:21
mindless wrote:
are you saying you want to add some links that appear on every page? add those in gsHeader.

Yes - and I have already eyeballed the gsHeader. :wink:

mindless wrote:
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.

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.

 
bharat
bharat's picture

Joined: 2002-05-21
Posts: 7994
Posted: Wed, 2005-03-30 04:18

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.

 
stoffer
stoffer's picture

Joined: 2005-02-10
Posts: 75
Posted: Wed, 2005-03-30 10:27
bharat wrote:
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.

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.