Moonsoft Software Solutions

Display List With Category Heading

Started 18 Jan 2017 · 3 replies

  1. turner
    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
  2. Moonsoft support
    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
  3. turner
    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!
  4. Moonsoft support
    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

Still stuck?

Customers with an active license can open a support ticket.

Log in to open a ticket