I have a custom content type that contains a Link field. I want to add a Meta refresh to every page of that content type that will redirect to the contents of the link field after a fixed number of seconds. (I also have a link/button that will open the target of the link, but I want to redirect automatically after a few seconds as well.) I am a bit confused about the number of meta modules available - which module or combination of modules can be used to achieve this, preferably without hacking any of the core or additional modules?

  • which of the existing many modules have you tried on your website? – tenken Oct 9 '14 at 19:43
  • you could easily do it in a preprocess hook for the content type, checking the link value then using the drupal_add_html_head function to add the redirect meta tag. – 2pha Oct 10 '14 at 3:31

Your Answer

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

Browse other questions tagged or ask your own question.