On my Drupal site I have a block which I've set up with a couple of links at the top.

I want to change the content of the block depending on which link is clicked.

I'm pretty sure you can do this as I've seen sites with this functionality, but I'm not sure how to accomplish it.

The problem, as I see it, is that the PHP code which controls that block content is server side and the clicking of the links is browser side.

Recommended Answers

All 3 Replies

You need module for do this :)
That supported by JQuery.

Good luck

Good luck

Indeed.

I have started 25 threads on the Drupal help forum and have received helpful answers on on 2 out of those 25 threads.

I've change tack slightly because I think I might be able to achieve what I'm seeking to do through views.

You can do that with views but you need javascript to control that. It will displayed as tabs in your page.

God Bless You

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.