Hi,
I am very new to EE so please excuse my ignorance. I’m hoping someone can tell me where I’m going wrong.
I have been trying to get the page title to match the title of the weblog entry. So far all page titles revert to the default in the LG extension’s settings.
I embed a header template and so have added the following code to the header.
{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}” }
I have added a title to a weblog entry in the LG Better Meta tab for that entry yet this does not become the page title.
I’m sure I’m being stupid but any help as to what I am missing out would be gratefully received.
Hi liyydjwr,
To get it to work the way you want the code you have above as far as I can tell is not the correct code to be using. That code will just spit out the default LG Better Meta data. What you are looking for is :
Outputting Entry Meta Data Tag
<head>
{exp:lg_better_meta url_title="{segment_3}"}
</head>
The {segment_3} variable may differ depending on how you have your template set out but that should get you going with the module. The documentation for that part can be seen here.
There is also a thread on these forums pertaining to LG Better Meta that Leevi will definitely be subscribed to so that would be a great place to start too. Leevi is a great guy and any problems you have with it I’m sure he will be only too please to help out on with.
Ooh and don’t forget to maybe buy it if you like it!! 😉 Disclaimer : I am friends with Leevi but don’t get any kind of a cut in saying that 😊
Hope that helps though.
Best wishes,
Mark
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.