Page 1 of 1

News whitout a date on begining

Posted: Thu 10. Nov 2005, 12:40
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 :/

Posted: Thu 10. Nov 2005, 12:57
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 ?? :)

Posted: Thu 10. Nov 2005, 13:04
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.

Posted: Thu 10. Nov 2005, 13:20
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...

Posted: Thu 10. Nov 2005, 13:27
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.

Posted: Thu 10. Nov 2005, 13:59
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" ??

Posted: Thu 10. Nov 2005, 14:35
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