Different listing views

This topic contains 7 replies, has 3 voices, and was last updated by  Stiofan O’Connor 4 years, 11 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #399438

    Jorge Dändliker
    Buyer
    Post count: 150

    Hi there
    You offer five different listing views: list and 2-5 columns. Would it be possible somehow to reduce this to only two different views? What I want to do: Users should have the possibility to chose between a “normal” view where he sees all details like thumbnails, title, date, reviews, category, favorites… (on my page this would be the listing view) and a minimized version only to show title, date, category and favorites. If possible all data of the same event on one line to keep the list as small as possible.

    Currently, I have disabled the dropdown to change the view because if users see five different view options on the event listing page, they will be overwhelmed.

    Thank you for your feedback.

    Best regards
    Jorge

    #399450

    Guust
    Moderator
    Post count: 29970

    Hi Jorge, this should hide Grid 2 option:

    .geodir-list-view-select option[value='2'] {display: none;}

    The rest can be achieved with CSS too.
    LI will have a reference to the selected grid that you can target to hide or change the look, for example this would hide the title in Grid 3 view only:

    li.gridview_onethird .geodir-entry-title {display: none;}

    Thanks

    #400327

    Jorge Dändliker
    Buyer
    Post count: 150

    Dear Guust
    Thanks for your feedback. Hiding some options works with Chrome and Firefox but unfortunately not with Safari. I tried to hide Grid 3, 4 and 5 but they still appear in Safari (not in Chrome and not in Firefox). Is there anything else to setup for Safari?
    Thanks again and best regards
    Jorge

    #400391

    Stiofan O’Connor
    Site Admin
    Post count: 22954

    Hi Jorge,

    Can you link to your site, i know safari can be a nightmare with cache, it might just be that.

    Stiofan

    #400397

    Jorge Dändliker
    Buyer
    Post count: 150
    This reply has been marked as private.
    #400418

    Stiofan O’Connor
    Site Admin
    Post count: 22954

    Yeah, apple taking over from IE in the not sticking to converntions…

    Looks like you will need a JS solution, add this to GD>Design>Scripts>footer script

    
    
    <script>
    jQuery(function() {
       jQuery("#gd_list_view option[value='3']").remove();
       jQuery("#gd_list_view option[value='4']").remove();
       jQuery("#gd_list_view option[value='5']").remove();
    });
    </script>

    Stiofan

    #400523

    Jorge Dändliker
    Buyer
    Post count: 150

    Hi Stiofan
    Thanks for your great support – it works!
    Best regards
    Jorge

    #400640

    Stiofan O’Connor
    Site Admin
    Post count: 22954

    🙂

Viewing 8 posts - 1 through 8 (of 8 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket