** UPDATE: I have released V1 of this extension. Refer to this thread **
Hi Guys, Im working on a new meta plugin that adds an extra tab to the publish page and allows you to customise the title and meta tags in the head of your page. Anyone keen to help me test it?
Hi Leevi,
Would also like to get in on testing this out for you too. I love to see all the new plugins, extensions and modules and I think it is great when people share what they have created as it allows others to learn (hopefully if my brain can take in all the code!! 😊 ) from the said plugin etc..
Best wishes,
Mark
Ok guys,
Here is the first beta. Ill leave it up for a couple of days an then pull it again for more testing.
You can grab it from the link at the top of the thread.
There is a readme.txt included on usage and installation. I can only confirm that the plugin works with EE1.6 - Build: 20070708
Enjoy
There is a readme.txt included on usage and installation.
@Victor: see above @Everyone: I found the first bug! Its only a one liner at this point. Please change line 45 of the plugin file from:
// if there is an entry id
if($TMPL->fetch_param('entry_id')){
to
// if there is an entry id
if($TMPL->fetch_param('entry_id') && ctype_digit($TMPL->fetch_param('entry_id'))){
this fix checks if you passed a number as the entry_id.
ok i think this is how it suppose to work?That gives me a php error if not please show me some example code ? Another question: lets say i want to do this<HTML> <HEAD> {exp:weblog:entries weblog="weblog1"} <TITLE>{title}</TITLE> {exp:lg_better_meta entry_id="{entry_id}"} {meta_description} {meta_keywords} {/exp:lg_better_meta} {/exp:weblog:entries}
{if meta_description != ""} {meta_description} {else} {default_meta_in_extension_settings} {/if}
Hey victor:
The readme says: LG Better Meta only has one tag {exp:lg_better_meta}.. Looking back I need to make this a little clearer.
LG Better Meta only has one single tag which outputs the template in the extension settings.
So here is an exaple:
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
{exp:lg_better_meta entry_id="2"}
</head>
I have found there is still some bugs if you are trying to embed you header and pass through the entry_id as an embeded variable. Im tryig to figure out a solution in the next couple of days.
Also if you are using any other plugins that add tabs to the publish page this plugin will overide them at the moment. A fix is included in the upcoming release.
OK i just tested it on another installation and i am getting this error when i enable the extension:and it does enable the extension when you hit the back button.Notice: Undefined property: Preferences::$core_inin in /home/raine/public_html/removed/system/extensions/ext.lg_better_meta.php on line 98 Warning: Cannot modify header information - headers already sent by (output started at /home/raine/public_html/REMOVED/system/extensions/ext.lg_better_meta.php:98) in /home/raine/public_html/removed/system/core/core.functions.php on line 296
There was a typo on line 98:
'lg_better_meta_author' => $PREFS->core_inin['webmaster_name']));
Should be:
'lg_better_meta_author' => $PREFS->core_ini['webmaster_name']));
After that it seems like its working. It’s a pretty useful plugin. I really hate recreating commonly use fields for each of my blogs. I haven’t really tested it much yet until my next project.
Any reviews so far?
I don’t know if this is a good idea of not but would you think it would be a good idea of you added url_title as a parameter so that we can use something like this instead of querying an entry id before hand?
I mainly use it for my templates like this:
corporate template
{if segment_3}
{embed="site/embed_header" data_url_title="{segment_3}"}
{embed="site/embed_content_inner" data_section="corporate" data_url_title="{segment_3}"}
{if:else}
{embed="site/embed_header" data_url_title="management_board_of_directors"}
{embed="site/embed_content_inner" data_section="corporate" data_url_title="management_board_of_directors"}
{/if}
{embed="site/embed_footer"}
embed_header 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 url_title="{embed:data_url_title}"}
<link href="/jquery/thickbox.css" rel="stylesheet" type="text/css" />
<link href="/tpl_inner/style.css" rel="stylesheet" type="text/css" />
</head>
I don’t know if this is a good idea of not but would you think it would be a good idea of you added url_title as a parameter so that we can use something like this instead of querying an entry id before hand? I mainly use it for my templates like this: corporate templateembed_header template{if segment_3} {embed="site/embed_header" data_url_title="{segment_3}"} {embed="site/embed_content_inner" data_section="corporate" data_url_title="{segment_3}"} {if:else} {embed="site/embed_header" data_url_title="management_board_of_directors"} {embed="site/embed_content_inner" data_section="corporate" data_url_title="management_board_of_directors"} {/if} {embed="site/embed_footer"}
<!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 url_title="{embed:data_url_title}"} <link href="/jquery/thickbox.css" rel="stylesheet" type="text/css" /> <link href="/tpl_inner/style.css" rel="stylesheet" type="text/css" /> </head>
Yep cool idea…. I haven’t needed this yet but I can see how it would help.
Ill add it to the next release… sometime soon?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.