Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-03-2007, 03:41 AM   #1
Registered: Jul 2003
Location: Germany
Distribution: Xubuntu, Ubuntu
Posts: 416
Blog Entries: 14

Rep: Reputation: 35
Quanta Plus: I don't understand templates

Call me stupid, but I don't understand templates in Quanta Plus. Here's what I am trying to do:

I am working on a website. I don't want to use frames, and there is a pretty complex CSS-only navigation with drop down menus, opening a number of subpages.

Now it is perfectly possible that at a later date there might be additions to the menu. I'd rather not have to edit every single page by hand to add that new entry.

Looking at the documentation for templates, it seems that it should be possible to create a template with a pre text including the document head and navigation, and a post text including the foot. But I don't understand how this is supposed to work. Here's what I tried:

1. I created a subfolder 'main' in the project template view under project templates. I opened the properties of the new folder and added the pre and post texts in the appropriate window, checked the mark for including them.

2. I created a blank page and saved it as a document template inside that folder, supposing the text would be added then. It wasn't.

3. I created a new page from the empty template page to see whether the pre and post texts would be inserted then. Nope. I have no idea how and where these texts ever get inserted.

I know that a complete page layout can be saved as a template to work from, but that's not what I have been looking for. The way I read the documentation I suppose the following should be possible somehow, I'm just too daft to get the 'how':

1. A template with pre and post text includes the fixed parts.

2. Various files contain the contents of the individual pages of the site without the fixed parts.

3. The latter can be connected to the former to create the complete pages because the fixed parts are added in front of and after the content of the individual pages. These pages will then be uploaded.

4. Whenever the navigation actually changes, I will only have to edit the pre text of the template to reflect the change, then reconnect the content pages from point 2 and the template to generate the full pages anew, which I will then overwrite the old pages with.

Did I get that right? How can it be done? Or is there a different solution?

Old 05-03-2007, 02:12 PM   #2
Registered: Sep 2006
Location: Canada
Distribution: openSUSE 11.3, Xubuntu 10.10, Ubuntu 11.04
Posts: 53

Rep: Reputation: 23
I could not figure it out either.

Ended up writing a php menu generator with all menu items that I included in every file.


quanta, template

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quanta: spurious "file was change outside of the quanta editor" vtbludgeon Linux - Software 0 04-01-2006 09:39 AM
Need help with templates ........ max_rsr Programming 4 04-22-2005 12:53 PM
c++ templates ashirazi Programming 5 07-30-2004 05:17 AM
C++ and templates The_Nerd Programming 4 06-23-2004 01:15 PM
Templates MGLindsey Linux - Networking 0 07-02-2002 11:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration