PDA

View Full Version : Jumping directly to an article, if the category only has a single article?


kholtman
05-21-2008, 11:08 PM
OK, I've gotten a ton of the content entered for my site.

I generally have a two (sometimes three) deep category nesting....

Main Category A
Sub Category 1
Article a
Article b
Sub Category 2
Article c
Article d
Sub Category 3
Article e

And I've got everything displaying nicely on my main page in the formatted, 2 column wide bullet list:

Main Category A
o Subcategory 1 o Subcategory 2
o Subcategory 3


Here's my wish... I don't know if there's a setting for this, or if I'd need to write a plugin to hook something (or even if a hook is possible)..... If the user clicks on Subcat 1 or Subcat 2, or Subcat 3, vbDynamics goes to a subscreen, where I can pick which of the two sub-articles to read. What I'd really like to have happen when they pick "Subcategory 3" is for the system to jump directly to Article e, without first stopping on the Subcategory 3 article listing. Since there's only one article, I'd like to go directly there.

So, is there a setting to do that?

If not, is it even possible with a plugin? Can I hook that click, do some DB interrogation, figure out there's only one child article, and redirect the link?

If not, I guess I'd have to edit the PHP code for the main page module, and change the links before they ever get displayed?

Brian
05-22-2008, 02:53 PM
Sorry, but there is not a setting for anything like that and I'm not sure how easy it would be to do with a plugin.