I have two problems I ran into with LG Better Meta. Anyone have any ideas?
1)
I found a very strange bug with Better Meta, so I am glad you stepped in.
When you access a weblog entry from the PAGES tab (if you add that to your main tabs) and click on the Better Meta tab inside the entry, the tabs disappear and the better meta content does not show up. If you click on EDIT and find the page you want to edit, it works fine.
If this isn’t clear, let me know.
2)
I’m also not having much luck overriding the defaults. I have the following block but it always displays the defaults from the extension settings, I even just tried the tag without parameters.
{exp:lg_better_meta
entry_id="{embed:entry_id}"
weblog_id="{embed:weblog_id}"
url_title="{embed:url_title}"
title="{embed:title}"
description="{embed:description}"
keywords="{embed:keywords}"
author="{embed:author}"
publisher="{embed:publisher}"
rights="{embed:rights}"
date_created="{embed:date_created}"
date_modified="{embed:date_modified}"
date_valid="{embed:date_valid}"
identifier="{embed:identifier}"
robots_index="{embed:robots_index}"
robots_follow="{embed:robots_follow}"
robots_archive="{embed:robots_archive}"
}
For the #2, remove the weblog_id=”{embed:weblog_id}”, see if that helps. I have found a bug and reported it and it has been fixed. The next version of Better Meta (very soon to be released) will have that bug fixed.
I removed the weblog_id line and I still get the defaults. Why is doing unique meta for each page so difficult.
Are you sure you are passing the correct values? Example:It has worked on 12 different sites i operate, kinda weird that it is not working for you. May i see your entire template? (also the parent one){embed="group/template" url_title="{segment_3}"}
.head template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
{exp:lg_better_meta
entry_id="{embed:entry_id}"
url_title="{embed:url_title}"
title="{embed:title}"
description="{embed:description}"
keywords="{embed:keywords}"
author="{embed:author}"
publisher="{embed:publisher}"
rights="{embed:rights}"
date_created="{embed:date_created}"
date_modified="{embed:date_modified}"
date_valid="{embed:date_valid}"
identifier="{embed:identifier}"
robots_index="{embed:robots_index}"
robots_follow="{embed:robots_follow}"
robots_archive="{embed:robots_archive}"
}
<link href="{stylesheet=stylesheets/mainmenu.css}" rel="stylesheet" type='text/css' />
<link href="{stylesheet=stylesheets/global.css}" rel="stylesheet" type="text/css" />
{if embed:homepage=="YES"}
<link href="{stylesheet=stylesheets/home.css}" rel="stylesheet" type='text/css' />
<link href="{stylesheet=stylesheets/ui.tabs.css}" rel="stylesheet" type="text/css" />
{/if}
<!--[if IE]><link href="{stylesheet=stylesheets/ie7.css}" rel="stylesheet" type="text/css" /><![endif]-->
<!--[if IE 6]><link href="{stylesheet=stylesheets/ie6.css}" rel="stylesheet" type="text/css" /><![endif]-->
$(function() {
$('#tab-cntr').tabs({ fxFade: true, fxSpeed: 'fast' });
});
</head>
subpage template using pages module:
{embed=embeds/.head}
subpage template using pages module:Seems like that is your problem :D, you are not passing anything to the .head template. Do this:{embed=embeds/.head}
Make sure the {exp:weblog:entries} is above this. If it’s not then the embed tag will not know which entry_id it is (thus better meta will not know which entry either).{embed="embeds/.head" entry_id="{entry_id}"}
Is there a way to populate it without having to open a weblog:entries when using PAGES module?
subpage template using pages module:Seems like that is your problem :D, you are not passing anything to the .head template. Do this:{embed=embeds/.head}
Make sure the {exp:weblog:entries} is above this. If it’s not then the embed tag will not know which entry_id it is (thus better meta will not know which entry either).{embed="embeds/.head" entry_id="{entry_id}"}
I changed my code to wrap it with a weblog:entries, and I still see the default options.
{exp:weblog:entries weblog="services" limit="1" sort="asc" disable="custom_fields|category_fields|categories|member_data|trackbacks|pagination"}
{embed="embeds/.head" entry_id="{entry_id}"}
{/exp:weblog:entries}
There is a new release that fixes your first issue and addresses the weblog id bug.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.