Jump to content

[solved] how to change tags block


Recommended Posts

edit css styles for module, you have to add clear:both; and display:block; to the:

 

div.tags_block p a {
margin: 0 0.1em;
line-height: 1.5em;
padding: 2px;
clear: both;
display: block;
}

 

this is a part of the file: /modules/blocktags/blocktags.css

  • Like 1
Link to comment
Share on other sites

in this case you have to edit .tpl file of blocktags module, open it (blocktags.tpl)

you've got there:

{if $tags}
{foreach from=$tags item=tag name=myLoop}
 <a href="{$link->getPageLink('search', true, NULL, "tag={$tag.name|urlencode}")}" title="{l s='More about' mod='blocktags'} {$tag.name|escape:html:'UTF-8'}" class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}">{$tag.name|escape:html:'UTF-8'}</a>
{/foreach}
{else}

 

change it to:

 

{if $tags}
<ul>
{foreach from=$tags item=tag name=myLoop}
 <li><a href="{$link->getPageLink('search', true, NULL, "tag={$tag.name|urlencode}")}" title="{l s='More about' mod='blocktags'} {$tag.name|escape:html:'UTF-8'}" class="{$tag.class} {if $smarty.foreach.myLoop.last}last_item{elseif $smarty.foreach.myLoop.first}first_item{else}item{/if}">{$tag.name|escape:html:'UTF-8'}</a></li>
{/foreach}
</ul>
{else}

 

don't forget about css styles for new <ul> and <li> elements!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...