Tuesday, September 8, 2009

Code identification;
In pligg.tpl, near the end, in any of the three template folders is (not, [ replaces <);

[!-- START LEFT COLUMN --]

{if $pagename eq "submit"}
{elseif $pagename neq "story" && $pagename neq "user" && $pagename neq "profile" && $pagename neq "login" && $pagename neq "register" }
[div id="leftcol"]
{else}
[div id="leftcol-wide"]
{/if}
{if $pagename eq "group_story"}
[div id="group_navbar"][/div]
{/if}
{checkActionsTpl location="tpl_pligg_content_start"}
{checkActionsTpl location="tpl_pligg_above_center"}
{include file=$tpl_center.".tpl"}
{checkActionsTpl location="tpl_pligg_below_center"}
{checkActionsTpl location="tpl_pligg_content_end"}
[/div]

[!-- END LEFT COLUMN --]

The bold text calls a control from the style.css (in the wistie/css folder in the template folder). For special pages (i.e. story, user, profile, login or register, which includes the front page) the css links to;

#leftcol {

width: 550px;

float: left;

overflow: hidden;

}


#leftcol-wide {

width: 790px;

float: left;

overflow: hidden;

}


which is in the /* STORIES */ section of the CSS style sheet, about 1/4 of the way down the document. Therefore, editing .leftcol will alter the layout of the main text/story information on the front page. Adding an extra if-else function will probably be required if it is only to effect the front page.




No comments:

Post a Comment