Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
How to add meta tags to Liferay web page
For a Facebook share button, I need to add some meta tags to a web page in Liferay. The result of the HTML code should look like the following example:
How can I do that in Liferay WITHOUT coding and WITHOUT installing additional plugins but just by configuration (e.g. in the admin control area)?
Note: For www.mydomain.com/en the content of the meta tag should be in English. For www.mydomain.com/de it should be in German. If this is not possible by configuration easily, it can be all in one single language.
<meta property="og:title" content="My website title">
<meta property="fb:app_id" content="4711">
...
How can I do that in Liferay WITHOUT coding and WITHOUT installing additional plugins but just by configuration (e.g. in the admin control area)?
Note: For www.mydomain.com/en the content of the meta tag should be in English. For www.mydomain.com/de it should be in German. If this is not possible by configuration easily, it can be all in one single language.
There are so many social meta tags these days... When I do this I put such in theme where I also can do if/else based on language. But given your WITHOUT CODING requirement, perhaps what I write is not useful for you.
Hi Thorsten,
you either need to code or install some plugin ;)
You probably have a theme for your site. You can easily add those tags to your theme template. You can easily add those to a hook too.
There are some apps in the marketplace that allow you to add some tags to every page too.
you either need to code or install some plugin ;)
You probably have a theme for your site. You can easily add those tags to your theme template. You can easily add those to a hook too.
There are some apps in the marketplace that allow you to add some tags to every page too.
Hi Jack, hi Julio,
thanks a lot for your answers!
I added the meta tags to portal_normal.vm.
Is this what you meant by "adding them to the theme template"?
The problem then is, that the meta tags are the same for all web pages which makes the situation worse.
So I removed them again.
Some little coding would be OK, i.e. adapting some configuration files like portal_normal.vm, but I want to avoid huge code changes or deployment changes which might cause other side effects.
Which plugins or other approaches can you recommend to solve the problem?
The final solution should also support multiple languages.
Thanks for your support!
Thorsten
thanks a lot for your answers!
I added the meta tags to portal_normal.vm.
Is this what you meant by "adding them to the theme template"?
The problem then is, that the meta tags are the same for all web pages which makes the situation worse.
So I removed them again.
Some little coding would be OK, i.e. adapting some configuration files like portal_normal.vm, but I want to avoid huge code changes or deployment changes which might cause other side effects.
Which plugins or other approaches can you recommend to solve the problem?
The final solution should also support multiple languages.
Thanks for your support!
Thorsten