NAVIGATION
This shows you the differences between two versions of the page.
english:phpwcms_replacer_rts:frontend_render:newx [2012/02/15 07:54] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_render:newx [2018/06/03 18:09] (current) |
||
---|---|---|---|
Line 6: | Line 6: | ||
===== {NEWX: Counter : category-IDs : Keywords : Mode [hidden categories]} ===== | ===== {NEWX: Counter : category-IDs : Keywords : Mode [hidden categories]} ===== | ||
- | FIXME Beta -> TRANSLATE please test | + | FIXME TRANSLATE please test |
Original TAG [[http://www.phpwcms-docu.de/link_tags_.phtml|{NEW:Amount_of_shown_links:ID}]] enhanced to allow a search for articles keywords in different categories.. \\ | Original TAG [[http://www.phpwcms-docu.de/link_tags_.phtml|{NEW:Amount_of_shown_links:ID}]] enhanced to allow a search for articles keywords in different categories.. \\ | ||
Line 103: | Line 103: | ||
- | \\ | + | ~~UP~~ |
- | ==== Script V 0.9 ==== | + | ===== Script V 0.9 ===== |
File: template/inc_script/frontend_render/rt_newx.php | File: template/inc_script/frontend_render/rt_newx.php | ||
Line 410: | Line 410: | ||
\\ | \\ | ||
- | |||
- | ==== Settings: ==== | ||
- | |||
- | **In the file:** config/phpwcms/conf.template_default.inc.php | ||
- | |||
- | **Example:** | ||
- | <code php> | ||
- | // new articles | ||
- | $template_default['news']['before'] = '<div class="new-tag">'; | ||
- | $template_default['news']['after'] = '</div>'; | ||
- | $template_default['news']['link_before'] = '<p>'; | ||
- | $template_default['news']['link_after'] = '</p>'; | ||
- | $template_default['news']['link_symbol'] = '» '; | ||
- | $template_default['news']['link_target'] = ''; | ||
- | $template_default['news']['link_length'] = 0; //if 0 no limit | ||
- | $template_default['news']['cut_title_add'] = '…'; | ||
- | $template_default['news']['date_language'] = 'DE'; // DE=German, IT=Italian, FR=French, ES = Spanish, DA = Danish, NO = Norwegian | ||
- | $template_default['news']['date_format'] = 'd.m.Y'; //if empty -> no Date | ||
- | $template_default['news']['date_before'] = '<span class="datelink"> '; | ||
- | $template_default['news']['date_after'] = ' - </span>'; | ||
- | $template_default['news']['sort_by'] = 'udate'; // 'cdate' = Creation date, or 'udate' = update date, ldate = start date, kdate = end date | ||
- | |||
- | </code> | ||
- | |||
- | |||
- | \\ | ||
- | === CSS: === | ||
- | |||
- | File: e.g. in template/inc_css/frontend.css | ||
- | |||
- | **Example:** | ||
- | <code css> | ||
- | /* NEW TAG --------------------------------- */ | ||
- | |||
- | .new-tag { | ||
- | font-family: verdana; /* "Courier New", monospace; */ | ||
- | font-size:90%; | ||
- | } | ||
- | |||
- | .new-tag a { | ||
- | color: red; | ||
- | } | ||
- | |||
- | .new-tag .datelink { | ||
- | font-size:80%; | ||
- | color: darkred; | ||
- | } | ||
- | </code> | ||
- | |||
- | \\ | ||
- | |||
- | |||
- | |||
===== Script V 1.0 ===== | ===== Script V 1.0 ===== | ||
Line 844: | Line 791: | ||
- | **Update V1.1 14.02.2012**: Wie V1.0, zusätzlich | + | **Update V1.1 14.02.2012**: As V1.0, in addition |
- | * Wenn eines der Schlüsselwörter %%"hidden" oder "versteckt"%% im Kategoriefeld %%"Schlüsselwörter"%% eingetragen ist, werden die Artikel dieser Kategorie nicht angezeigt. Der Kategorieschalter %%"[x] versteckt"%% ist dazu nicht notwendig. | + | * If one of the keywords "hidden" or "versteckt" is entered in the category field %%"keywords"%%, the articles of this category are not displayed. The category switch %%"[x] hidden"%% is not necessary for this. |
\\ | \\ | ||
- | **Datei:** template/inc_script/frontend_render/rt_newx.php | + | **File:** template/inc_script/frontend_render/rt_newx.php |
- | <code php|h {NEWX:count:category-IDs:key words:mode:hidden} |h> | + | <code php|h {NEWX:count:category-IDs:key words:mode:hidden category} |h> |
<?php | <?php | ||
/******************************************************************************************* | /******************************************************************************************* | ||
Line 1235: | Line 1182: | ||
- | ==== Adjustments: ==== | ||
- | **In file:** config/phpwcms/conf.template_default.inc.php | + | |
+ | ==== Settings: ==== | ||
+ | |||
+ | **In the file:** config/phpwcms/conf.template_default.inc.php | ||
**Example:** | **Example:** | ||
Line 1260: | Line 1209: | ||
\\ | \\ | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
==== CSS: ==== | ==== CSS: ==== | ||
Line 1306: | Line 1233: | ||
\\ | \\ | ||
+ | |||
+ | |||