2013-04-10 69 views

回答

1

我在https://github.com/betweenbrain/hideitems/blob/master/hideitems.php

像这样的基本想法是做这样的事情:

function onAfterRender() { 

    // The curent item ID 
    $itemId  = JRequest::getInt('Itemid', 0);  
    // Parameter with item ids to run they are the item ID 
    $targetIds = $this->params->get('targetIds'); 

    // Check if we are viewing a target ID 
    if (strpos($targetIds, $itemId)){ 

     // do something awesome 
     return TRUE; 
    } 

    return FALSE: 

} 
相关问题