Hello Guest [ Registration | Log in ]

Main Menu

Login





 


 Log in Problems?
 New User? Sign Up!

Genealogy Quote

Has anyone seen my roots?

Stories

Online

There are 0 Members online.

You can log-in or register for a user account here.
search pnForum latest posts Note: Registered users can subscribe to notifications about new posts Note: Registered users can subscribe to notifications about new posts
Reply to: Tng pre-built templates


Options:




  


:


Author Tng pre-built templates
patrick

Posts: 17
This all makes sense now. Thanks
Patrick
 
 
Wendel

Posts: 82
Actually it uses both a div and a table (probably overkill, but I would occasionally see problems if both were not there.)
Starts with

The source is in end.php if you need to modify. You can also pull up a page in the browser and view the source. Search on "tngwrapper".

In terms of styling, I believe you can add to your PostNuke theme's style sheet style.css in the style directory of your theme. I guess you could also put it in TNG's style sheet genstyle.css or genstyle2.css But probably the best place would be in the mytngstyle.css It would not change if you change templates and it would not change with PostNuke themes (and is only used with using TNG)
I hope that helps. I'm not the best with CSS -- I'm still learning myself.

The tag is already removed when using a CMS with TNG. It is part of the function tng_header() in genlib.php

- Wendel



edited by: Wendel, May 03, 2008 - 01:17 PM
 
 
patrick

Posts: 17
Thanks for the reply.
It sounds like I can pretty much leave the topmenu.php and footer.php blank. I think that should still allow the use of tng when accessed directly. If not, it is simply a matter of uploading the two original files.
Does the integration itself use a div or a table to wrap tng? If so I would like to style it, how do I call it in css? One reason for this question is, If I remember correctly, removing the body tag from tng can cause alignment problems for some postnuke themes.
 
 
Wendel

Posts: 82
To use these files goto:
Setup -> General Settings -> Site Design and Definition
and set the following fields:

Custom Header: topmenu.php
Custom Footer: footer.php

See the readme_template.txt file that came with the template.

The index.php is self contained (does not call topmenu.php or footer.php). All the other TNG pages will call topmenu.php and then close with footer.php. So that is how you get the matching table and body.

I'm sure there is some HTML clean up with this and the other templates. For example, technically, when wrapped in PostNuke, there should not be any tags as well as and others as well.

On the other hand, it is would be nice to run TNG without PN, just in case (and to try out things when something doesn't work just right.) In that case, you would need those tags. It's going to take some work with Darrin to clean that up. I've had discussions with Darrin in the past about turning the templates into "themes" so some of this would be cleaned up (for example, the themes could be in separate directories, so you could have all of them loaded and you select the one you want from the administration menu.) At the time, Darrin had higher priority items to work on for TNG.

So I'm thinking about what types of things I can do with pnTNG. But they all can take a lot of extra processing time (for example, for each page, scan the entire resulting TNG HTML for each tag and removing it before it gets wrapped by PN -- but that's many searches of the entire HTML output.)
- Wendel
 
 
patrick

Posts: 17
I am modifying one of the pre-built templates#6) but I am unsure about the use of topmenu.php. Does this get called when integrated with PN?
The reason I ask is because there are two tags, "table" and "body", which do not get closed out in topmenu.php. The "table" is closed in the footer.php and the "body" is closed in index.php. If topmenu.php is not used then I would like to delete the closing tags.

This leads me to another question. In the index.php there is "/html" at the end right after"/body",can I delete this?

Thanks for all your help.
Patrick



edited by: patrick, May 01, 2008 - 11:48 PM
 
 
Users online:


This list bases on the users active in the last 10 minutes


Powered by pnForum Version 2.6