Opened 7 years ago

Closed 7 years ago

#1852 closed feature request (fixed)

Infobox helper

Reported by: bergie Owned by: bergie
Priority: major Milestone: 8.09.9 Ragnaroek
Component: MidCOM component Version: 8.09 Ragnaroek
Keywords: Cc:

Description

We should have an infobox helper component that would enable designers and users to easily place content on pages where there is no obvious content object available (for example: blog category pages, input forms).

The infoboxes should be available for inclusion in templates without having to touch actual components displaying them.

Usage example in a template:

<div class="infobox">
<?php
$infobox = net_nemein_infobox::get_infobox();
if (isset($infobox['infobox_view']))
{
    // infobox_view contains the normal datamanager view array for the box
    echo $infobox['infobox_view']['content'];
}
if (isset($infobox['toolbar']))
{
    // Toolbar for creating and managing the infobox
    echo $infobox['toolbar']->render();
}
?>
</div>

Change History (1)

comment:1 Changed 7 years ago by bergie

  • Resolution set to fixed
  • Status changed from new to closed

(In [26306]) New "infobox" helper component for including content in templates that don't have content objects, fixes #1852

Note: See TracTickets for help on using tickets.