The first step was changing the file to;
{if $pagename eq "index"}
{if $link_category eq "News"}
ALL original code in file except {checkActionsTpl location="tpl_pligg_story_end"}
{/if}
{else}
ALL original code in file except {checkActionsTpl location="tpl_pligg_story_end"}
{/if}
{checkActionsTpl location="tpl_pligg_story_end"}
This means that index now shows only stories from the News category, while the other pages remain unchanged.
I also rewrote the [div] code in the first orig_code_copy only to read;
[div class="stories_two" id="xnews-{$link_shakebox_index}" {if $link_shakebox_currentuser_reports gt 0} style="opacity:0.3;filter:alpha(opacity = 30)"{/if}]
while adding the following to templates/wistie/css/style.css;
.stories_two {
width: 275px;
margin-bottom: 30px;
}
Which ensured the stories now fitted within the shrunken column width.
No comments:
Post a Comment