3

I need to change the content of a block on the landing page based on user input.
Basically, I have a few links and a search form; if the user clicks on a link, I want the block to display some text, based on which link was clicked, and if the user uses the search form then to display information from an external database.

Edit I left this site for a while & now am coming back to it. I thought about it and if it's too hard to do in a module, then I could just make different pages for the texts & link them. And displaying data from the database is trivial.

  • How is your block created? Is it through code/views/standard etc? – Chapabu Nov 8 '11 at 23:30
  • can you code PHP? – Mawg Dec 19 '11 at 5:29
  • @Chapabu - standard. – elssar Dec 19 '11 at 10:58
  • @Mawg a little, though I won't have a problem learning as I already know a couple of languages. – elssar Dec 19 '11 at 10:59
1

You should try the Context module.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.