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 :/
News whitout a date on begining
News whitout a date on begining
hi from Poland,
Marcin - site owner
Marcin - site owner
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.
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
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
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:
so without date use this:
i just use it in this way, may be some other have another example how to use with {NEWS} RT.
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>
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>
Gruß/ regards cyrano
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
--------------------------------------------------------
templates -> http://www.128.weitzelmedia.de
planepix -> http://www.planepix.de
XING -> https://www.xing.com/profile/Thomas_Weitzel3
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" ??
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
Marcin - site owner
Hi,
you have to edit this file:
config\phpwcms\conf.template_default.inc.php
There you can switch off date and manipulate the look of {NEW:X}
Christoph
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
Christoph