Improving meta-tag nodule by custom code
I want to modify the Drupal 7 module meta-tag. Now it works for any content type. The problem is that I have a complexe forum structure at my website. Thats why I would like to create also for the forums a meta-tag description fitting to forum. Now I am not able to do this with the meta-tag module as it only covers content types. So I need to modify the module so that a meta-tag description template will be shown and the names of each forum will be placed in it by code variable. How can this be done. Has anybody an idea?
The module can do that
There is no need to solve this issue extra by custom code. The module can do this. You need to add a default meta tag. There you need to select the option "Taxonomy term: Forums". There you can add the text you want to display and show the name with a token. The token name will be in this case [term:name]
Somehow I can not find it
I tried few patches but it did not work
I tried few patches I found on the internet but they all did not work. Now I used the code export function there and created a code snippet to fix this issue. You can read per PHP the URL and if word forum will be at first position then you execute your custom code. Additional to this you can read the text behind the text forum/ and use it as variable to place in the text. That's quite simple.