Link Manager show category name then links

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: Link Manager show category name then links

Post by KitchM »

Rolf,
It is version 2.0. I do not remember any upgrade to it.

velden,
Thanks for clarifying. That makes all the difference.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Link Manager show category name then links

Post by Rolf »

New install LinkMgr contains a template with category displaying by default.

1. Add in page {LinkMgr}
2. Open LinkMgr admin page
3. Open the templates tab
4. Set template default_category true/default

That is all it takes!


For others, the template content is:

Code: Select all

<div class="linkmgr">
  {foreach from=$items item='item'}
    {if $foo|default:'' != $item.link_category}
      <h3>{$item.link_category}</h3>
    {/if}
    <p><a href="{$item.link_url}" target="_blank">{$item.link_name}</a><br />{$item.link_desc|default:''}</p>
    {$foo = $item.link_category}
  {/foreach}
</div>
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
KitchM
Power Poster
Power Poster
Posts: 328
Joined: Mon Dec 02, 2013 3:26 am

Re: [Solved] Link Manager show category name then links

Post by KitchM »

Thanks, Rolf. I always love your clear instructions. I wish all were as clear.

I did as you suggested, but the default, and only, template is entitled "default". I do not see the one that is called "default_category". Therefore, "default" is active by default.

So I viewed the one named default. It contains:

Code: Select all

<div class="linkmgr">
<ul>
{foreach from=$items item="item"}
    <li><a href="{$item.link_url}" target="_blank">{$item.link_name}</a> - {$item.link_desc}</li>
{/foreach}
</ul>
</div>
So I created a new one named default_category, and then pasted in your suggested code. After submitting that one and then reloading the web page, it displayed as it should.

Woo hoo!!! You, sir, are awesome! Thank you so much for that solution. 8)

Too bad the LinkManager module does not work as it states. Everyone needs to note that just using one of the smarty tags they give in the instructions will do nothing without creating the necessary code, as well as the associated template, which one needs to figure out one's self.

Thanks again, Rolf!
Post Reply

Return to “Modules/Add-Ons”