Article listing "Home-site"/ Structur definition

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
nettrix
Posts: 9
Joined: Thu 22. Feb 2007, 12:50

Article listing "Home-site"/ Structur definition

Post 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!
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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.
nettrix
Posts: 9
Joined: Thu 22. Feb 2007, 12:50

Post 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!
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post 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
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Post 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.
Post Reply