#1284 new
BJ Kline

Link manager column view?

Reported by BJ Kline | April 2nd, 2015 @ 06:07 PM | in User issues

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.

Comments and changes to this ticket

  • BJ Kline

    BJ Kline April 3rd, 2015 @ 01:02 PM

    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.

  • BJ Kline

    BJ Kline April 3rd, 2015 @ 09:05 PM

    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. :)

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Pages