Customized Categori...
 
Notifications
Clear all

Customized Categories Page

23 Posts
6 Users
0 Reactions
5,362 Views
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

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.


 
Posted : 12/04/2007 10:07 pm
(@itanshi)
Posts: 381
Reputable Member
 

I think you go into admin > blocks > categories


I am rebuilding efiction! Join us on irc! #efiction at www.mibbit.com Instructions for irc 😀 Alpha released!

 
Posted : 12/04/2007 10:39 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

Hmm, nope. Thats the block for the list of categories which appears on the index.


 
Posted : 12/04/2007 11:14 pm
(@babaca)
Posts: 722
Member Moderator
 

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

 
Posted : 13/04/2007 7:08 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

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.


 
Posted : 13/04/2007 8:45 pm
(@carissa)
Posts: 791
Member Moderator
 

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 -->

 
Posted : 13/04/2007 9:31 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

Should my skin have a categories.php file? because it doesnt.


 
Posted : 14/04/2007 6:50 pm
(@carissa)
Posts: 791
Member Moderator
 

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.


 
Posted : 14/04/2007 7:16 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

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.


 
Posted : 15/04/2007 2:24 pm
(@carissa)
Posts: 791
Member Moderator
 

Did you make the changes in your settings like mentioned above?


 
Posted : 15/04/2007 5:43 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

Adding extra line breaks?


 
Posted : 15/04/2007 9:31 pm
(@carissa)
Posts: 791
Member Moderator
 

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?


 
Posted : 15/04/2007 9:49 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

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? "


 
Posted : 16/04/2007 5:34 pm
(@carissa)
Posts: 791
Member Moderator
 

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.


 
Posted : 16/04/2007 6:30 pm
(@lonebard)
Posts: 74
Trusted Member
Topic starter
 

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;
?>

 
Posted : 16/04/2007 11:55 pm
Page 1 / 2
Share: