Skip to content

Commit 9871d72

Browse files
authored
Merge pull request #42 from CCPBioSim/views
add events views and some basic code
2 parents a3b2206 + 47f8947 commit 9871d72

4 files changed

Lines changed: 574 additions & 7 deletions

File tree

com_ccpbiosim/site/src/View/Events/HtmlView.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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')))
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
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>

0 commit comments

Comments
 (0)