News whitout a date on begining

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

News whitout a date on begining

Post by erodzina »

Well when i put {new:10} than i will get:
10.11.2005 - TITLE

How to turn the date off and for example put < li > before:
- Title

And where is the pege code? I would like to change some code of site (add some java based scripts, and something like that)... im using 1.2.5

And i still can't turn the sitemap on :/
hi from Poland,
Marcin - site owner
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

Post by erodzina »

oh, and can i make site links more readable for people and SEO ?? Can i make xhtml site? right now the ands of sites are something like:

index.php?id=2,33,0,0,1,0

and i would like to have something with *.html end ?? :)
hi from Poland,
Marcin - site owner
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

Hi Marcin,

welcome to board.

Listing of News also depends on template yiu want to use.

So you have to change the template file when using articlelisting.
There you can leave the date outside and show only articles head.

xhtml, not now completly, but will be possible in future.

to change from "index.php?xxxxx" to "index.php?stuff" you have to give each structure level an alias name; then you can use this.

For more of this you have to enable rewrite in config.inc.php; then you page will be put out like "index.php/stuff.phtml".

Hope that get you further.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

Post by erodzina »

Oki, but im bulding my templates from beggining and i don't know how to change the {NEW:10} format... date is still on, and i don't know where to find the option for date shown or not...
hi from Poland,
Marcin - site owner
cyrano
Posts: 1598
Joined: Sat 31. Jan 2004, 18:33
Location: Stuttgart
Contact:

Post by cyrano »

Hi again,

for editing the article listing template have a look here:
"root/phpwcms_template/inc_cntpart/articlesummary/article"

and "
"root/phpwcms_template/inc_cntpart/articlesummary/list" for listing article titels, summary text and small image.

here an example of a news template - shows date and article title:

Code: Select all

<!--
sample template for article summary listing
===========================================

TITLE       = article title
SUB         = article subtitle
SUMMARY     = article summary text
IMAGE       = summary image (only the <img src="..."> tag)
ZOOMIMAGE   = if the image is click-zoomable (<a href...><img...></a>)
CAPTION     = summary image caption
ARTICLELINK = url to full article
MORE        = the "more..." text/image like defined in template_defaults
BEFORE      = show before listing entry
AFTER       = show after listing entry
SPACE       = show this between listings
DATE        = show article date {DATE:FORMAT:LANG} or {DATE:FORMAT}

//-->
[SPACE][/SPACE]
<div>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="150" valign="top">
{WAK_ARTICLE_CREATED:{ARTICLEID}}<BR>
[IMAGE]<div><a href="{ARTICLELINK}">{IMAGE}</a></div>[/IMAGE]
[CAPTION]<div align="center">{CAPTION}</div>[/CAPTION]
</td>
<td width="10"><img src="img/leer.gif" border="0" width="10" height="1" alt=""></td>
<td width="98%" valign="top">
[TITLE]<h1 style="margin:0 0 5px 0;"><a href="{ARTICLELINK}">{TITLE}</a></h1>[/TITLE]
<!--[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]//-->
<!-- [SUMMARY]<p style="margin:0">{SUMMARY}</p>[/SUMMARY]//-->
</td>
</tr>
</table>
</div>
so without date use this:

Code: Select all

<!--
sample template for article summary listing
===========================================

TITLE       = article title
SUB         = article subtitle
SUMMARY     = article summary text
IMAGE       = summary image (only the <img src="..."> tag)
ZOOMIMAGE   = if the image is click-zoomable (<a href...><img...></a>)
CAPTION     = summary image caption
ARTICLELINK = url to full article
MORE        = the "more..." text/image like defined in template_defaults
BEFORE      = show before listing entry
AFTER       = show after listing entry
SPACE       = show this between listings
DATE        = show article date {DATE:FORMAT:LANG} or {DATE:FORMAT}

//-->
[SPACE][/SPACE]
<div>
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="150" valign="top">
[IMAGE]<div><a href="{ARTICLELINK}">{IMAGE}</a></div>[/IMAGE]
[CAPTION]<div align="center">{CAPTION}</div>[/CAPTION]
</td>
<td width="10"><img src="img/leer.gif" border="0" width="10" height="1" alt=""></td>
<td width="98%" valign="top">
[TITLE]<h1 style="margin:0 0 5px 0;"><a href="{ARTICLELINK}">{TITLE}</a></h1>[/TITLE]
<!--[SUB]<h3 style="margin:0 0 5px 0;">{SUB}</h3>[/SUB]//-->
<!-- [SUMMARY]<p style="margin:0">{SUMMARY}</p>[/SUMMARY]//-->
</td>
</tr>
</table>
</div>
i just use it in this way, may be some other have another example how to use with {NEWS} RT.
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

Post by erodzina »

wow thanx, it still isnt for {NEW} mode, but is something new i can learn :) it's so nice here... i love phpwcms it's so powerfull and mutch better than mambo :)

I just want to learn more and make my page as I want to :) still working and working :) it's so mutch fun for me :) and still waiting for {NEW} and sitemap help :)

Maybe the {NEW} is in:
"/include/inc_tmpl/article.new.tmpl.php" ??
hi from Poland,
Marcin - site owner
cwenet
Posts: 159
Joined: Sat 24. Jul 2004, 10:21
Location: Lake Of Constance, Germany

Post by cwenet »

Hi,

you have to edit this file:

config\phpwcms\conf.template_default.inc.php

Code: Select all

$template_default["news"]["date_format"]	= "Y/m/d"; //if empty -> no Date
There you can switch off date and manipulate the look of {NEW:X}

Christoph
Post Reply