Differences

This shows you the differences between two versions of the page.

english:phpwcms_replacer_rts:frontend_render:article-menu-archive:article-menu-archive-img-template [2009/09/30 08:42]
Knut Heermann (flip-flop)
english:phpwcms_replacer_rts:frontend_render:article-menu-archive:article-menu-archive-img-template [2018/06/03 18:09] (current)
Line 5: Line 5:
-**RT like the CP Article menu, enhanced to show archived articles too, display articles, skip X leading articles, summary word limit, one image** //(list or detail)//, **random sort order and up to 100 configurable templates. :** +**RT like the CP Article menu, enhanced to show archived articles too, No. of displayed articles, skip X leading articles, summary word limit, one image** //(list or detail)//, **random sort order and up to 100 configurable templates. :**
  * Show archived articles, \\   * Show archived articles, \\
Line 15: Line 15:
  * random article sort order //(tag)//   * random article sort order //(tag)//
  * output archived articles // (tag)//   * output archived articles // (tag)//
 +  * BBCode in titel and subtitel possible
\\ \\
Line 43: Line 44:
**Syntax example:** **Syntax example:**
  * **{ARTICLE_MENU_ARCHIVE: -1, 0,}**  //Actual category, none of the first articles is hidden , display all articles,//   * **{ARTICLE_MENU_ARCHIVE: -1, 0,}**  //Actual category, none of the first articles is hidden , display all articles,//
-  * **{ARTICLE_MENU_ARCHIVE: 23, 5, 2}**  //Article in category 23(ID), displays the the first five articles if available, the first two articles are skipped//  +  * **{ARTICLE_MENU_ARCHIVE: 23, 5, s2}**  //Article in category 23(ID), displays the the first five articles if available, the first two articles are skipped//  
-  * **{ARTICLE_MENU_ARCHIVE: 23, 5, 2, 100x80x0x90}**  //Article in category 23(ID), displays the the first five articles if available, the first two articles are hidden, article image output 100px x 80px no cropping jpg Quality 90//  +  * **{ARTICLE_MENU_ARCHIVE: 23, 5, s2, 100x80x0x90}**  //Article in category 23(ID), displays the the first five articles if available, the first two articles are hidden, article image output 100px x 80px no cropping jpg Quality 90//  
-  * **{ARTICLE_MENU_ARCHIVE: 23, 5, 0, 50x50x1}**  //Article in category 23(ID), displays the the first five articles if available, no articles skipped, article image output 50px x 50px cropped//  +  * **{ARTICLE_MENU_ARCHIVE: 23, 5, s0, 50x50x1}**  //Article in category 23(ID), displays the the first five articles if available, no articles skipped, article image output 50px x 50px cropped//  
-  * **{ARTICLE_MENU_ARCHIVE: 23, 5, 0, 50x50x1, t2}** //The same as before but rendered by using the template No.2 // +  * **{ARTICLE_MENU_ARCHIVE: 23, 5, s0, 50x50x1, t2}** //The same as before but rendered by using the template No.2 //
  * **{ARTICLE_MENU_ARCHIVE: 23, 5, s0, 50x50x1, t21, r1, w25, a3}**   * **{ARTICLE_MENU_ARCHIVE: 23, 5, s0, 50x50x1, t21, r1, w25, a3}**
Line 86: Line 87:
  Update: 05.09.09 KH: + counter for "How many articles are to be shown"  (0 = all)   Update: 05.09.09 KH: + counter for "How many articles are to be shown"  (0 = all)
  Update: 16.08.09 KH: + counter for "How many of the first articles are to be hidden" (0 = nothing hidden)   Update: 16.08.09 KH: + counter for "How many of the first articles are to be hidden" (0 = nothing hidden)
 +  Update: 10.12.09 KH: + BBCode in titel and subtitel possible
</code> </code>
Line 92: Line 94:
Based on the cp article menu. Based on the cp article menu.
-Tag: **{ARTICLE_MENU_ARCHIVE: category-ID, count-article, count-hide, WxHxCxQ, tXX, rX, wXXX, aX}** \\ +Tag: **{ARTICLE_MENU_ARCHIVE: category-ID, count-article, sXX, WxHxCxQ, tXX, rX, wXXX, aX}** \\ 
-or **{ARTICLE_MENU_ARCHIVE: -1, count-article, count-hide}** //for the actual category// \\+or **{ARTICLE_MENU_ARCHIVE: -1, count-article, sXX}** //for the actual category// \\
Minimally set: **{ARTICLE_MENU_ARCHIVE: category-ID,  count-article,}**  //(end with a comma !!)// Minimally set: **{ARTICLE_MENU_ARCHIVE: category-ID,  count-article,}**  //(end with a comma !!)//
Line 152: Line 154:
$alinkmenu['allowedtags']          = '<b><i><u><s><strong>'; // allowed tags in summary $alinkmenu['allowedtags']          = '<b><i><u><s><strong>'; // allowed tags in summary
-$alinkmenu['leading_article_hide'] = 0;            // No Artikle skiped+$alinkmenu['leading_article_hide'] = 0;            // No Artikle skipped
$alinkmenu['WxHxCxQ']              = '';           // No image parameter set  e.g. set 100x80x0 $alinkmenu['WxHxCxQ']              = '';           // No image parameter set  e.g. set 100x80x0
$alinkmenu['template_no']          = 0;            // default template = 0 $alinkmenu['template_no']          = 0;            // default template = 0
Line 175: Line 177:
Section: **TEMPLATES** for  ($alinkmenu['ul'] = 3 --------------------------------------- \\ Section: **TEMPLATES** for  ($alinkmenu['ul'] = 3 --------------------------------------- \\
-A very simple templates  //(Up to 10 different templates possible)//+A very simple templates  //(Up to 100 different templates possible)//
**Tags** //(place holder)//: **Tags** //(place holder)//:
Line 287: Line 289:
16.08.09 KH Update: + counter for "How many of the first articles are to be hidden" 16.08.09 KH Update: + counter for "How many of the first articles are to be hidden"
   {ARTICLE_MENU_ARCHIVE:category-ID, count-hide}    {ARTICLE_MENU_ARCHIVE:category-ID, count-hide}
-   E.g.:{ARTICLE_MENU_ARCHIVE:-1,0}  (Both parameters must be set)+   E.g.:{ARTICLE_MENU_ARCHIVE:-1,0,}  (Both parameters must be set)
     
05.09.09 KH Update: + count_article for "How many of articles are to be shown" (if available) 05.09.09 KH Update: + count_article for "How many of articles are to be shown" (if available)
Line 333: Line 335:
        wordlimit = 25,         wordlimit = 25,
        output archived articles (article_begin > NOW  AND  article_end > NOW)         output archived articles (article_begin > NOW  AND  article_end > NOW)
 +
 +10.12.09 KH Update: + BBCode in titel and subtitel possible
 +   E.g.: [i]Title[/i]  [b]Subtitle[/b] ......
V1.4 V1.4
*************************************************************************************/ *************************************************************************************/
-  + 
-  +//article menu enhanced  
-// ---------------------------------------------------------------- + 
-// obligate check for phpwcms constants +// {ARTICLE_MENU_ARCHIVE: category-ID, count-article, sXX, WxHxC, tXX, rX, wXXX, aX
-if (!defined('PHPWCMS_ROOT')) { +
-   die("You Cannot Access This Script Directly, Have a Nice Day."); +
-// ---------------------------------------------------------------- +
-  +
-  +
-//article menu enhanced+
// $catid: the category ID where the articles are (-1 = current category)) // $catid: the category ID where the articles are (-1 = current category))
// sXX-paramter: $leading_article_hide: How many of the first articles are to be skipped // sXX-paramter: $leading_article_hide: How many of the first articles are to be skipped
Line 353: Line 353:
// rX  -parameter: [0|1] random article sort order // rX  -parameter: [0|1] random article sort order
// wXXX-parameter: No. 0-999 max. words: [-1]=all words, [0]= no words // wXXX-parameter: No. 0-999 max. words: [-1]=all words, [0]= no words
 +
 +
 + 
 +// ----------------------------------------------------------------
 +// obligate check for phpwcms constants
 +if (!defined('PHPWCMS_ROOT')) {
 +   die("You Cannot Access This Script Directly, Have a Nice Day."); }
 +// ----------------------------------------------------------------
 + 
   
function my_article_menu_archive ($catid = 0, $count_article, $article_skip_WxHxCxQ_template = '', $CNT_TMP = '') { function my_article_menu_archive ($catid = 0, $count_article, $article_skip_WxHxCxQ_template = '', $CNT_TMP = '') {
Line 790: Line 799:
   
     // ArticleTitle ------------------      // ArticleTitle ------------------
-      $alinkmenu['title'] = html_specialchars($value['article_title']);+      $alinkmenu['title'] = render_bbcode_basics(html_specialchars($value['article_title']));
   
     // SubTitle ----------------------      // SubTitle ----------------------
      $alinkmenu['subtitle'] = (!empty($value['article_subtitle']) AND !empty($alinkmenu['subtitle_on'])) ?       $alinkmenu['subtitle'] = (!empty($value['article_subtitle']) AND !empty($alinkmenu['subtitle_on'])) ?
-      html_specialchars($value['article_subtitle']) : '';+      render_bbcode_basics(html_specialchars($value['article_subtitle'])) : '';
   
   
english/phpwcms_replacer_rts/frontend_render/article-menu-archive/article-menu-archive-img-template.1254292939.txt.gz · Last modified: 2018/06/03 18:08 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0