 |

JonnyCav
User
Nov 20, 2008, 9:16 PM
Post #1 of 3
(314 views)
Shortcut
|
|
IF, IF, IF, IF
|
Can't Post
|
|
I'm sure that what I would like to do is entirely possible so I'm asking for a heads-up on where to start. Here's the scenario: I have main categories, 2008, 2007, etc. Each has subcats DEC, NOV, OCT, etc. What I would like to do is this... If a user is reading an article from say, 2008 OCT, I would like to also display a list of article headers from 2007 OCT on the side. I'm sure that with a heap of IF statements this can be achieved. Any thoughts / ideas? Cheers
|
|
|  |
 |

Donna
Staff
/ Moderator

Nov 24, 2008, 3:55 PM
Post #2 of 3
(273 views)
Shortcut
|
Hi Jonny! I think as long as you keep a careful naming scheme, this shouldn't be too difficult. In fact, you could even just include a specifically named file from a different year with if the current category name is the same. So, for example, if you were looking at the 2008 -> October category, you could include something like this: <!--#include virtual="/2008/$category.name$/index.shtml"--> ...assuming that the file you were trying to include was in /2008/October/index.shtml. Would something like that work for you? Donna
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

JonnyCav
User
Nov 25, 2008, 12:14 AM
Post #3 of 3
(269 views)
Shortcut
|
Gosh, Donna. That sounds so simple that I probably overlooked it! I'll give that a whirl right now and let you know the outcome. Cheers.
|
|
|  |
|