Quote:
Originally Posted by isidoro81 Hi,
I've seen your suggestion for changing the category meta, but i think that it's important also to add some unique text in each category. It's really important for seo reasons and for the visitor that can have a short general description of cat...
Here SocialFood / Published News / Vino before the first news, I'd like to insert some text to describe the wine, this will make the page unique....
Is it possible?...
I think that it'll be important for a lot of people...
Thanks and sorry for my bed English |
Yes, of course it's possible. Please understand though, this fix can actually be applied to any template file such as the header, footer, pligg, etc. It really all depends on where you want it to appear and how your template is constructed. There are so many templates out there now, and they're all made so differently, that by applying this fix, you might completely mess up your template layout.
SO BE WARNED -- DO NOT APPLY THIS FIX IF YOU DO NOT UNDERSTAND YOUR TEMPLATE!
If you want to include it, then here's the fix for that. This fix uses the
yget template as an example.
Open pligg.tpl file and find:
Code:
<div id="contentbox" {if $pagename eq "editor"}style="width:100%"{/if}>
{checkActionsTpl location="tpl_pligg_above_center"}
{include file=$tpl_center.".tpl"}
{checkActionsTpl location="tpl_pligg_below_center"}
</div><!-- contentbox end -->
Replace with: Code:
<div id="contentbox" {if $pagename eq "editor"}style="width:100%"{/if}>
<div style="padding: 10px; line-height: 1.2em">
{if $pagename eq "published"}
{if $category eq "Category 1"}
My Custom Published category 1 page description goes here.
{elseif $category eq "Category 2"}
My Custom Published category 2 page description goes here.
{elseif $category eq "Category 3"}
My Custom Published category 3 page description goes here.
{elseif $category eq "Category 4"}
My Custom Published category 4 page description goes here.
{else}
My Default Custom Published page description goes here.
{/if}
{elseif $pagename eq "upcoming"}
{if $category eq "Category 1"}
My Custom Upcoming category 1 page description goes here.
{elseif $category eq "Category 2"}
My Custom Upcoming category 2 page description goes here.
{elseif $category eq "Category 3"}
My Custom Upcoming category 3 page description goes here.
{elseif $category eq "Category 4"}
My Custom Upcoming category 4 page description goes here.
{else}
Your Default Welcome page description.
{/if}
{/if}
</div>
{checkActionsTpl location="tpl_pligg_above_center"}
{include file=$tpl_center.".tpl"}
{checkActionsTpl location="tpl_pligg_below_center"}
</div><!-- contentbox end -->