Jump to content

Dundurs

Members
  • Posts

    83
  • Joined

  • Last visited

Reputation Activity

  1. Agree
    Dundurs reacted to Nick² in User Group/Permission Inheritance   
    I think one thing that IP.Board has been lacking in the past is an easier way to manage user groups. As new permissions are added in new versions, it becomes rather time consuming to update every user group to ensure these are set how we'd like, especially for anyone running a board with 10+ groups. It would be great if we could just have each group (optionally) inherit permissions from another group, and the ability to leave a permission blank in order to inherit it from the parent group.

    Right now, the only way to get anything close to this would be to assign tons of secondary groups, but in the end I think that just makes it more confusing to manage everything.
  2. Like
    Dundurs reacted to Ralf Herrmann in PAGES - Confused by IPB & the staff   
    And regarding the grid view for article listings: while that is not a default option, it only needs a small template change, since a responsive grid is already in the CSS. 
    So to have a grid view for articles:
    1. Add a custom database template in the Pages’ template manager. Make sure it’s of the type “Featured Records”. Also make sure you assign it to your article database. Also call it “Article Grid” (that name is later used in the code). 

    2. Open the “index” template of this newly created template group. 
    Replace this part:
    {{if count($articles)}} {{foreach $articles as $id => $record}} {template="entry" app="cms" location="database" group="article_grid" params="$record, $database"} {{endforeach}} {{endif}} With this:
    {{if count($articles)}} <div class='ipsGrid ipsGrid_collapsePhone'> {{foreach $articles as $id => $record}} <div class='ipsGrid_span6'> {template="entry" app="cms" location="database" group="article_grid" params="$record, $database"} </div> {{endforeach}} </div> {{endif}} That’s it. Your articles are now displayed as a grid which automatically collapses on smaller screen. 
    And a bonus for all those who want the 2x1x1 layout from 3.4 – use this instead:
    {{if count($articles)}} <div class='ipsGrid ipsGrid_collapsePhone'> {{foreach $articles as $id => $record}} {{if ($id == 0)}} <div class='ipsGrid_span12'> {{else}}<div class='ipsGrid_span6'> {{endif}} {template="entry" app="cms" location="database" group="article_grid" params="$record, $database"} </div> {{endforeach}} </div> {{endif}}
     
×
×
  • Create New...