Customization of article lists. What to edit?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
Nik2004
Posts: 132
Joined: Mon 9. Aug 2004, 14:31
Location: Athens,Greece

Customization of article lists. What to edit?

Post by Nik2004 »

Hi,

First, I have created a list of articles with {NEW:X} tag, and it is displayed OK. But I want to customize its display. I need to:

1. Remove the edit-date of article from the beginning of each entry.
2. Enter a particular image at the beginning of each entry
3. Display the first X characters of the title only, rather than the whole title.
4. Optionally display the first X characters from the summary below the title.

Is there a place where I can define/change such things?

Second, I have noticed the produced list is displayed using a class "news", so I have defined a style called "news" in frontend.css to control the colors etc. of the list. Am I doing it right, or there is a better way to do it?

Third, I need to edit the way articles are displayed using the {CONTENT} tag. Is this done using the sample.tmpl in phpwcms_template/inc_cntpart/articlesummary ? Does one have to use this name for the template? If not, where one declares the name of the template to be used for an article display?

If anyone can post solutions to any or all of the above, I will be grateful.
rk
Posts: 162
Joined: Sat 24. Apr 2004, 23:48
Location: Hannover, Germany
Contact:

Post by rk »

For first look in
include\inc_conf\conf.template_default.inc.php

for
// new articles

there you can configure 1.-3. ;-)


I think, for second is it the right way.


Third look in
phpwcms_template\inc_cntpart\articlesummary\

there you can create different templates and select them for the articles.
Ralf
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post by DeXXus »

rk wrote:Third look in
phpwcms_template\inc_cntpart\articlesummary\

there you can create different templates and select them for the articles.
Selection of template(s) for that content part is in the "edit article basis information" screen where the dropdowns are just below the Keywords section.

You can control layout of "display full article:" by
copying "phpwcms_template/inc_cntpart/articlesummary/article/sample.tmpl", make your desired changes, and save in same folder as "yourtemplatename.TMPL"

Same can be done for "article listing:" by working with "phpwcms_template/inc_cntpart/articlesummary/list/sample.tmpl" to make new template files.
Nik2004
Posts: 132
Joined: Mon 9. Aug 2004, 14:31
Location: Athens,Greece

Managed to customize these things

Post by Nik2004 »

Thanks guys. I managed to do the tricks I needed.
Post Reply