Subject: Adding dynamic meta data to stories

Posted on: 04/11/05 10:37pm
By: ByteEnable

Insert two rows into your gl_stories table of your geeklog database:
"meta_description" with a type of text, NULL
"meta_keywords" with a type of text, NULL

config.php, add:
$_CONF['meta_description'] = "The coolest website ever!";
$_CONF['meta_keywords'] = "my,keywords,rank,high,in,google";



header.thtml, add the following somewhere in the "head":
<META NAME="description" CONTENT="{meta_description}">
<META NAME="keywords" CONTENT="{meta_keywords}">


storyeditor.thtml, add the following above intro_text:
<tr>
  <td valign="top" align="right">Meta Desc:</td>
  <td><textarea name="meta_description" cols="60" rows="2">{story_meta_description}</textarea></td>
</tr>
<tr>
  <td valign="top" align="right">Meta Keywords:</td>
  <td><textarea name="meta_keywords" cols="60" rows="2">{story_meta_keywords}</textarea></td>
</tr>



article.php, modify the COM_siteHeader (around line 150) function call:
$display .= COM_siteHeader ('menu', $pagetitle, $rdf,$A['meta_description'],$A['meta_keywords']);



lib-common.php, modify the COM_siteHeader function:
function COM_siteHeader( $what = 'menu', $pagetitle = '', $headercode = '',$meta_desc='',$meta_key='')

around line 579 or so add:

if ( !empty($meta_desc))
  $_CONF['meta_description'] = $meta_desc;
if ( !empty($meta_key))
  $_CONF['meta_keywords'] = $meta_key;
$header->set_var(meta_description,$_CONF['meta_description']);
$header->set_var(meta_keywords,$_CONF['meta_keywords']);



story.php, add the following around 579:
$story_templates->set_var('story_meta_description',$A['meta_description']);
$story_templates->set_var('story_meta_keywords',$A['meta_keywords']);

modify the submitstory function with meta data:

function submitstory($type='',$sid,$uid,$tid,$title,$introtext,$bodytext,$hits,$unixdate,$expiredate,$comments,$featured,$commentcode,$trackbackcode,$statuscode,$postmode,$frontpage,$draft_flag,$numemails,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$delete,$show_topic_icon,$meta_description,$meta_keywords,$old_sid)

just before the DB_save call in function submitstory add:
$meta_description = addslashes($meta_description);

Modify the DB_save with the meta data:
DB_save ($_TABLES['stories'],'sid,uid,tid,title,introtext,bodytext,hits,date,comments,related,featured,commentcode,
trackbackcode,statuscode,expire,postmode,frontpage,draft_flag,numemails,owner_id,group_id,perm_owner,
perm_group,perm_members,perm_anon,show_topic_icon,in_transit,meta_description,meta_keywords', "'$sid',$uid,'$tid','$title','$introtext','$bodytext',$hits,FROM_UNIXTIME($unixdate),'$comments','$related',$featured,'$commentcode','$trackbackcode','$statuscode',FROM_UNIXTIME($expiredate),'$postmode','$frontpage',$draft_flag,$numemails,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$show_topic_icon,1,'$meta_description','$meta_keywords'");

around line 1100 or so add the meta data:
COM_applyFilter ($_POST['show_topic_icon']), <- dont add this

COM_stripslashes ($_POST['meta_description']),
COM_stripslashes ($_POST['meta_keywords']),

COM_applyFilter ($_POST['old_sid'])); <- dont add this



Adding dynamic meta data to stories

Posted on: 07/11/05 09:38am
By: Anonymous

Great hack! I am looking for this.

----------
Solidot.org - China Slashdot Site Powered by Geeklog

Adding dynamic meta data to stories

Posted on: 07/11/05 12:02pm
By: joshtravis

I think this should be default behavior for new releases of Geeklog.

Adding dynamic meta data to stories

Posted on: 15/12/05 05:26pm
By: beewee

[QUOTE BY= joshtravis] I think this should be default behavior for new releases of Geeklog.[/QUOTE]

Yep, but also in another way: display the keywords as 'tags'. An alternative for posting to multiple topics I guess. How can I display the keywords the way Technorati etc like it in my story? See this:

<a href="http://technorati.com/tag/[tagname]" rel="tag">[tagname]</a>

Adding dynamic meta data to stories

Posted on: 15/12/05 05:44pm
By: bjudson

Adding the dynamic tags like sotry keywords and such make sense to do with code;
but a field should exist either in the config file, or in the database to add SOMETHING to all templates area.

An example that I always use is GeoURL:
<meta name="ICBM" content="49.13481, -102.99079" />
<meta name="DC.title" content="Ben And Amys Place" />
<meta anything .... />
<meta more .... />
<script type=anything>

Even with one "HEAD" field to edit you could add your GEO URL, meta_descriptions, meta_keywords, even custom javascript to spam-proof email addresses etc.

This solution seems more scalable than the original cool_hack.


Adding dynamic meta data to stories

Posted on: 15/12/05 08:15pm
By: drshakagee

[QUOTE BY= bjudson]but a field should exist either in the config file, or in the database to add SOMETHING to all templates area.[/QUOTE]


If your meta data isn't dynamic why not just add it to your header.thtml file?

Adding dynamic meta data to stories

Posted on: 16/12/05 01:59am
By: Dirk

Technorati-style tags can be implemented as a plugin.

bye, Dirk

Adding dynamic meta data to stories

Posted on: 16/12/05 03:28am
By: beewee

That's all. This is a plugin (you have to create the entry in the
plugins table yourself, then safe it as plugins/tags/functions.inc)
which provides a [tag:] autotag. Now just insert the tags somewhere in
the text and it will collect them and list them at the end of the text.


So if i write a story about swimming in Miami I would have to write it like this:

I love [tag: swimming] in [tag:Miami].

Am I correct?

And, since I'm no developer, is somebody interested in making it a normal plugin? Making new templates should not be necessairy, if there is a {} tag we can put in the story and header template somewhere.

Adding dynamic meta data to stories

Posted on: 16/12/05 09:59am
By: bjudson

[QUOTE BY= drshakagee] [QUOTE BY= bjudson]but a field should exist either in the config file, or in the database to add SOMETHING to all templates area.[/QUOTE]


If your meta data isn't dynamic why not just add it to your header.thtml file?[/QUOTE]

The only reason I would do it at the core is so it would affect all templates. Users could download other templates, and not worry about having to modify them all the time.

Further functionality, like the new editor could use this functionality as well. Why call it with a plugin API, if the functionality is used at the core of serving pages? It's just extra overhead.

-Ben


Adding dynamic meta data to stories

Posted on: 28/12/05 09:02am
By: 1000ideen

Yes, I think the idea of flexible meta data is great. Though one should consider some more fields like this and maybe 1-3 open fields to be defined somewhere:

<meta name="language" content="??">
<meta name="topic" lang="??" content="??">
<meta name="type" lang="??" content="??">
<meta name="audience" lang="??" content="??">
<meta name="description" lang="??" content="??">
<meta name="keywords" lang="??" content="??">



Adding dynamic meta data to stories

Posted on: 12/03/06 09:21pm
By: Anonymous

Hello,

Two questions about this.

(1) Will it still work with current version of geeklog? No issues?

(2) How about for my index page, how do I get the meta dialog to appear there?

Adding dynamic meta data to stories

Posted on: 07/04/06 11:54am
By: ByteEnable

[QUOTE BY= Raven]
(1) Will it still work with current version of geeklog? No issues?[/quote]
Yeah

[QUOTE BY= Raven]
(2) How about for my index page, how do I get the meta dialog to appear there?[/QUOTE]

All pages will display the meta data, its in the header. For index pages and such it will display the default data that you have defined in config.php

Adding dynamic meta data to stories

Posted on: 30/04/06 10:51am
By: Spirit_of_Martin

Hello

When i add meta to article, with this hack, then save it i got a error:

Warning: Missing argument 30 for submitstory() in /public_html/admin/story.php on line 919

Warning: Illegal offset type in /system/lib-security.php on line 191



My geek is 1.3.11sr5

Any sugestion??

Adding dynamic meta data to stories

Posted on: 19/05/06 09:04am
By: Robin

Something ain't right with this hack.
I introduced all the changes, hack seems to work as I can add meta desc and keywords and they are actually saved in the db. However when you click on a story and then look into the source there is nothing there, expcept for the meta data from config.

GL 1.4.0sr2

Any help much appreciated

Adding dynamic meta data to stories

Posted on: 22/05/06 07:30am
By: Robin

I suspect that the problem is with lib-common.php part.

Could you please post the piece of code from lib-common with this additional code? Where does it go exactly?

Thanks

Robert

Adding dynamic meta data to stories

Posted on: 25/05/06 10:21am
By: Anonymous

want solutions too!

Adding dynamic meta data to stories

Posted on: 29/05/06 03:27am
By: Robin

Could someone please confirm that this hack actually works works on 1.4.0. ?
TIA

Adding dynamic meta data to stories

Posted on: 16/06/06 10:42am
By: Anonymous

Bump for last response

Adding dynamic meta data to stories

Posted on: 01/07/06 12:54pm
By: Anonymous

[QUOTE BY= Robin] Something ain't right with this hack.
I introduced all the changes, hack seems to work as I can add meta desc and keywords and they are actually saved in the db. However when you click on a story and then look into the source there is nothing there, expcept for the meta data from config.

GL 1.4.0sr2

Any help much appreciated[/QUOTE]

Bump, having same problem, any solutions?

Adding dynamic meta data to stories

Posted on: 02/07/06 12:29am
By: Scotsman

for lib-common.php where it says around line 579, instead place it at about line 975. I placed it after $charset = $LANG_CHARSET; and works fine.

Adding dynamic meta data to stories

Posted on: 02/07/06 02:58am
By: ByteEnable

The hack worked as of 1.4.0. Since then, lots of changes have been made to Geeklog. My Geeklog has lots of hacks I have made and does not resemble the latest version of GL.

However, as of GL 1.3.9 and 1.4.0, the hack should work. It would require some PHP skills probably to hack up the latest version of GL. I don't have to the time to download the standard edition of GL and hack it up.

Byte

Adding dynamic meta data to stories

Posted on: 20/08/06 03:38pm
By: Anonymous

BUMP.

I want to integrate this hack to may Geeklog 1.40sr5.
Are there any new Infomations , or a solution?

Adding dynamic meta data to stories

Posted on: 03/10/06 11:40am
By: garfy

I have the latest geeklog and I wonder if we can do something like that

when you are writing a story you can add somewhere in the story window like we add [image1] we can add [description_here you write meta description for this page]
and also you can add [keywords_where you can add keywords]

is that possible

also this stuff must be included into future versions, it is a must have a prioroty no1 because other CMS like Joomla has that and I do not wanna switch to joomla just fo that

so is this hack working with latest version of joomla and can you set the description and keywords only for one page and not for all of them?

Adding dynamic meta data to stories

Posted on: 31/10/06 08:25am
By: garfy

[QUOTE BY= ByteEnable] Insert two rows into your gl_stories table of your geeklog database:
"meta_description" with a type of text, NULL
"meta_keywords" with a type of text, NULL

config.php, add:
$_CONF['meta_description'] = "The coolest website ever!";
$_CONF['meta_keywords'] = "my,keywords,rank,high,in,google";




header.thtml, add the following somewhere in the "head":
<META NAME="description" CONTENT="{meta_description}">
<META NAME="keywords" CONTENT="{meta_keywords}">



storyeditor.thtml, add the following above intro_text:
<tr>
  <td valign="top" align="right">Meta Desc:</td>
  <td><textarea name="meta_description" cols="60" rows="2">{story_meta_description}</textarea></td>
</tr>
<tr>
  <td valign="top" align="right">Meta Keywords:</td>
  <td><textarea name="meta_keywords" cols="60" rows="2">{story_meta_keywords}</textarea></td>
</tr>




article.php, modify the COM_siteHeader (around line 150) function call:
$display .= COM_siteHeader ('menu', $pagetitle, $rdf,$A['meta_description'],$A['meta_keywords']);




lib-common.php, modify the COM_siteHeader function:
function COM_siteHeader( $what = 'menu', $pagetitle = '', $headercode = '',$meta_desc='',$meta_key='')

around line 579 or so add:

if ( !empty($meta_desc))
  $_CONF['meta_description'] = $meta_desc;
if ( !empty($meta_key))
  $_CONF['meta_keywords'] = $meta_key;
$header->set_var(meta_description,$_CONF['meta_description']);
$header->set_var(meta_keywords,$_CONF['meta_keywords']);




story.php, add the following around 579:
$story_templates->set_var('story_meta_description',$A['meta_description']);
$story_templates->set_var('story_meta_keywords',$A['meta_keywords']);

modify the submitstory function with meta data:

function submitstory($type='',$sid,$uid,$tid,$title,$introtext,$bodytext,$hits,$unixdate,$expiredate,$comments,$featured,$commentcode,$trackbackcode,$statuscode,$postmode,$frontpage,$draft_flag,$numemails,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$delete,$show_topic_icon,$meta_description,$meta_keywords,$old_sid)

just before the DB_save call in function submitstory add:
$meta_description = addslashes($meta_description);

Modify the DB_save with the meta data:
DB_save ($_TABLES['stories'],'sid,uid,tid,title,introtext,bodytext,hits,date,comments,related,featured,commentcode,
trackbackcode,statuscode,expire,postmode,frontpage,draft_flag,numemails,owner_id,group_id,perm_owner,
perm_group,perm_members,perm_anon,show_topic_icon,in_transit,meta_description,meta_keywords', "'$sid',$uid,'$tid','$title','$introtext','$bodytext',$hits,FROM_UNIXTIME($unixdate),'$comments','$related',$featured,'$commentcode','$trackbackcode','$statuscode',FROM_UNIXTIME($expiredate),'$postmode','$frontpage',$draft_flag,$numemails,$owner_id,$group_id,$perm_owner,$perm_group,$perm_members,$perm_anon,$show_topic_icon,1,'$meta_description','$meta_keywords'");

around line 1100 or so add the meta data:
COM_applyFilter ($_POST['show_topic_icon']), <- dont add this

COM_stripslashes ($_POST['meta_description']),
COM_stripslashes ($_POST['meta_keywords']),

COM_applyFilter ($_POST['old_sid'])); <- dont add this



[/QUOTE]

can somebody be more precise how to insert a new row into table

i opened the gl_stories and then press insert and theree are so many fields there

which one to fill

Re: Adding dynamic meta data to stories

Posted on: 19/12/06 02:01pm
By: garfy

anybody please

can someone tell me how to add a table in database?

Quote by ByteEnable: Insert two rows into your gl_stories table of your geeklog database:
"meta_description" with a type of text, NULL
"meta_keywords" with a type of text, NULL


And is it working for 1.405 sr2 version

what about for the following 1.4.1??

Re: Adding dynamic meta data to stories

Posted on: 18/02/08 10:38am
By: trampoline

Is this possible still under the latest distro ?

Re: Adding dynamic meta data to stories

Posted on: 11/07/08 05:01am
By: Anonymous

How about implementing this in glFusion, what's the process? I belive some filenames are changed within the new system. So - now what? Any ideas on "simple dublin core" integration, only for articles, when submitting - publishing?

Re: Adding dynamic meta data to stories

Posted on: 11/07/08 05:24am
By: Chase

i have just started using page title in meta description which i called from the header.html

which code for your appraoch as well, look good.

Re: Adding dynamic meta data to stories

Posted on: 11/07/08 05:39am
By: Anonymous

I can see that Joomla enables to enter metadata within article entry, why wouldn't you include that into the new release of glFusion (I reccomend simpleDC as mentioned)?

Re: Adding dynamic meta data to stories

Posted on: 11/07/08 12:06pm
By: garfy

yes thats is why I am using Joomla instead of geeklog

Dirk still claims meta tags are snake oil and not needed, sorry dirk but you posted that 1 year ago or so.

Re: Adding dynamic meta data to stories

Posted on: 11/07/08 04:06pm
By: beewee

Quote from the Official Google Webmaster Blog:
And it's worth noting that while accurate meta descriptions can improve clickthrough, they won't affect your ranking within search results.


If you're no so stupid to put a static centerblok with a not relevant H1 header and not relevant text on top of your stories, Google will show the first lines of your latest story in the search results, so that's quite OK. Google will do that even if your left column come first in the source code

Do not focus on that stupid meta tags, these are important:

- site name
- topic names
- story titles
- story ID's
- content of your stories
- proper use of H1/H2/H3/H4 tags for the storytitles and subtitles, not for blocks or blocktitles
- clean, semantic HTML code, without tables and loads of javascripts
- no duplicate content
- lots of relevant backlinks with a proper anchortext

Unique, well written content, and a proper display of your content, is always the most important!

PS I wanted to post the url to the webmaster blog, but the spamfilter didn't allow it...

The rest is not so important. You better make some time to polish your content and backlinks instead of worrying about a meta description.

Re: Adding dynamic meta data to stories

Posted on: 06/09/08 12:56pm
By: jhackwith

Quote by: beewee

Quote from the Official Google Webmaster Blog:

And it's worth noting that while accurate meta descriptions can improve clickthrough, they won't affect your ranking within search results.


... Do not focus on that stupid meta tags, these are important:

- site name
- topic names
- story titles
- story ID's
- content of your stories
- proper use of H1/H2/H3/H4 tags for the storytitles and subtitles, not for blocks or blocktitles
- clean, semantic HTML code, without tables and loads of javascripts
- no duplicate content
- lots of relevant backlinks with a proper anchortext

Unique, well written content, and a proper display of your content, is always the most important!

PS I wanted to post the url to the webmaster blog, but the spamfilter didn't allow it...

The rest is not so important. You better make some time to polish your content and backlinks instead of worrying about a meta description.



I'm sorry, but I just have to jump in here and state that "stupid meta tags" are very important, for one key reason: search engines are used by people.

What is the point of SEO, anyway? Yes, you want the search engines to place your site high on the listings for your targeted keywords, but the ultimate win for SEO is a clickthrough by an actual person. As you pointed out, the Google Webmaster Blog states that meta tags will not improve your ranking within search results, they "can improve clickthrough."

Meta descriptions are very important, not for search engines, but for people. You can have your page listed in the top ten listings for your relevant keywords, but if your description is the same for every page on your site (as is the case with every standard install of Geeklog), you have less of a chance that a person looking for your targeted keyword will choose to click on your link in search results.

No, meta tags are not the be-all and end-all of SEO. That era ended in the 90s. However, they are one tool that should be ready in the toolbelt of every competent developer. To simply state that they are completely unimportant is a gross oversimplification.

To continue to refuse to include them in the core Geeklog code is a shame.

Re: Adding dynamic meta data to stories

Posted on: 15/11/08 11:18am
By: Laugh

Google release a good SEO guide which talks about meta descriptions.

http://googlewebmastercentral.blogspot.com/2008/11/googles-seo-starter-guide.html

I also see a feature request has now been made.

http://project.geeklog.net/tracking/view.php?id=732

Re: Adding dynamic meta data to stories

Posted on: 17/11/08 01:22pm
By: ::Ben

Thanks Laugh for the link Smile

::Ben

Re: Adding dynamic meta data to stories

Posted on: 17/11/08 01:39pm
By: Chase

some time back i posted something similar.

My idea was that we generate meta-description and meta-keywords automatically.

http://www.geeklog.net/forum/viewtopic.php?showtopic=85249

Re: Adding dynamic meta data to stories

Posted on: 24/03/09 09:01am
By: mystral-kk

Hi all,

I have made Metatags plugin, which allows you to set keywords and description meta tags in each article and staticpage. This plugins converts autotags [meta:key comma_separated_keywords] and [meta:desc description_of_page] into <meta name="keywords" content="comma_separated_keywords"> and <meta name="description" content="description_of_page"> respectively. Should work with Geeklog-1.5.0 or later.

Grab a copy from http://mystral-kk.net/filemgmt/visit.php?lid=30 and give it a try.

Re: Adding dynamic meta data to stories

Posted on: 15/06/09 08:48am
By: beewee

Quote by: mystral_kk

Hi all,

I have made Metatags plugin, which allows you to set keywords and description meta tags in each article and staticpage. This plugins converts autotags [meta:key comma_separated_keywords] and [meta:desc description_of_page] into <meta name="keywords" content="comma_separated_keywords"> and <meta name="description" content="description_of_page"> respectively. Should work with Geeklog-1.5.0 or later.

Grab a copy from http://mystral-kk.net/filemgmt/visit.php?lid=30 and give it a try.



Hi Mystral_kk, is there a way to put in a default robots.txt field in the configuration? And is there a way to make default meta tags for the news topics? I love this plugin by the way, works really great Big Grin

Re: Adding dynamic meta data to stories

Posted on: 16/06/09 09:05am
By: mystral-kk

Quote by: beewee

Hi Mystral_kk, is there a way to put in a default robots.txt field in the configuration? And is there a way to make default meta tags for the news topics? I love this plugin by the way, works really great Big Grin

Hi beewee, currently, there is no way to set default robots.txt field and no way to make default meta tags for the news topics. I'll see if it is possible to implement these two features in a next version. Please be patient.


Re: Adding dynamic meta data to stories

Posted on: 16/06/09 09:25am
By: beewee

Hi, thanks for the swift reply. I'll be patient, many thanks in advance!

Re: Adding dynamic meta data to stories

Posted on: 16/06/09 11:21am
By: Laugh

Just to let you guys know,

Meta Tags support will be added to Geeklog 1.6.1 when it comes out later this year for Stories, Staticpages, Topics and probably Polls. Default tags for the entire site and/or homepage can be set as well in the config panel.



Tom

Re: Adding dynamic meta data to stories

Posted on: 16/06/09 01:48pm
By: LWC

Don't forget to add general plugin support.

Re: Adding dynamic meta data to stories

Posted on: 16/06/09 04:49pm
By: Laugh

Of course. Big Grin

Re: Adding dynamic meta data to stories

Posted on: 17/06/09 02:38am
By: beewee

Quote by: Laugh

Just to let you guys know,

Meta Tags support will be added to Geeklog 1.6.1 when it comes out later this year for Stories, Staticpages, Topics and probably Polls. Default tags for the entire site and/or homepage can be set as well in the config panel.



Great! Please do not forget the Robots metatag Wink

Re: Adding dynamic meta data to stories

Posted on: 18/06/09 08:59am
By: Laugh

The meta tags I have added are Description and Keywords.

I didn't think there would be much use for the Robots tag as people usually want all content indexed. The only time I used the tag is in the template for the printable story format.

Tom

Re: Adding dynamic meta data to stories

Posted on: 18/06/09 09:03am
By: trampoline

When you say metta data, will this also include the ability to alter the page header at the very top of a web page for each story / static page etc ?

Re: Adding dynamic meta data to stories

Posted on: 18/06/09 09:27am
By: beewee

Quote by: Laugh

The meta tags I have added are Description and Keywords.

I didn't think there would be much use for the Robots tag as people usually want all content indexed. The only time I used the tag is in the template for the printable story format.

Tom



Well, there are more possibilities with the Robots tag, which are important sometimes, like 'noopd' and 'nosnippets'.

Especially these metatags are used if you start using the meta description, otherwise Google will still use the old snippets, or the (sometimes not so great) description from DMOZ...

Besides: I do not want the static pages which are used as a centerblock te be indexed...

SEO Cheat sheet (PDF)

Re: Adding dynamic meta data to stories

Posted on: 18/06/09 12:19pm
By: Laugh

Quote by: beewee

Quote by: Laugh

The meta tags I have added are Description and Keywords.

I didn't think there would be much use for the Robots tag as people usually want all content indexed. The only time I used the tag is in the template for the printable story format.

Tom



Well, there are more possibilities with the Robots tag, which are important sometimes, like 'noopd' and 'nosnippets'.

Especially these metatags are used if you start using the meta description, otherwise Google will still use the old snippets, or the (sometimes not so great) description from DMOZ...

Besides: I do not want the static pages which are used as a centerblock te be indexed...

SEO Cheat sheet (PDF)



I will have to look into the robots tag more then, maybe a drop down of available options for it?

I would need to review the robots tag with Dirk, etc.. to see if everyone else agrees with adding it.

You display centerblock staticpages on their own page as well?


Re: Adding dynamic meta data to stories

Posted on: 18/06/09 12:20pm
By: Laugh

Quote by: trampoline

When you say metta data, will this also include the ability to alter the page header at the very top of a web page for each story / static page etc ?



No, not directly.

Re: Adding dynamic meta data to stories

Posted on: 18/06/09 12:23pm
By: trampoline

Quote by: Laugh

Quote by: trampoline

When you say metta data, will this also include the ability to alter the page header at the very top of a web page for each story / static page etc ?



No, not directly.



Oh that would be very useful

Re: Adding dynamic meta data to stories

Posted on: 18/06/09 02:13pm
By: beewee

I will have to look into the robots tag more then, maybe a drop down of available options for it?

Just a simple textfield would do, since multiples values can be added with a comma between: "nosnippet, noodp"

You display centerblock staticpages on their own page as well?

The metatags from static pages have to overrule the topic metatags if the static page is placed as centerblock on top of a page, or on the whole page, I think. Not really necessary since the topics have metatags (in GL 1.61).

If somebody is digging into these things, it might be nice to have a look at static pages (or plugins) which are placed as a centerblock in the middle or the bottom of a page. They should not be found by the search function in that case I believe. In 99% of the cases, centerblocks are not assumed to be read as a separate page and could give duplicate results, and duplicate content (and also should have no-index robots meta tags by default, when placed in the middle or bottom of a page). A checkbox in the page editor "not indexed by search function" would do the trick (almost) perhaps.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=59616