Hello,
I've got the silliest problem that I can't manage to get over. I'm working in a Category Archive page and I'm trying to determine the second parent category of category in question. For example, if the category structure was as follows:
- Category 1
- Category 2
- Category 3
- Category 4
Now using the MT CategoryLabel tag, I get the value of Category 4, as I'm in a Category Archive page. Using the MT TopLevelParent tag, I get the value of Category 1, as it's the top level parent category. However, what I'm trying to get stored in a variable is the value of Category 2, the second parent category as opposed to the top parent or bottom child. I've gone round and round with this and I know there has got to be an easy way to pull that value out and store it, I just can't figure out how. Can anyone please lend a hand with this? Thanks!
Reported on Movable Type 4.2
The category structure above, should have looked more like this:
- Category 1 - Category 2 - Category 3 - Category 4Hopefully that makes a little more sense now.