File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ public function display($tpl = null)
4343 $ this ->items = $ this ->get ('Items ' );
4444 $ this ->pagination = $ this ->get ('Pagination ' );
4545 $ this ->params = $ app ->getParams ('com_ccpbiosim ' );
46-
46+ $ this ->layout = $ app ->getInput ()->get ('_layout ' , 'default ' , 'STRING ' );
47+ $ this ->setLayout ($ this ->layout );
4748
4849 // Check for errors.
4950 if (count ($ errors = $ this ->get ('Errors ' )))
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<metadata >
3- <layout title =" COM_CCPBIOSIM_TITLE_LIST_VIEW_EVENTS" option =" View" >
4- <message >
5- <![CDATA[ COM_CCPBIOSIM_TITLE_LIST_VIEW_EVENTS_DESC]]>
6- </message >
7- </layout >
8-
3+ <layout title =" COM_CCPBIOSIM_TITLE_LIST_VIEW_EVENTS" option =" View" >
4+ <message ><![CDATA[ COM_CCPBIOSIM_TITLE_LIST_VIEW_EVENTS_DESC]]> </message >
5+ </layout >
6+ <fields name =" request" >
7+ <fieldset name =" request" >
8+ <field
9+ name =" _layout"
10+ type =" list"
11+ label =" Layouts"
12+ description =" Available View Layouts"
13+ required =" true"
14+ >
15+ <option value =" -1" >Choose a Layout</option >
16+ <option value =" default" >Default</option >
17+ <option value =" accordion" >Accordion</option >
18+ <option value =" list" >List</option >
19+ </field >
20+ </fieldset >
21+ </fields >
922</metadata >
You can’t perform that action at this time.
0 commit comments