Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Link manager column view?

#1284

Is there an easy way to have the link manager module display the links in a column? For example suppose you have 50 links, then after 25 are displayed in a column, the second 25 are displayed in a second column.

Reported by BJ Kline · April 2nd, 2015 @ 06:07 PM

State: new
Milestone: User issues
Assigned to: dleffler dleffler

Activity

  1. BJ Kline
    BJ Kline

    Like this?

          <div class="links2">
                {foreach name=items from=$items item=item name=links}
                {if $cats@iteration > count($cats)/2}
    </div>
    <div class="2col-class">
    {/if}
                    <li class="item{if $smarty.foreach.links.last} last{/if}">
                        <a class="link{if !empty($config.websnapr_key)} websnapr{/if}" {if $item->new_window}target="_blank"{/if} href="{$item->url}" title="{$item->body|summarize:"html":"para"}">{$item->title}</a>
                        {permissions}
                            <div class="item-actions">
                                {if $permissions.edit || ($permissions.create && $item->poster == $user->id)}
                                    {if $myloc != $item->location_data}
                                        {if $permissions.manage}
                                            {icon img='arrow_merge.png' action=merge id=$item->id title="Merge Aggregated Content"|gettext}
                                        {else}
                                            {icon img='arrow_merge.png' title="Merged Content"|gettext}
                                        {/if}
                                    {/if}
                                    {icon action=edit text='notext' record=$item}
                                {/if}
                                {if $permissions.delete || ($permissions.create && $item->poster == $user->id)}
                                    {icon action=delete text='notext' record=$item}
                                {/if}
                            </div>
                        {/permissions}
                    </li>
                {/foreach}
                </div>
    

    Then in my stylesheet I added

    .links2 { width: 50%;}
    .2col-class {float:right;}
    

    That didn't change anything.

    April 3rd, 2015 @ 01:02 PM

  2. BJ Kline
    BJ Kline

    That example helped. I removed the following code from the 'li' on line 83 of showall_quicklinks.tpl, after moving the file into the appropriate folder in my theme.

    class="item{if $smarty.foreach.links.last} last{/if}"
    

    and added

    class="two-col-special"
    

    to the 'ul' on line 81.

    Now its working like I wanted. I guess I should have done more Googling. :)

    April 3rd, 2015 @ 09:05 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.