Most recent edit on 2008-07-13 10:18:28 by ElterCortr [http://coesar.www1.biz/sitemap.html]
Additions:
[sitemap|http://coesar.www1.biz/sitemap.html∞] sitemap∞ [http://coesar.www1.biz/sitemap.html|sitemap∞] ((http://coesar.www1.biz/sitemap.html∞ sitemap)) | sitemap∞ "sitemap":http://coesar.www1.biz/sitemap.html∞ [site|http://griteilobo.rifo.net/sitemap.html∞] site∞ [http://griteilobo.rifo.net/sitemap.html|site∞] ((http://griteilobo.rifo.net/sitemap.html∞ site)) | site∞ "site":http://griteilobo.rifo.net/sitemap.html∞ [http|http://judywolf.ide.am/sitemap.html∞] http∞ [http://judywolf.ide.am/sitemap.html|http∞] ((http://judywolf.ide.am/sitemap.html∞ http)) | http∞ "http":http://judywolf.ide.am/sitemap.html∞ [web|http://levnashka.ide.am/sitemap.html∞] web∞ [http://levnashka.ide.am/sitemap.html|web∞] ((http://levnashka.ide.am/sitemap.html∞ web)) | web∞ "web":http://levnashka.ide.am/sitemap.html∞ [here|http://ottery.yourfreehosting.net/sitemap.html∞] here∞ [http://ottery.yourfreehosting.net/sitemap.html|here∞] ((http://ottery.yourfreehosting.net/sitemap.html∞ here)) | here∞ "here":http://ottery.yourfreehosting.net/sitemap.html∞
Get type of ressource / rÃÂécuperer le type d'une ressource:
Deletions:
Get type of ressource / récuperer le type d'une ressource:
Edited on 2008-07-11 12:00:03 by ElterCortr [basroldro]
Additions:
sitdomac
Get type of ressource / récuperer le type d'une ressource:
Deletions:
Get type of ressource / récuperer le type d'une ressource:
Edited on 2007-11-15 11:32:20 by PasboTroco
Additions:
basboelsi
Get type of ressource / récuperer le type d'une ressource:
Deletions:
Get type of ressource / récuperer le type d'une ressource:
Edited on 2005-03-15 06:13:02 by CedricArrabie
Additions:
By Pepper
Oldest known version of this page was edited on 2005-03-15 02:54:47 by CedricArrabie []
Page view:
Get type of ressource / récuperer le type d'une ressource:
In/Dans
manager\frontinc\functions.php add / ajouter :
function pxGetLastResType()
{
return $GLOBALS['_PX_render']['m']->lres->f('type_id');
}
function pxGetResType()
{
return $GLOBALS['_PX_render']['m']->res->f('type_id');
}
Exemple for use in your
category_homepage.php in a $last loop:
<?php
if ('articles' == pxGetLastResType
())
{
echo '<p><a href="';
pxLastResPath
();
echo '">Read <cite>';
pxLastResTitle
('%s');
echo '</cite></a>.</p>';
}
?>
Exemple for use in your
category_category.php in a $res loop:
<?php
if ('articles' == pxGetResType
())
{
echo '<p><a href="';
pxResPath
();
echo '">Lire <cite>';
pxResTitle
('%s');
echo '</cite></a>.</p>';
}
?>