Sure it's possible! :)
Sure it's possible! :)
I suppose you'd like to know how...
In general terms, you could put a test in each link display code (say Privacy notice) to check for $main_page == 'privacy' or whatever, and if true, set a class="activePage" for it.
Then style .activePage {} in your stylesheet to have whatever distinction you want.
Hi gjh42,
this is my first question on this forum (I found out every other infos searching with patience...).
Could you explain me how files I have to change and send an example of php code? For CSS I have no problems.
Thanks in advance!
talos
tried to resolve myself the problem...
1) styled .active {} class in my stylesheet;
2) created php code
<?php if($main_page == 'login') print ' class="active"'; ?>
for testing and printing;
Now. I tried to put it in tpl_ezpages_bar_header.php and tpl_header.php, but happens nothig.
Someone want to help me complete the work?
talos
The ez-pages bar is going to be difficult, because it is built completely dynamically. There is no fixed code to insert an appropriate class tag into.
The file where the class would have to be added is /includes/modules/ezpages_bar_header.php. I know the information is available to that file, but it will have to be extracted from a field of an array variable (?$page_query_list_header[$rows]['altURL']?), then probably massaged and compared against the current page so the
class="active"
text can be added to $page_query_list_header[$rows]['link'].
Ok gjh42,
I was realizing the difficulty. now I try to find a solution but it will be hard, I'm afraid.
The alternative is to substitute the dynamic ez pages bar with a one static, I'd have the code ready yet. But It's more exiting integrate than substitute!
anyway, thank's a lot and sorry my bad english!
talos
You might try adding an
echo $page_query_list_header[$rows]['link'];
to see exactly what that looks like in various circumstances. Then you may be able to isolate the relevant bit of information to compare with $current_page_base.