Extending {NEW:}

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Spirou
Posts: 22
Joined: Fri 2. Jan 2004, 17:07
Location: Finland

Extending {NEW:}

Post by Spirou »

Hi!

I found out that it would be very convenient to be able to also define ARTICLECAT in the {NEW:} -replacement tag. Especially if you are working with a multilingual site with cathegories for Enlish, German etc.

I noticed that function get_new_articles only selects data from phpwcms_article in front.func.inc.php

Is there any simple way to modify {NEW:} or do I also have to modify the SELECT ... FROM ... (row 1181 in front.func.inc.php)
I would like to have something like {NEW:INT:ID} so results would only be listed from within a specific cathegory.

I think this is something similar to Fulvios message: http://www.phpwcms.de/forum/viewtopic.php?p=4117
Spirou
Posts: 22
Joined: Fri 2. Jan 2004, 17:07
Location: Finland

Post by Spirou »

:idea: I just discovered that theres a function called function list_articles_summary in front.func.inc.php. Could I use this for my purpose? I guess that means I have to write a separate replacement-tag :shock:
Post Reply