Properties/Templates of categories with >1 categories

Creating and modifying plugins.
User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Properties/Templates of categories with >1 categories

Post by garvinhicking » Tue Apr 14, 2009 7:11 pm

Hi!

Hm, that's too strange. Just to be sure: If you deactivate the startpage category plugin, the problem goes away, right?

Because this code should really bypass any author view application...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

tpost
Regular
Posts: 77
Joined: Fri Sep 21, 2007 1:45 am

Re: Properties/Templates of categories with >1 categories

Post by tpost » Tue Apr 14, 2009 11:44 pm

Hi Garvin,

You're right; when I disable the "startcat" plugin, you can view the other author posts again.
Do I have to delete any plugin cache files, perhaps?

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Properties/Templates of categories with >1 categories

Post by garvinhicking » Wed Apr 15, 2009 10:24 am

Hi!

Okay, I've replicated this on my blog and committed version 1.8 of the plugin:

http://php-blog.cvs.sourceforge.net/vie ... ision=1.12

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

tpost
Regular
Posts: 77
Joined: Fri Sep 21, 2007 1:45 am

Re: Properties/Templates of categories with >1 categories

Post by tpost » Wed Apr 15, 2009 7:37 pm

Thanks Garvin! Works great, I can now see the author posts for secondary categories!

---

Now I'm going to need judebert's expertise for the "categorytemplates" plugin. :oops:

I can now see the author posts, but S9Y is using the "startcat" template, instead of the assigned category template.

User avatar
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Re: Properties/Templates of categories with >1 categories

Post by judebert » Thu Apr 16, 2009 6:58 pm

This is because the authors are not associated with categories anywhere. The categorytemplates plugin checks the URL. It's not a category page, so it check for a single-entry / detailed view page. It's a summary page, so the plugin gives up and uses the default template.

It could be modified to look through all the entries and see if they share a category; that'd be a bit of a performance hit, though. As long as we're modifying it, we may as well add the capability to assign templates to authors.

While I'm thinking about that, you might want to take a look at Pierre Charlebois's author page. It claims there are no entries to print! Additionally, his author name is not linked on entries in "FX Weekly Report"; this leads me to believe that the author doesn't actually exist (or you haven't re-enabled author links (but then why does Samuel Arakis have author links?)).

Just something for you to work on while I'm at it.
Judebert
---
Website | Wishlist | PayPal

tpost
Regular
Posts: 77
Joined: Fri Sep 21, 2007 1:45 am

Re: Properties/Templates of categories with >1 categories

Post by tpost » Thu Apr 16, 2009 7:51 pm

Hi judebert,

We haven't enabled the change on production yet, it works on our dev environment ;)
Samuel Araki has a link because I've enabled it in the startcat TPL template, but not in the secondary category templates.

Thanks for enhancing the plugin. Much appreciated!

Post Reply