You can have the
Section Name - Category Name shown under the article's title on the frontpage and in the article itself, but you can't have the Section Name shown in a Blog Content view (either Category or Section).
To add the option to show the Section Name (and make it Linkable) in Blog Content Category and Blog Content Section menu items:
USE AT YOUR OWN RISK & BACK UP FIRST!it doesn't change anything big, but who knows...
in files:
/administrator/components/com_menus/content_blog_category/content_blog_category.xml
/administrator/components/com_menus/content_blog_section/content_blog_section.xml
between lines:
Code:
<param name="@spacer" type="spacer" default="" label="" description="" />
and
Code:
<param name="category" type="radio" default="0" label="Category Name" description="Show/Hide the Category the item belongs to">
add:
Code:
<!-- Show Section Names Hack -->
<param name="section" type="radio" default="0" label="Section Name" description="Show/Hide the Section the item belongs to">
<option value="0">Hide</option>
<option value="1">Show</option>
</param>
<param name="section_link" type="radio" default="0" label="Section Name Linkable" description="Make the Section text a link to the actual Section page">
<option value="0">No</option>
<option value="1">Yes</option>
</param>
<!-- Show Section Names Hack -->
Now edit the menu item(s) linking to the page(s) where you want to display the Section Name-Category Name and check the new options above
Show Category Name.
Since we're at it, you might want to
replace the Section Name - Category Name separator:
(back up your files first!)in file:
/components/com_content/content.html.php
find these lines:
Code:
// writes dash between section & Category Name when both are active
if ( $params->get( 'category' ) ) {
echo ' - ';
and change the '-' inside
echo ' - '; to whatever you like, i.e.:
Code:
echo ' » ';
J!1.5 does this (the section name thing) natively, and I couldn't for the life of me figure out why 1.0.13 wouldn't do it... it seems like the option was "dropped" somehow...
It took me hours to figure how to add that darn section name, browsing the forums, googling, trying to figure out content.php... I started working with J! just two months ago, and have no PHP or programming skills, so the task started to seem a bit beyond my means, or else it was something so obvious I couldn't see it... then just when I was about to give up I thought: "Just add back the options in the menu... nah, it can't be THAT simple... but it's worth a shot..." And it worked!
Well, hopefully I didn't screw anything up, though I wonder why the option is not there to begin with...