TYPOlight Open Source CMS > TYPOlight forum

Switch to german forum

Index > Templates and CSS > Menu that includes Article Titles?

spirelli
User
Avatar
Hi, I'm looking for some advice on setting up a site. I'm not a programmer (apart from HTML and CSS), so I'll try to set it up as efficient and as simple as possible with what TL offers.

Each of the 3 areas of the site would have a sub-menu in the left column. These menus should be structured with headings:

Proposed Navigation per section:

=============================
Section 1 heading
(not linked)
Topic 1 (link)
Topic 2 (link)
Topic 3 (link)

Section 2 heading
(not linked)
Topic 4 (link)
Topic 5 (link)

Section 3 heading
(not linked)
Topic 6 (link)
Topic 7 (link)
Topic 8 (link)
Topic 9 (link)
Topic 10 (link)
=============================

As far as I can see, I could set up the above in the site structure with pages for Sections and Topics, and then use the module type 'Custom Navigation' for each of the three section. The backend would look like this:

----------------------------------------------
- TL PAGE "Section 1"
-- TL PAGE "Topic 1"

----- Article "Topic 1"
-- TL PAGE "Topic 2"
----- Article "Topic 2"
-- TL PAGE "Topic 3"
----- Article "Topic 3"

- TL PAGE "Section 2"
-- TL PAGE "Topic 4"

----- Article "Topic 4"
-- TL PAGE "Topic 5"
----- Article "Topic 5"

- TL PAGE "Section 3"
-- TL PAGE "Topic 6"

--- Article "Topic 6"
-- TL PAGE "Topic 7"
--- Article "Topic 7"
-- TL PAGE "Topic 8"
--- Article "Topic 8"
-- TL PAGE "Topic 9"
--- Article "Topic 9"
-- TL PAGE "Topic 10"
--- Article "Topic 10"
----------------------------------------------

However, this seems much more complicated and difficult to look at in the article module than it should be -- Article and page naming is duplicated and there are a lot of levels to look at.

Instead, I'd love to set up the back end like this:

----------------------------------------------
- TL PAGE "Section 1"
-- Article "Topic 1"
-- Article "Topic 2"
-- Article "Topic 3"

- TL PAGE "Section 2"
-- Article "Topic 4"
-- Article "Topic 5"

- TL PAGE "Section 3"
-- Article "Topic 6"
-- Article "Topic 7"
-- Article "Topic 8"
-- Article "Topic 9"
-- Article "Topic 10"
----------------------------------------------

Much simpler to look though in the backend.

My problem is that I don't know how to generate a menu from this. I would need some way to output the Article titles after the Page titles.

Can anyone help? Am I missing something?? Many thanks.
19/06/2009 13:28
Toflar
User
Avatar
Posts: 1070
Lyss, Switzerland
Hi!

First, HTML and CSS is not programming ;)

Second, the provided InsertTags might be your friends ;)
Regards / Salutations / Gruss

Yanick

certo web & design - www.certo-net.ch
19/06/2009 15:04
spirelli
User
Avatar
Hi Toflar, thanks for your reply.

iconToflar:
First, HTML and CSS is not programming ;)
Ok, it's mark-up/coding :|

iconToflar:
... InsertTags might be your friends ;)
Well, I could create a module that contains something like

------------------------
Section Title
<ul>
<li>{‎{article::18}}</li>
<li>{‎{article::13}}</li>
<li>{‎{article::24}}</li>
etc
------------------------

That would help to be able to use the simpler structure. However, the BIG drawback is that when an admin decides to add a topic or re-order the articles, the menu would not be updated.

Is there any way to get TL to automatically generate a link list for articles on a certain page?
Last edited by spirelli, 19/06/2009 16:06
19/06/2009 15:32
Toflar
User
Avatar
Posts: 1070
Lyss, Switzerland
Maybe you should have a look at nav_default.tpl and do some modifications there?
Regards / Salutations / Gruss

Yanick

certo web & design - www.certo-net.ch
19/06/2009 16:50