Include_Content_Item_If


Include_Content_Item_if plugin based on kksou's Include_content_item plugin which allows the inclusion of one content item into another. Include_Content_Item_if does this but allows you to specify a condition by which the content will be displayed. Example usage {include_content_item_if 144 ($userinfo=& JFactory::getUser();return $userinfo->guest==false)} Will only include content item 144 if there is a user logged in (not a guest) Code between the normal brackets "( & )" must be valid php (include ;) and must include a return statement.

No comments:

Post a Comment