NAVIGATION
This shows you the differences between two versions of the page.
|
english:phpwcms_replacer_rts:frontend_render:article-move-into-archive [2009/07/28 06:10] Knut Heermann (flip-flop) |
english:phpwcms_replacer_rts:frontend_render:article-move-into-archive [2018/06/03 18:09] (current) |
||
|---|---|---|---|
| Line 14: | Line 14: | ||
| If you don´t like this behavior, please open the switch **[ ] Archive** in category. Thus the script runtime increases a little, since the database must be addressed immediately. With small sides (number of articles < 300) that is uncritical. | If you don´t like this behavior, please open the switch **[ ] Archive** in category. Thus the script runtime increases a little, since the database must be addressed immediately. With small sides (number of articles < 300) that is uncritical. | ||
| + | |||
| + | A navigation for terminated articles in archive are available: [[english/phpwcms_replacer_rts/frontend_render/article-menu-archive]] | ||
| **Condition:** | **Condition:** | ||
| Line 37: | Line 39: | ||
| **CMS version:** >= 1.3.x \\ | **CMS version:** >= 1.3.x \\ | ||
| **Version:** V1.0 \\ | **Version:** V1.0 \\ | ||
| + | <code txt|h Update |h> | ||
| + | **27.12.09 KH** | ||
| + | $content['list_mode'] == true | ||
| + | changed to | ||
| + | $content['struct'][$content['cat_id']]['acat_topcount'] > 1 | ||
| + | </code> | ||
| Line 62: | Line 70: | ||
| 26.07.09 V1.0 Knut Heermann (flip-flop) http://planmatrix.de | 26.07.09 V1.0 Knut Heermann (flip-flop) http://planmatrix.de | ||
| + | |||
| + | 27.12.09 Update KH: | ||
| + | $content['listmode'] == true | ||
| + | changed to | ||
| + | $content['struct'][$content['cat_id']]['acat_topcount'] > 1 | ||
| Bedingung // Condition: | Bedingung // Condition: | ||
| Line 98: | Line 111: | ||
| // Nur ausfuehren wenn der Listenmodus in der Kategorie eingeschaltet und die angegebene Kategorie aktiv ist | // Nur ausfuehren wenn der Listenmodus in der Kategorie eingeschaltet und die angegebene Kategorie aktiv ist | ||
| // Only run if list mode in category is true and the specified category is active | // Only run if list mode in category is true and the specified category is active | ||
| - | if( $content['list_mode'] == true && $content['cat_id'] == $my_article_cat) { | + | // if( $content['list_mode'] == true && $content['cat_id'] == $my_article_cat) { |
| + | |||
| + | // Update 27.12.09 KH: | ||
| + | // Nur ausfuehren wenn in der Kategorie "Anzahl an Top-Artikeln:" > 1 und die angegebene Kategorie aktiv ist | ||
| + | // Only run if in category "top article count:" > 1 and the specified category is active | ||
| + | if( ($content['struct'][$content['cat_id']]['acat_topcount'] > 1) && ($content['cat_id'] == $my_article_cat) ) { | ||
| $article = array(); | $article = array(); | ||
| Line 146: | Line 164: | ||
| \\ | \\ | ||
| - | If you liked to have the version for several categories and archive, please donate or write wiki articles or translate some. | + | |
| + | |||
| + | <note> | ||
| + | **If you liked to have the version for several categories and archives, please donate or write wiki articles or translate some.** \\ | ||
| + | \\ | ||
| + | ..... The IDs of the source categories //(where the article list is)// please register in the array **$my_article_cat_id['source']**. | ||
| + | The Target- or archive categories //(where the articles at expiration to be kept)// please register in **$my_article_cat_id['archive']**. | ||
| + | |||
| + | These are registered as pairs into the two arrays, every source category with one target category. | ||
| + | |||
| + | $my_article_cat_id['source'] = array( 4, 71, 90, 230) article-listing-categories | ||
| + | | | | | | ||
| + | $my_article_cat_id['archive'] = array(70, 72, 95, 150) article-archive-categories | ||
| + | |||
| + | ..... An assignable number of years can be add and stored to the end-date, in order to be able to navigate in archives with the built-in function article menu. The number of years should be added registered into the variable **$boost_year**. \\ | ||
| + | E.g. ##$boost_year = '10';## //(for +10 years: 2009-05-07 20:34:00 --> 2019-05-07 20:34:00) ....// | ||
| + | |||
| + | </note> | ||