Simple Question -- Display ARTICLES in Menu?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Post by Jensensen »

try

[x]

and have fun
bye
Last edited by Jensensen on Sat 20. Sep 2008, 03:56, edited 1 time in total.
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
User avatar
Oliver Georgi
Site Admin
Posts: 9928
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

OK, then again - and sorry for the peeved undertones ;-)

So you need a replacement tag which returns listing of "all" articles inside same level - maybe template based like cp teaser?

Should this go recursive inside the level, so you will get all articles of sub levels too?

Current article should be listed too maybe marked as active?


So, you need something like content part teaser - but there an additional setting like -> current level and/or recursive.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
danielreeders
Posts: 14
Joined: Wed 30. May 2007, 09:25

Post by danielreeders »

Oliver Georgi wrote:OK, then again - and sorry for the peeved undertones ;-)

So you need a replacement tag which returns listing of "all" articles inside same level - maybe template based like cp teaser?

Should this go recursive inside the level, so you will get all articles of sub levels too?

Current article should be listed too maybe marked as active?


So, you need something like content part teaser - but there an additional setting like -> current level and/or recursive.

Oliver
Hi Oliver,

That's exactly right :D Except recursion could lead to some odd results unless you also included category title and link in the menu produced.

It would be great if you could include an option for a CSS prefix:

Code: Select all

<P><A HREF="{articlelink}" class="{prefix}menulink">{title}</a></p>
On my client's site I have three information sections, about HIV/AIDS, Sexual Health, and Hepatitis, and the goal is that each section will eventually have its own icons and colours. By including an optional CSS prefix, like the table name prefix in the database, I can reference the menulinks really easily in the stylesheet: hivaids_menulink, sexualhealth_menulink, hepatitis_menulink.

To highlight the active article, I'd just add a suffix to its CSS class and let the webmaster specify how it should look in the stylesheet.

Code: Select all

<P><A HREF="{articlelink}" class="{prefix}menulink_active">{title}</a></p>
That way, if a webmaster doesn't want to highlight the active page, they just specify menulink, menulink_active in the stylesheet - both the same.

Thank you so, so much!!

Daniel
Post Reply