how to limit article menu content part...?

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

how to limit article menu content part...?

Post by baklavoni »

is there any way to limit number of articles shown at frontend, with use of article menu content part?

Image

Image

and this is what i need to get (limited to 5 latest articles):
Image

i need to limit articles shown only on one page, while at all others it need to show all available articles...

any idea?

thanks
There is no page like home page...
breitsch
Posts: 473
Joined: Sun 6. Mar 2005, 23:12
Location: bern switzerland

Re: how to limit article menu content part...?

Post by breitsch »

@baklavoni

use {NEW:x} Replacementtag for that, see here, scroll a bit down:
http://www.phpwcms-docu.de/link_tags.phtml
http://www.youtube.com/watch?v=jqxENMKaeCU
because it's important!
breitsch
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Re: how to limit article menu content part...?

Post by baklavoni »

Thanks breitsch,
This is exactly what I was looking for! :)

phpwcms rocks!
There is no page like home page...
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Re: how to limit article menu content part...?

Post by baklavoni »

How can I make this article list without showing date of its creation (in red block on attached picture).
Attachments
block.jpg
block.jpg (16.26 KiB) Viewed 2205 times
There is no page like home page...
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Re: how to limit article menu content part...?

Post by flip-flop »

Hi, please have a look
conf.template_default.inc.php wrote:// new articles
$template_default['news']['before'] = '<div class="news">';
$template_default['news']['after'] = '</div>';
$template_default['news']['link_before'] = '<p>';
$template_default['news']['link_after'] = '</p>';
$template_default['news']['link_symbol'] = '';
$template_default['news']['link_target'] = '';
$template_default['news']['link_length'] = 0; //if 0 no limit
$template_default['news']['cut_title_add'] = '&#8230;';
$template_default['news']['date_language'] = 'DE'; // DE=German, IT=Italian, FR=French, ES = Spanish, DA = Danish, NO = Norwegian
$template_default['news']['date_format'] = 'd.m.Y'; //if empty -> no Date Y/m/d
$template_default['news']['date_before'] = '<span class="datelink">';
$template_default['news']['date_after'] = ' - </span>';
$template_default['news']['sort_by'] = 'cdate'; // 'cdate' = Creation date, or 'udate' = update date, ldate = start date, kdate = end date
Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
baklavoni
Posts: 170
Joined: Mon 23. Oct 2006, 00:48
Location: Bosnia and Herzegovina

Re: how to limit article menu content part...?

Post by baklavoni »

Knut,
once again you helped me :)
This is exactly what I was looking for.

Thanks a lot!
I owe you a beer :)
There is no page like home page...
Post Reply