waldiPL Posted July 9, 2013 Share Posted July 9, 2013 (edited) i want to change tag display method now it looks like: ipod, apple, shuffle, ipod touch what i expect is list: ipod apple shuffle ipod touche Edited July 9, 2013 by waldiPL (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 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 1 Link to comment Share on other sites More sharing options...
waldiPL Posted July 9, 2013 Author Share Posted July 9, 2013 solved, thanks and what if i want to display it as list? (with <li> elements instead the <a>) Link to comment Share on other sites More sharing options...
vekia Posted July 9, 2013 Share Posted July 9, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now