PDA

View Full Version : Category Description


davide.dege
11-18-2005, 09:20 AM
how i can put the description in each category? Please help me because i saw a solution but i did not understand. thanks
dege

polpetta.org (http://www.polpetta.org)

Connie
11-18-2005, 10:08 AM
which description?
at which page you want to integrate it?
where did you see a solution?

you must be a little more exact, sorry, we have no christal balls...

davide.dege
11-18-2005, 08:27 PM
i would like to post a description on each category i create. So when i browse the category of my blog i can see in each category a small description. thanks!

raminia
11-18-2005, 08:42 PM
yeah... you need an addisional DB field inside the categories table of pp that saves the description of the categories too. seemingly hardcore hack hack if you are not familiar with PP or PHP

tinyblob
11-18-2005, 08:53 PM
following a couple of other peoples requests, i've decided to start work on a categories addon, to make better use of what's currently just a sorting tool.
i could do what you ask by adding another table to the database, which isn't exactly good for optimisation, but will keep the "real" database structure as released.
check of my recent posts for the threads in question, i need someone to put all these category ideas into one "request" thread so i can get started.

raminia
11-18-2005, 09:24 PM
why another table? no enough reasons

tinyblob
11-18-2005, 11:11 PM
like i said. to keep the database structure as released.
deleting an entire table through some hosting control panels is far easier than removing a single field.
plenty reasons to keep things modular, especially in a system like this.

derevaun
11-21-2005, 06:09 AM
I did something like that, without an extra table in the database. Instead, I have it read in a snippet of html that contains the description. I saved each description as n.html where n is the category number that appears in the address. The addon just retrieves the category number using $_GET['category'], tacks that onto a path, and uses file_get_contents() to insert the snippet at a custom tag.

It's probably not as elegant as a new table solution, and it requires arranging the snippets just right. I'd be happy to talk anyone through what I did, but an addon by someone who knows what they're doing might be a better choice :)

It's in use on my blog, below:

tinyblob
11-21-2005, 08:15 AM
i'll be implementing this in my upcoming categories "mod". but i won't release this till after Pixelpost v1.5 is released, hopefully in the next few weeks.

if you want a hand implementing on your own install before then, PM me.