PDA

Zobacz pełną wersję : Fabrik - lista w artykule lub module



maverickoti
12-06-2014, 12:31
Witam.

Chcę wyświetlić na raz dwie listy z komponentu Fabrik. Nie wiem jak to zrobić. Moze da się je wyświetlić w artykule jak moduł? Ma ktoś jakiś pomysł?

maverickoti
12-06-2014, 13:33
Witam.

Udało mi się rozwiązać ten problem. Podaje rozwiązanie, może się komuś przyda.

Mianowicie, żeby wyświetlić np dwie listy jedna pod drugą można je umieścić w jednym artykule. Aby to zrobić należy:
1. stworzyć artykuł
2. uaktywnić dodatek (plugin) Content - Fabrik (http://www.pobieralnia24.com/administrator/index.php?option=com_plugins&task=plugin.edit&extension_id=10082)
3. w artykule wpisać: {fabrik view=list id=1}{fabrik view=list id=4}.
KONIEC

Oczywiście w ten sposób można wstawić formularz lub część listy (już przefiltrowanej). Opisy jak to zrobić są w pluginie Content - Fabrik (http://www.pobieralnia24.com/administrator/index.php?option=com_plugins&task=plugin.edit&extension_id=10082) lub tutaj:
Insert Fabrik views (list/form/details/visualizations) into your content.
Forms{fabrik view=form id=1} Will allow you to add a new record to a form whose id is 1
{fabrik view=form id=1 row=1} will let the user edit that form's row 1.
{fabrik view=details id=1 row=1} will show a read only view of that form's row 1.
Lists{fabrik view=list id=1} to insert a list whose id is 1.
{fabrik view=list id=1 listname___elementname=foobar} will filter the list to show only records where 'elementname' has a value of 'foobar'
{fabrik view=list id=1 listname___elementname=1 showfilters=0} will show the list's filtered results without any search filters showing
{fabrik view=list id=1 resetfilters=1} will reset any filters that were previously applied to the list
Visualisations{fabrik view=visualization id=1} will show visualization id 1
Element data{fabrik view=element list=11 rowid=239 element=element_test___checkbox} to insert list 11 row 239's checkbox element's data
Common modifiersFor which ever view you choose you can change its template by adding 'layout=templatename'
Specifiy if a filter is an exact match with listname___elementname[match]=1