Page 1 of 1

Customization of article lists. What to edit?

Posted: Wed 1. Sep 2004, 17:14
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.

Posted: Wed 1. Sep 2004, 17:39
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.

Posted: Wed 1. Sep 2004, 18:20
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.

Managed to customize these things

Posted: Thu 2. Sep 2004, 16:33
by Nik2004
Thanks guys. I managed to do the tricks I needed.