Topic: bug: theme menu class not updated

the .isactive class isn't being updated on the simple_tabular menu.

It is always "Home" that is active:

<ul class="menublock">
<li>
</li>
<li class="isactive">

click on "Submit link" and the "home" menu is still active.

Last edited by chovy (2009-12-25 08:52:42)

http://www.optimseo.com - Directory Owners Forum

Re: bug: theme menu class not updated

It's probably because isactive is empty in the stylesheet.

Re: bug: theme menu class not updated

Actually everything is empty. Simple tabular will be developed and will become the default theme in v1.3. At least the directory section.

Re: bug: theme menu class not updated

no, the '.isactive' class always gets assigned to the first menu item...in other words, it never changes to the active page.

http://www.optimseo.com - Directory Owners Forum

Re: bug: theme menu class not updated

Yes, that's correct. I thought you meant that one in the admin section.

Re: bug: theme menu class not updated

how do i test for the active page?
I will add the conditionals to set my theme to properly update "li.isactive"

http://www.optimseo.com - Directory Owners Forum

Re: bug: theme menu class not updated

*bump* is there a variable like "$current_page" I can test for?

http://www.optimseo.com - Directory Owners Forum

Re: bug: theme menu class not updated

To get the page url or page name of the current php-page?

Re: bug: theme menu class not updated

Well

If you want to test this theme, just copy the theme folder and edit the theme.xml file correctly then change files you want to test, upload it and switch theme preference.

Re: bug: theme menu class not updated

anders wrote:

To get the page url or page name of the current php-page?

Yes.
The theme doesn't set active class on any page but "home".

http://www.optimseo.com - Directory Owners Forum

Re: bug: theme menu class not updated

well I simply removed the isactive reference.

Re: bug: theme menu class not updated

hmm....what i really need is for the "isactive" reference to be correct (instead of only the home page, or not at all).

it needs condition like this for every link:

if page == submit
  <li class="isactive">Submit</li>
else
  <li>Submit</li>
end
http://www.optimseo.com - Directory Owners Forum