Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Nested Templates

Status
Not open for further replies.

DarrenPower

IS-IT--Management
Nov 1, 2001
56
GB
Could anyone pleae advise.

I wish to create a master Template, and off of this, I wish to create sub-templates for different departments of a company.

Having created the master template, I have selected new from template, and entered the information I wish in the editable region. I now want to save this as a template, and create an editable region on this for further pages.

Can it be done?
 
would consider using the main template and include a seperate template into it. using <!-- include virtual=&quot;\includes\template.inc&quot; -->
be careful thou, you need to make sure your image sizes are all correct or having too large an image included will throw off the alignment of the main template.

Also make sure you save your files with either a ASP or SHTML or one of the other pre-processed html files. (if you don't the includes won't work)

Mike
 
Cheers Mike.

I think it might be the fact that my brain has turned to mush, but I'm still not sure as to where to place the includes.

Basically, I want a main template, some sub-templates feeding off that, and the rest of the pages feeding off the sub templates.

I'm not aware of the include virtual tag and if I save my files as .asp, it won't work on Linux (the platform it'll be on) will it?

Sorry to sound stupid.
 
Tis okie, it's a monday...

in the main Template's Editable region, add the include statement to add the sub-template, I would save as shtml, that should work under linux without any problems.

There are 2 options when using the include tag:
<!-- include virtual=&quot;\somewhere\includedfile.???&quot; -->
or
<!-- include file=&quot;includedfile.???&quot; -->

The 2nd option will only include a file in the same directory, I personally prefer not to use this one, as if I'm in a different directory then my include won't work unless I keep seperate copies in each directory, which to me would normally defeat the purpose of an include...

If ya have any other questions, lemme know, I tend to get cryptic and ramble a lot so ask away....

Mike
 
Right. Stuck again!!

It's fine nesting two templates within each other, but i want a structure that allows the htm pages to be called into a larger template, which, in turn, is called into the main template. I only want the single largest template, and the other sub templates to feed many htm pages.

If this sounds confusing I've attempted to draw some sort of a diagram below.


Main Template

(Sub Template 1) (Sub Template2) (Sub Template 3)
| | | | | | | |
1.htm 2.htm 3.htm 4.htm 5.htm 6.htm 7.htm 8.htm


As you will see above, I only want one instance of each sub template. Saving the files as a .shtml file creates multiple images of that template, meaning that when updates are made, they are only made to that instance.

Confused?? I am!!
 
hmmm, why don't you send me an email and I can try to help you and be able to send some sample files to ya, send to mjewell@law.umaryland.edu
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top