defsson Posted April 24, 2013 Share Posted April 24, 2013 Hi, i want to display tags in bloctags module as alphabetical list instead of cloud or random size mash-up words Is there any simple solutions for that ? Or maybe u know some tags related module that will enhance tags displaying ? Regads Link to comment Share on other sites More sharing options...
Andrej Stas Posted April 24, 2013 Share Posted April 24, 2013 This has been already answered here: http://www.prestashop.com/forums/topic/71304-solved-alphabetical-sorting-of-tag/ Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2013 Share Posted April 24, 2013 go to the classes / Tag.php then look for function: public static function getMainTags($id_lang, $nb = 10) you've got there: ORDER BY times DESC change it to: ORDER BY t.name Link to comment Share on other sites More sharing options...
defsson Posted April 24, 2013 Author Share Posted April 24, 2013 Thank you for fast respond, but i was not clear in my question. I found that thread, and yes tags are in alphabetical order, but i want them to display in list (same as categories are displayed) what i want: Lion Elephant Pig what i dont want : Lion Elephant Pig Link to comment Share on other sites More sharing options...
vekia Posted April 24, 2013 Share Posted April 24, 2013 Thank you for fast respond, but i was not clear in my question. I found that thread, and yes tags are in alphabetical order, but i want them to display in list (same as categories are displayed) what i want: Lion Elephant Pig what i dont want : Lion Elephant Pig ok, so now go to the / modules / blocktags / blocktags.tpl and remove class="" from: {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} Link to comment Share on other sites More sharing options...
defsson Posted April 25, 2013 Author Share Posted April 25, 2013 Hi, class cleared but tags keep displaying in one line: smarty off and deleted, browser cache clean, version of presta 1.5.4.1 Link to comment Share on other sites More sharing options...
vekia Posted April 25, 2013 Share Posted April 25, 2013 you can add style="display:block; clear:both;" after that tags will appear line - by - line pozdrowienia z Polski ;-) Link to comment Share on other sites More sharing options...
defsson Posted April 25, 2013 Author Share Posted April 25, 2013 you can add style="display:block; clear:both;" after that tags will appear line - by - line pozdrowienia z Polski ;-) added display:block; clear:both; in blocktags.css -> div.tags_block p a { } solved problem , thank you dziękuję i Pozdrawiam również 1 Link to comment Share on other sites More sharing options...
Recommended Posts