; how many news should be listed per row
news_per_row = 2
; teaser text rendered as = p
; or just line break to
= br
news_teaser_text = p
; template for files - the same as used
; for content part files , default:
; files_template_list = default
files_template_list = default
files_template_detail = default
files_direct_download = 0
news_per_row = 1
[TITLE]{TITLE}
[/TITLE]
[SUBTITLE]{SUBTITLE}
[/SUBTITLE]
[NEWS_ENTRIES]{NEWS_ENTRIES}[/NEWS_ENTRIES]
[IMAGE][/IMAGE]
[NEWS_TITLE]{NEWS_TITLE}
[/NEWS_TITLE]
[NEWS_TEASER] [/NEWS_TEASER]
[NEWS_TEASER_ELSE][NEWS_TEXT]{NEWS_TEXT}[/NEWS_TEXT][/NEWS_TEASER_ELSE]
[NEWS_DETAIL_LINK][/NEWS_DETAIL_LINK]
[NEWS_ENTRIES]{NEWS_ENTRIES}[/NEWS_ENTRIES]
[NEWS_TITLE]{NEWS_TITLE}
[/NEWS_TITLE]
[NEWS_SUBTITLE]{NEWS_SUBTITLE}
[/NEWS_SUBTITLE]
[NEWS_TOPIC]Written on {LIVEDATE:d-m-Y lang=EN} by [AUTHOR]{AUTHOR}[PLACE], {PLACE}[/PLACE][/AUTHOR][AUTHOR_ELSE][PLACE], {PLACE}[/PLACE][/AUTHOR_ELSE]
[/NEWS_TOPIC]
[IMAGE]
[ZOOM_ELSE]
[IMAGE_URL][/IMAGE_URL]
[IMAGE_URL][/IMAGE_URL]
[/ZOOM_ELSE]
[ZOOM]
[/ZOOM]
[/IMAGE]
[NEWS_TEXT]{NEWS_TEXT}[/NEWS_TEXT]
[NEWS_TEXT_ELSE][NEWS_TEASER]{NEWS_TEASER}[/NEWS_TEASER][/NEWS_TEXT_ELSE]
[URL]
[URL_TEXT]{URL_TEXT}[/URL_TEXT][URL_TEXT_ELSE]more[/URL_TEXT_ELSE]
[/URL]
[FILES]{FILES}[/FILES]
[NEWS_LIST_LINK]
[/NEWS_LIST_LINK]
/* ------- start news --------- */
.newsEntry {
padding: 5px 0 0px 0;
}
.newsImageTeaser {
float:left;
border: 5px solid #f6ecee;
margin: 0px 10px 5px 0;
padding: 0px 0px 0 0;
}
.newsImageDetail {
float:left;
border: 5px solid #f6ecee;
margin: 4px 10px 5px 0;
padding: 0px 0px 0 0;
}
.news_teaser {
text-align: justify;
}
.news_text{
text-align: justify;
}
.hrNews{
margin: 0px 0 0px 0;
padding: 5px 0 0px 0;
height:0;
border:0;
border-bottom:1px dotted #CCCCCC;
clear:both;
}
/* ------- end news --------- */
==== Content part ====
* To add news create an article and add the news content part. I've found that you need to specify a language in both the news content part and news article, English = en
* type a name in the archive and news article boxes, i use type 'archive' and 'article'
* Then save.
==== News article ====
* The articles are pretty straight forward.
* click on news on the left nav
* create new news article
* fill in all the boxes needed.
* Add title (leave the title/alias at the top as this will be based on main title automatically)
* fill in language English = en
* put text in teaser and in the wysiwyg
* check publish
* create
===== Video =====
Forum: [[http://forum.phpwcms.org/viewtopic.php?p=105038#p105038]]
Autor: Ben
\\
===== Workaround NEWS auf Index-Seite: =====
**Nur für NEWs die auf der Indexseite des Systems verwendet werden:**
Ist der Alias noch nicht sichtbar in der Browsereingabezeile //(z.B. http://example.com/ anstatt http://example.com/index.phtml)//, wird der Link auf die NEWs-Details nicht richtig geschrieben.
Dieser CP-Trigger im Ordner /frontend_render/ beseitigt das Problem. //(Das sollte eigentlich im Core berücksichtigt werden).//
----
Docu: -- \\
Forum: --
**Autor:** K.Heermann (flip-flop) http://planmatrix.de \\
**CMS Version:** >= 1.4x \\
**Version:** V1.0 //(31.05.2010)// \\
**Bedingung:** -> [[http://www.phpwcms-docu.de/confincphp_de.phtml|/config/phpwcms/conf.inc.php]] \\
* $phpwcms['allow_ext_init'] = 1;
----
\\
Datei: **/template/inc_script/frontend_init/cp_trig_news_detail_link_v10.php**