Wiki Plume Community : ArtPageContentAll

HomePage :: Categories :: PageIndex :: RecentChanges :: RecentlyCommented :: Login/Register

EN Display the content of every article page


Insert this function in manager/frontinc/functions.php :

/**
 Display the content of every article page.
 @proto function pxArtPageContentAll
 @param string s Substitution string for the page_title ('%s')

*/

function pxArtPageContentAll($s = '%s')
{
  while (!$GLOBALS['_PX_render']['m']->art->pages->EOF()) {
    echo sprintf($s, $GLOBALS['_PX_render']['m']->art->pages->f('page_title'));
    echo textParseContent($GLOBALS['_PX_render']['m']->art->pages->f('page_content'));
    $GLOBALS['_PX_render']['m']->art->pages->moveNext();
  }
}



FR Afficher tous les chapitres à la suite


Insérer cette fonction dans manager/frontinc/functions.php :

/**
 Display the content of every article page.
 @proto function pxArtPageContentAll
 @param string s Substitution string for the page_title ('%s')

*/

function pxArtPageContentAll($s = '%s')
{
  while (!$GLOBALS['_PX_render']['m']->art->pages->EOF()) {
    echo sprintf($s, $GLOBALS['_PX_render']['m']->art->pages->f('page_title'));
    echo textParseContent($GLOBALS['_PX_render']['m']->art->pages->f('page_content'));
    $GLOBALS['_PX_render']['m']->art->pages->moveNext();
  }
}
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by Wikka Wakka Wiki 1.1.6.1
Page was generated in 1.5398 seconds