have you tried taxonomy menu module?<br><br><div class="gmail_quote">On Wed, Sep 9, 2009 at 3:13 PM, Olivier Jacquet <span dir="ltr"><<a href="mailto:ojacquet@jax.be">ojacquet@jax.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
<br>
When themename_preprocess_block() is called the content of the block is already rendered. I am looking for a way to modify the environment before the block is rendered and a way to restore the environment afterwards.<br>
<br>
The specific use case is that I have two blocks, generated by views, one showing the terms from one taxonomy and the other the titles of the nodes belonging to that taxonomy.<br>
<br>
When one navigates to a node the link to that node is active but I would like the link to the taxonomy to be active as well. An easy way to accomplish this would be to do a menu_set_active_item('taxonomy/term/tid') before the taxonomy block is rendered and reset it afterwards. Unfortunately this doesn't seem to be possible.<br>
<br>
The only other way I can think of is to modify the block content via regular expressions in themename_preprocess_block().<br>
<br>
<br>
Thank you for your time,<br><font color="#888888">
Olivier<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Daniel Honrade, Jr.<br><br>mobile: +63 915 903 3561<br>alternate email: <a href="mailto:danielhonrade@gmail.com">danielhonrade@gmail.com</a><br>websites: <a href="http://danielhonrade.com">http://danielhonrade.com</a><br>
<a href="http://webtheming.com">http://webtheming.com</a><br><br><br>When you signup for PayPal, you can start accepting credit card payments instantly. As the world's number one online payment service, PayPal is the fastest way to open your doors to over 150 million member accounts worldwide. Best of all, it's completely free to sign up! To sign up or learn more, click here: <a href="https://www.paypal.com/ph/mrb/pal=GE47NYP4D94XA">https://www.paypal.com/ph/mrb/pal=GE47NYP4D94XA</a><br>