Page 4 of 4

Re: Properties/Templates of categories with >1 categories

Posted: Tue Apr 14, 2009 7:11 pm
by garvinhicking
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

Re: Properties/Templates of categories with >1 categories

Posted: Tue Apr 14, 2009 11:44 pm
by tpost
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?

Re: Properties/Templates of categories with >1 categories

Posted: Wed Apr 15, 2009 10:24 am
by garvinhicking
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

Re: Properties/Templates of categories with >1 categories

Posted: Wed Apr 15, 2009 7:37 pm
by tpost
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.

Re: Properties/Templates of categories with >1 categories

Posted: Thu Apr 16, 2009 6:58 pm
by judebert
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.

Re: Properties/Templates of categories with >1 categories

Posted: Thu Apr 16, 2009 7:51 pm
by tpost
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!