List Manager Forum

Display List With Category Heading

Usuario turner 2017-01-18 23:11:16

How do I create a view that will output my records with a category heading.

CATEGORY 1
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
CATEGORY 2
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
CATEGORY 3
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD
RECORD NAME ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD ADDITIONAL RECORD FIELD

Moonsoft support 2017-01-19 14:36:37

Hi,
in order to get such layout you would need to create 3 views, for each one you must configure the view to 'filter' using the category column with one of the values. Now you can use a default article and the module view (3 modules, with positions listview1, listview2, listview3 for ex) in order to create your desired layout:

CATEGORY 1
{loadposition listview1}


CATEGORY 2
{loadposition listview2}


CATEGORY 3
{loadposition listview3}

Hope this helps,regards

Usuario turner 2017-01-30 22:56:58

Thank you that solution is working except that it leaves a great deal of blank lines that I would like to remove.
Please see http://www.alynnsbutterflyinn.com/joomla/index.php/events

Can you advise how/where/what to remove so that I can delete that excess space between the modules.
Thanks!

Moonsoft support 2017-01-31 12:50:51

Hi,
ok, you have several extra spaces that you can remove. First, your can try to remove a couple of new lines (br tags) that are at the module template:


joomla\modules\mod_listmanager\tmpl\content.php

lines 1634 and 1638

and also your template is adding an extra margin of 20 px to each of the forms, at your css


joomla/templates/ALBI/css/template.css (line 861) you have


form {
margin: 0 0 20px;
}

You can correct at the template or if you prefer to apply only to ListManager forms, you can add this to LM css


joomla/modules/mod_listmanager/assets/css/default2.css

#lm_wrapper form{

margin: 0px !important;
}

Hope this will do the work, let us know if you need further help with this.

Regards