I am trying to work out how to suppress the <base> tag.
I found the showbase parameter for the metadata tag but it does not work.
If I put in {metadata showbase=false} then the base tag shows as well as the other meta tags.
If I put in {metadata showbase=true} then the base tag disappears but so do all the other meta tags.
My other meta tags are in Core::Generic templates and so I have the {global_content} tags in the meta data field on each of the pages as well as the Global Settings meta field.
So, when I use {metadata showbase=true}, the global content tags are displayed instead.
I also tried to suppress the base tag by using the $config setting but that did not suppress the base tag even though I cleared CMSMS cache and browser cache.
Very strange indeed. Any ideas?
metadata tag showbase parameter not working
Re: metadata tag showbase parameter not working
Yeah, it seems it's implemented in a bad way.
You have to give the STRING value 'false'.
BR: http://dev.cmsmadesimple.org/bug/view/12292
You have to give the STRING value 'false'.
Code: Select all
{metadata showbase='false'}
Re: metadata tag showbase parameter not working
OK Velden. Thanks for response. But it does not solve my problem about not showing my meta tags that are stored in a generic template.
So, in my master page layout template I have put
{metadata showbase='false'}
In my content page, the page specific metadata field on Logic tab has this Core::Generic template
{global_content name='generic-meta-page'}
This contains my meta tags.
So with the showbase='false', CMSMS does not evaluate the global_content tag but just puts that tag out at top of page. But at least the base tag is not shown
I cannot really see in the metadata plugin code how it is bypassing evaluation.
So, still no further forward on this.
So, in my master page layout template I have put
{metadata showbase='false'}
In my content page, the page specific metadata field on Logic tab has this Core::Generic template
{global_content name='generic-meta-page'}
This contains my meta tags.
So with the showbase='false', CMSMS does not evaluate the global_content tag but just puts that tag out at top of page. But at least the base tag is not shown
I cannot really see in the metadata plugin code how it is bypassing evaluation.
So, still no further forward on this.