I have just released LG Better Meta 1.7.0 which includes some significant changes including:
- Added [url=http://leevigraham.com/cms-customisation/expressionengine/lg-better-meta/#setting-sitemap-meta-defaults]sitemap meta data[/url] for pages and entries
- Added sitemap generator template tag
- Replaced {exp:lg_better_meta} with [url=http://leevigraham.com/cms-customisation/expressionengine/lg-better-meta/#tag-lg-better-meta-template]{exp:lg_better_meta_pi:template}[/url]
- Added [url=http://leevigraham.com/cms-customisation/expressionengine/lg-better-meta/#tag-lg-better-meta-entries]{exp:lg_better_meta_pi:entries}[/url] to loop over existing meta entries.
- Fixed MSM compatibility for masked control panels
- Rewrote the plugin for greater speed and efficiency
Check out the screenshots an documentation on my site.
Because of these changes I thought it best to create a new support forum thread.
Fire away with any feedback or questions.
Update 1.7.1
So does this actually generate a sitemap or just meta for a pre-existing sitemap?
The extension provides a way to set default weblog sitemap meta such as change frequency and priority. You can then explictly set the meta data on a per entry basis in the publish / edit form.
Once the meta has been set the included plugin provides a template tag that outputs the data. Example:
<?xml version='1.0' encoding='UTF-8'?>
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9"
url="http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"
>
{exp:lg_better_meta:entries
weblog="blog"
disable="categories|custom_fields|category_fields|customer_fields|member_data|pagination|trackbacks"
dynamic="off"
rdf="off"
status="not closed"
}
<url>
<loc>http://test.com/blog/post/{entry_id}/{url_title}/</loc>
<lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
<changefreq>{change_frequency}</changefreq>
{priority}</priority>
</url>
{/exp:lg_better_meta:entries}
</urlset>
OK, I installed v1.7 and when I try to run this:
{exp:lg_better_meta_pi:template entry_id="{embed:entry_id}"}
I get this:
Error Number: 1054
Description: Unknown column 'exp_lg_better_meta.include_in_sitemap' in 'field list'
If I run {exp:lg_better_meta_pi:template}, I don’t get an error but obviously I don’t get my site title either!
Ah I see what could have gone wrong. Did you have a previous version of LG Better Meta installed? The install scripts checks to see if the table exists before trying to create a new one.
If you did a straight upgrade it would have added the new cols.
Before you say anything, I’m making the required changes to the docs 😉
Cheers
I just purchased LG Better and I just cannot get it to work. I downloaded it, and changed the settings and submitted it. This is what I got :
Notice: Undefined index: sitemap_defaults_ in /home/anoopbal/public_html/cos/extensions/ext.lg_better_meta.php on line 754
Warning: Invalid argument supplied for foreach() in /home/anoopbal/public_html/cos/extensions/ext.lg_better_meta.php on line 754
Notice: Undefined index: weblogs_ in /home/anoopbal/public_html/cos/extensions/ext.lg_better_meta.php on line 759
Warning: Invalid argument supplied for foreach() in /home/anoopbal/public_html/cos/extensions/ext.lg_better_meta.php on line 759
Warning: Cannot modify header information - headers already sent by (output started at /home/anoopbal/public_html/cos/extensions/ext.lg_better_meta.php:754) in /home/anoopbal/public_html/cos/core/core.functions.php on line 296
I know I am doing something fundamentaly wrong. I tried inserting the tag in the template but not sure if it’s the right one or even where the tag goes. I cannot really understand the documentaion. Thanks
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.