Hi, I'm Dan.
Thank you for such an awesome product. I installed and uninstalled a handful of blog platforms before coming across LifeType, and there's no way I'm looking back.
OK, so here's what I'm working on:
I've customized my design pretty heavily. I've got a nav menu for my whole site on the left side. On static pages, I have the current page's menu item highlighted (so if I'm at the home page, the "Home" link is highlighted).
I'm trying to get the dynamic pages to do the same. I used what I read from other posts to get the blog ID of the blog or article I'm looking at:
- Code: Select all
$blog = $this->_tpl_vars["blog"];
$bid = $blog->getId();
So then I just put an {if} in each link, changing the color if the blog id corresponds with that blog. It works wonderfully.
One of the blogs, however, is basically just a set of other blogs, so I have a sub-menu show up when that blog is selected. Each of the "sub-blogs" is a category in the parent blog. So, when said blog is selected, the menu looks like this:
-blog
-blog
-blog
---category
---category
---category
If you haven't guessed already, I want to do the same thing for the categories as the blogs. I print_r'd _tpl_vars, and I can see the correct category there, I just don't know how to extract it from the array. It comes right after the "text" part, and looks like this:
- Code: Select all
[_categoryIds] => Array ( [0] => 7 )
If you can tell me how to use that value, you will alleviate the two-day headache I've had from trying to figure this out.
Thanks again,
Dan
