I'd like to be able to customize each categories page. By including an extra image and text. Is this possible?
http://www.themasque.net/efiction/browse.php?type=categories&id=2
On this page I'd like to include some text under the "The Salon" title bar.
I think you go into admin > blocks > categories
I am rebuilding efiction! Join us on irc! #efiction at
Hmm, nope. Thats the block for the list of categories which appears on the index.
You go to Admin->Categories->Edit
At the bottom of that screen you should see something that says IMAGE: type in the name of the image file. Make sure you put the picture in the image folder of your skins. (For all your skins folders if you want it to show up in all skin layouts).
The Description box will let you add extra text.
******************************************
Mucking around in eFiction since circa 2001 (ver. 1.0)
Now running v.3
http://www.themasque.net/efiction/browse.php?type=categories&id=2
http://www.themasque.net/efiction/
The category in question "2" has a description of "Odes to Thamyris and Sappho" and an image which is set and working on the main page. The page I linked still includes neither.
I'd also like the option to be able to add extra text other than the description. But maybe the description would be a start.
You have to add the descriptions and images to your skin.
Add this, or something like it, to your categories.php file:
<!-- START BLOCK : categoryblock -->
{image} {link} {count}<br /> {description}<br /><br />
<!-- END BLOCK : categoryblock -->
Should my skin have a categories.php file? because it doesnt.
If it doesn't, it's using the categories.tpl (sorry, that's what I meant above not categories.php) from the default_tpls folder. You can either copy the code I posted over what's in the default_tpls folder or create a new one and place it in your skin folder.
the categories.tpl in the default_tpls folder already contains...
<!-- START BLOCK : categoryblock -->
{image} {link} {count} {description}
<!-- END BLOCK : categoryblock -->
I uploaded a copy of this file into my skin's folder and saw to change. It seems like it's the category's block not the category page? I'm not sure.
Did you make the changes in your settings like mentioned above?
Adding extra line breaks?
No, go to admin>categories>edit (for each category) and enter a description and an image. Then put the image with the same name in the images folder of your skin. Who suggested you add line breaks?
Umm, Each of the categories has a description, and an image (they have had them since before I created this thread). And none of them appear on the actual categories page.
The line break was the only thing different in your example code, so thats what I thought you ment when you said "make the changes in your settings like mentioned above? "
It appears there is something else going on. Do you have a variables.php in the skin folder of this skin? if so, paste the contents (or at least any references to categories) into a post.
Here's everything in my variables.php
<?php
$blocks["categories"]["status"] = 2;
$blocks["featured"]["status"] = '0';
$blocks["info"]["status"] = 2;
$blocks["menu"]["status"] = '1';
$blocks["menu"]["content"] = array (
0 => 'home',
1 => 'recent',
2 => 'authors',
3 => 'catslink',
4 => 'titles',
5 => 'series',
6 => 'search',
7 => 'tens',
8 => 'challenges',
9 => 'help',
10 => 'contactus',
11 => 'login',
12 => 'logout',
13 => 'adminarea');
$blocks["menu"]["style"] = 1;
$blocks["login"]["status"] = 1;
$blocks['login']['acctlink'] = 2;
unset($blocks["login"]["template"]);
$blocks["login"]["form"] = 1; // Long form with register and lost password options
$blocks["random"]["status"] = 2;
$blocks["recent"]["status"] = 2;
$blocks['recent']['tpl'] = 0;
$blocks["skinchange"]["status"] = '1';
$blocks["news"]["status"] = 2;
$displayprofile = 1;
?>
