Leevi,
That worked in that it pulled the correct meta information from the publish tabs “About” entry. And, I temporary replaced the one I had in the original head template and that also worked (using an I.D. of “2” for the “About” entry.) But, I tried to replace the “2” with {segment_1} and it didn’t work. Am I missing something in how to implement the code?
Also, in the first example, while it pulled the correct entry specific meta information, it also rendered empty meta information from Geo, etc. that I specified not to include in the default set-up. That may be normal but I wanted to mention it just in case.
I really appreciate your help. I’m sure that a lot of this is due to my inexperience.
Jerry
For some people who may be seeing an error similar to this…
Fatal error: Call to undefined method stdClass::parse_weblog_entries() in /home/sitename/public_html/cms/plugins/pi.lg_better_meta_pl.php on line 410
in their sitemap.xml template I have found a fix for my specific case (sort of).
If you try and reference a weblog which has no entries you get this error. It is only realistic that you would have no entries on a brand new install so I put a test entry in each until the client is ready to add their content.
I did try to exclude the entry using {if no_results} but that still resulted in the same error.
Here is an example of the code i was trying.
{if "{section_3}" != ''}
{exp:lg_better_meta_pl:entries
weblog="{section_3}"
disable="categories|custom_fields|category_fields|customer_fields|member_data|pagination|trackbacks"
dynamic="off"
rdf="off"
status="Top-Level"
}
<url>
<loc>{site_url}{section_3}/</loc>
<lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
<changefreq>{change_frequency}</changefreq>
{priority}</priority>
</url>
{/exp:lg_better_meta_pl:entries}
{exp:lg_better_meta_pl:entries
weblog="{section_3}"
disable="categories|custom_fields|category_fields|customer_fields|member_data|pagination|trackbacks"
dynamic="off"
rdf="off"
status="not closed|Top-Level"
}
{if no_results}
{if:else}
<url>
<loc>{site_url}{section_3}/{url_title}</loc>
<lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
<changefreq>{change_frequency}</changefreq>
{priority}</priority>
</url>
{/if}
{/exp:lg_better_meta_pl:entries}
{/if}
The fix was to make sure each weblog had 1 top-level status entry and one regular open entry
Hope that helps some people from scratching their heads as long as i did.
I am using EE 1.6.8 and LG Better Meta 1.8.0
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.