
davidcmsb
User
Jan 9, 2012, 12:36 PM
Post #5 of 6
(1509 views)
Shortcut
|
|
Re: [Jason] Selected item in nav using _isSelectedBranch
[In reply to]
|
Can't Post
|
|
Hi Jason, I have a question about what you wrote --
Hi Jan, _isSelectedBranch will only ever be set if $selectedCategory has a value. This will either be set if there is a record number at the end of the URL or if you set 'selectedCategoryNum' in your getCategories. Hope this helps Does _isSelectedBranch work if you use 'selectedCategoryNum' => @$_REQUEST['category'], instead of the default behavior of looking at the number at the end of the URL or setting a static 'selectedCategoryNum' ? What you wrote seems to say that _isSelectedBranch will only ever be set if $selectedCategory has a value, and the $selectedCategory has a value ONLY if (a) there is a record number at the end of the URL or (b) if you set 'selectedCategoryNum' in your getCategories. But what about using instead of these two ways, using 'selectedCategoryNum' => @$_REQUEST['category'], ?
(This post was edited by davidcmsb on Jan 9, 2012, 9:04 PM)
|