Strict Standards: Declaration of action_plugin_dlcount::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/dlcount/action.php on line 14

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/indexmenu/action.php on line 169

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/ipban/action.php on line 67

Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/loglog/action.php on line 82

Strict Standards: Declaration of action_plugin_navi::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/navi/action.php on line 46

Strict Standards: Declaration of action_plugin_uparrow::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/uparrow/action.php on line 69

Strict Standards: Declaration of action_plugin_userspagecreate::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/userspagecreate/action.php on line 97

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/www/wiki/inc/cache.php on line 289

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/auth.php on line 312

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/actions.php on line 154
Artikel inklusive CP [phpwcms-HowTo:wiki]

Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/code/syntax.php on line 41

Strict Standards: Declaration of syntax_plugin_tip::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/tip/syntax.php on line 38

Artikel inklusive CP

Derzeit gibt es keine Möglichkeit im der Artikellisten-Ansicht auch die CPs auszugeben. Diese Erweiterung für das Listing-Template ändert das.


Autor: Robert Auf Grundlage der Arbeit von K.Heermann (flip-flop)
Vorlage Artikellisting Template:



Neues phpwcms (>=18112014)

{SHOW_CONTENT:CPA, {ARTICLEID} }

Altes phpwcms (<18112014)

[PHP]
      // Artikel in der DB suchen und CP-ID bereitstellen
      // Search for the article and make the CP-ID available
      $sql  = "SELECT acontent_id, acontent_aid ";
      $sql .= "FROM ".DB_PREPEND."phpwcms_articlecontent ";
      $sql .= "WHERE acontent_visible=1 AND acontent_trash=0 ";
      $sql .= 'AND acontent_aid = ' . {ARTICLEID} . ' ';
      $sql .= "ORDER BY acontent_sorting";
 
      $result = _dbQuery($sql);
 
      if(isset($result[0]['acontent_id'])) {  // Any result available?
 
         // Create CP-IDs string for SHOW_CONTENT
         $cp_my_id_str   = '';
 
            foreach($result as $value) {
              $cp_my_id_str .= ','.$value['acontent_id'];
            }
 
         // Make the encountered CPs available
         echo showSelectedContent('CP'.$cp_my_id_str);
   }
[/PHP]


Siehe auch:

SHOW_ARTICLE_CP

RT: {SHOW_CONTENT:MODE,id,id,id}

2. {SHOW_CONTENT:CPA, art-id, art-id, art-id}
    Aufsteigende Ausgabe der CPs, jedoch sind die IDs die Artikel-IDs.

3. {SHOW_CONTENT:CPAD, art-id, art-id, art-id}
    Absteigende Auagabe der CPs. IDs sind Artikel-IDs.
    (Die Seitenausgabe verlangsamt sich etwas).


deutsch/phpwcms-system/artikel/vorlagen/artikel-liste/ausgabe-inkl-cp.txt · Last modified: 2014/11/19 09:38 by Robert
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

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 79