PDA

View Full Version : Browse filtered by category and date


project_FX28
01-16-2008, 08:05 AM
Can anyone help me create an addon which filters all the thumbnails in the Browse page by category and by date like in this image (for each category the pics should be ordered from the newest to the oldest)?
http://img146.imageshack.us/img146/5726/browseff8.th.jpg (http://img146.imageshack.us/my.php?image=browseff8.jpg)


Thx.

Dkozikowski
01-16-2008, 02:17 PM
Great idea.

I've got a mockup version but there will be nothing fancy at this point in time. I'm sure later on I'll add paged browsing by category or something similar but until then, what your screenshot shows is what you get.

I'll post a link once it's been uploaded to the extend section.

Dkozikowski
01-16-2008, 06:14 PM
All set, I used your photo for the screenshot, thanks.

Browse by Category (http://www.pixelpost.org/extend/addons/browse-by-category/)

shnnnhickman
05-11-2009, 09:01 PM
Hey Dkozikowski,
Fantastic Addon! It makes the browse page user friendly. I have one modification I made to it (for my on need). Because I'm using GeoS Show Category addon to limit the thumbnails on the image_template to one specific category.

I needed to add the category id into the a href tag of the thumbnails in your addon.

instead of line 130 reading:
<a href="'.$showprefix.$item['id'].'">

I changed it to:
<a href="'.$showprefix.$item['id'].'&category='.$categories['id'].'">

This way when the viewer returns to the image_template from the browse_template by clicking on a thumbnail the correct category link highlights and the thumbnails only include the images for that category. It works beautifully!

My one question is... since I have my thumbnails going from newest to oldest in the image_template, I'd like the thumbnails in the browse_template to do the same. How can I change the code to make that happen? Currently, they don't seem to be displaying in any certain order.

Cheers,
Sh

Firefly65
05-12-2009, 03:42 AM
Hi. Can anyone help me out with this? I am using the Pixelfy template and I am not sure where I am supposed to put the tags for this. I know it says:

Use the following template tag within your template file.

* Template tag:
o <CATEGORY_BROWSE heading="(h1-h5)">
* Template tag attribute:
o heading="(h1-h5) is the HTML heading value h1- h5. heading="h1" produces: <h1>(Category Name)</h1>

I just don't know what this means. Sorry to sound so pathetic, but I need to know exactly what to put where in my template files. Thanks in advance.



All set, I used your photo for the screenshot, thanks.

Browse by Category (http://www.pixelpost.org/extend/addons/browse-by-category/)