We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

LG Better Meta 1.7.x - Now with sitemap meta and generator! - Official Support Thread

Development and Programming

anoopbal's avatar
anoopbal
147 posts
16 years ago
anoopbal's avatar anoopbal

Cool. Got it to work.

Hi Leevi

1)You need to remove that underscores from the php file. 2)In your documentataion, you have the same code for url_title & entry_id. I have it in 2 colors below.

From your page:

“If you page is using the entry_id to determine the entry use the entry_id parameter.

Example page url: http://leevigraham.com/blog/post/3

<head> {exp:lg_better_meta_pi:template entry_id="{segment_3}”} </head>The above example will create a page title similar to: Entry Title | Site Title

Example 2: A url_title in an entry url. If you page is using the url_title of an entry to determine the entry use the url_title parameter.

Example page url: http://leevigraham.com/blog/post/foo-bar

<head> {exp:lg_better_meta_pi:template entry_id="{segment_3}”} </head>”

I bought thinking I din’t have to go through all this coding and reading. You owe me a discount (:-

I will have more questions.Looks like great product.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
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

Completely my fault. I made the change a couple of days ago and uploaded the new version. However there was a filename issue that caused some problems. The current .zip has the required fixes.

Sorry for any inconvenience.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
I figured it out. I removed the “hyphens” and it submitted. Now how do I get the article title to show up? I copy pasted the tag {exp:lg_better_meta_pi:template entry_id="{segment_3}”} on the template where my blog articles are stored. But it doesnt change anything.

Example 2 should actually read:

{exp:lg_better_meta_pi:template url_title="{segment_3}"}

I have updated the docs. It should make more sense now.

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
I bought thinking I din’t have to go through all this coding and reading. You owe me a discount (:- I will have more questions.Looks like great product.

The documentation is one of the things that set my ExpressionEngine addons apart. Obviously a lot of work goes into them but I do occasionally overlook something.

Thanks for finding the issues so far. They have been corrected. As far as a discount goes, I can offer you a free version of LG TinyMCE if your interested 😛

Thanks again for your support and bug reports. They are appreciated!

Cheers Leevi

       
Todd Moffett's avatar
Todd Moffett
57 posts
16 years ago
Todd Moffett's avatar Todd Moffett

Currently, I have a header template that I embed into all my templates. That template has the {exp:lg_better_meta_pi:template} tag. All the meta data I’ve entered in the extension manager shows fine. When I create or edit an existing entry and change any of the default parameters they do not show on the rendered page. Only the default.

Also in the modified date parameter its showing a year of 1969. What am I doing wrong?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
Currently, I have a header template that I embed into all my templates. That template has the {exp:lg_better_meta_pi:template} tag. All the meta data I’ve entered in the extension manager shows fine. When I create or edit an existing entry and change any of the default parameters they do not show on the rendered page. Only the default. Also in the modified date parameter its showing a year of 1969. What am I doing wrong?

Hey Todd,

Have you read the documentation on embedding the lg_better_meta_pi:template tag inside templates?

It gives pretty clear instructions on how this can and should be achieved.

Cheers Leevi

       
Todd Moffett's avatar
Todd Moffett
57 posts
16 years ago
Todd Moffett's avatar Todd Moffett

Yeah I’ve read it. I noticed one thing tonight. The plugin does not seem to be loaded correctly. When I select it from the Plugin Manager i get this error “Unable to load the following plugin: lg_better_meta_php.php” I’m thinking this might have something to do with the parameters not being passed from the entry.

Any thoughts on this?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

“lg_better_meta_php.php” should be lg_better_meta_pi.php.

Can you paste in some of your template code and I’ll take a look?

       
Todd Moffett's avatar
Todd Moffett
57 posts
16 years ago
Todd Moffett's avatar Todd Moffett

I think I may have it working now. I had another title parameter that I think was causing a conflict. However, the issue with the plugin is still alive. The link from the Plugin Manager is wrong. It’s actually calling for “lg_better_meta_php” but when manually entering “lg_better_meta_pi” it works. Might want to look into that for future concerns.

I do have another issue that I may have overlooked considering the lack of sleep. How can I change the order of the title output to be “Site Name | Entry Title” instead of “Entry Title | Site Name”?

Thanks again!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham
I think I may have it working now. I had another title parameter that I think was causing a conflict. However, the issue with the plugin is still alive. The link from the Plugin Manager is wrong. It’s actually calling for “lg_better_meta_php” but when manually entering “lg_better_meta_pi” it works. Might want to look into that for future concerns.

Ah I see what your talking about… that’s a weird one! I’ll try and figure out the cause and add the fix to the next release.

I do have another issue that I may have overlooked considering the lack of sleep. How can I change the order of the title output to be “Site Name | Entry Title” instead of “Entry Title | Site Name”?

You can’t change the order with any extension settings in the CP. You could however try:

{exp:lg_better_meta_pi:template hide_site_name="yes" title_prefix="Your site title"}

That should do the trick.

       
pcmeissner's avatar
pcmeissner
48 posts
16 years ago
pcmeissner's avatar pcmeissner

I haven’t been successful in generating a sitemap yet. When I use:

<?xml version="1.0" encoding="UTF-8"?>
<urlset >
    {exp:weblog:entries
        weblog="mg_blog"
        disable="categories|custom_fields|category_fields|customer_fields|member_data|pagination|trackbacks"
        dynamic="off"
        rdf="off"
        status="not closed"
    }
    <url>
        <loc>http://newmediciglobal.com/index.php/blog/{url_title}/</loc>
        <lastmod>{edit_date format="%Y-%m-%d"}</lastmod>
        <changefreq>{change_frequency}</changefreq>
        {priority}</priority>
    </url>
    {/exp:weblog:entries}
</urlset>

it works; however, when I use

{exp:lg_better_meta:entries}

i get

Error
The following tag has a syntax error:
{exp:lg_better_meta:entries}
Please correct the syntax in your template.

The only difference is the “entries” expression. What am I doing wrong?

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

The actual tag is:

{exp:lg_better_meta_pi:entries}
       
Ryan Blaind's avatar
Ryan Blaind
168 posts
16 years ago
Ryan Blaind's avatar Ryan Blaind
The actual tag is:
{exp:lg_better_meta_pi:entries}

Hey Leevi, great extension! I am using it now. FYI You might want to change that mistake on your docs for the extension as the example tag reads as so:

<?xml version="1.0" encoding="UTF-8"?>
<urlset >
    {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>

the tag is incorrect, should be {exp:lg_better_meta_pi:entries}

cheers!

       
Leevi Graham's avatar
Leevi Graham
1,143 posts
16 years ago
Leevi Graham's avatar Leevi Graham

Oh… my bad… updating the docs now!

       
Andy Harris's avatar
Andy Harris
958 posts
16 years ago
Andy Harris's avatar Andy Harris

Hi Leevi,

Playing around with this on my local test site, I’ve discovered that if you go to settings > submit without assigning a weblog it throws a wobbly:

Notice: Undefined index: weblogs in /Users/andyharris/Sites/ee/_system/extensions/ext.lg_better_meta.php on line 759

Warning: Invalid argument supplied for foreach() in /Users/andyharris/Sites/ee/_system/extensions/ext.lg_better_meta.php on line 759

Warning: Cannot modify header information - headers already sent by (output started at /Users/andyharris/Sites/ee/_system/extensions/ext.lg_better_meta.php:759) in /Users/andyharris/Sites/ee/_system/core/core.functions.php on line 296

At least I assume that’s why it’s doing it - once I assign it, it works OK.

       
1 2 3 4 Last

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.