Page 1 of 1

Extending {NEW:}

Posted: Mon 2. Feb 2004, 22:26
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

Posted: Mon 2. Feb 2004, 22:52
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: