Page 1 of 1

Article listing "Home-site"/ Structur definition

Posted: Thu 22. Feb 2007, 13:01
by nettrix
Hallo beisammen,

wo kan ich das Aussehen der Article listings der Startseite (TOP Artikel) ändern???

Derzeit besteht der Artikel aus:
+ Headline
+ Contentsumary
+ more - button

Ich würde gerne zwischen Haedline und Content ein: erstellt am xx.xxxx hinzufügen. Zudem möchte ich gerne den Abstand zwischen zwei TOP Artikel ändern!


Danke für eure Hilfe!

>>>

Hi Guys,
I want to change the appereance of the article listing on my "Home"-site.

Actually the articl "summary"listing looks like:
+ Headline
+ Contetn summary
+ more - button

I'd like to add a "created on {DATE} tag between the headline and the contentpart. Do I have the possibility to change this one???

Thanks!

Posted: Thu 22. Feb 2007, 18:17
by DeXXus
You can use the sub-title: field (it is between those two areas) for a Replacement tag, phpWCMS global variable (article field database reference), your own PHP coding, ETC.

Posted: Sun 25. Feb 2007, 11:18
by nettrix
Well, thanks for your answer - I tried it - BUT phpwcms is typing my "created on {DATE} Tag as "plain text" means, it doesn't convert the replacement tag into the actual date....

Am I forced to change the inc_article.php file??
Thanks in advance!

Posted: Sun 25. Feb 2007, 17:25
by juergen
in : phpwcms_template/inc_default/article_summary_list.tmpl:

Code: Select all

[SPACE]<!-- space //-->[/SPACE]
<div class="phpwcmsArticleListEntry">
	[IMAGE]<div class="phpwcmsArticleListImage">
		[ARTICLELINK]<a href="{ARTICLELINK}">[/ARTICLELINK]{IMAGE}[ARTICLELINK]</a>[/ARTICLELINK]
		[CAPTION]<div class="phpwcmsArticleListImageCaption">{CAPTION}</div>[/CAPTION]
	</div>[/IMAGE]
	[TITLE]<h1>{TITLE}</h1>
[/TITLE]
<div class="your_class_date_article">{DATE_ARTICLE}</div>


[SUB]	<h3>{SUB}</h3>
[/SUB][SUMMARY]	<div><strong>{DATE:j. F Y:EN} </strong> {SUMMARY}</div>
[/SUMMARY][MORE]	<div class="phpwcmsArticleListMore"><a href="{ARTICLELINK}">{MORE}</a></div>[/MORE]
</div>
That should work for 1.2.9 which seems to be the one and only ;)

Jürgen

Posted: Tue 27. Feb 2007, 19:26
by DeXXus
nettrix wrote:Well, thanks for your answer - I tried it - BUT phpwcms is typing my "created on {DATE} Tag as "plain text" means, it doesn't convert the replacement tag into the actual date....

Am I forced to change the inc_article.php file??
Thanks in advance!
I said that off the top of my head and do not have access at the moment, but seem to remember doing such things, a time or two. Have you checked "conf.inc.php" to enable this settting?

Code: Select all

$phpwcms['allow_cntPHP_rt']   = 1; //allow PHP replacement tags and includes in content parts
I may be wrong or it may have changed, since I experimented with this.