change meta robots to option list

Discussions and requests related to new CMSimple features, plugins, templates etc. and how to develop.
Please don't ask for support at this forums!
svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

change meta robots to option list

Post by svasti » Sun Apr 13, 2014 10:15 pm

Hi,

why not change meta robots into an option list, as there are only three sensible entries:

no entrie = preset from config.php
or
index,follow
or
noindex,nofollow

or are there other possible and sensible entries?

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: change meta robots to option list

Post by cmb » Sun Apr 13, 2014 11:13 pm

svasti wrote:why not change meta robots into an option list
Basically, I like the idea. However, "meta robots" is not yet standardized for HTML5, but at least it had made it to the list of registered extensions according to WHATWG. It seems there'll be more options than (no)index and (no)follow. If we won't stick with a text input, we would have to make a "multi select" element available (either <select multiple> or an array of <input type="checkbox">).
svasti wrote:or are there other possible and sensible entries?
Ignoring HTML5 for now, what about "index, nofollow" (i.e. index this page, but ignore links [regarding PR]) and "noindex, follow" (i.e. don't index this page, but "follow" contained links). Especially the latter might be very unusual, however, it might be appropriate sometimes.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: change meta robots to option list

Post by svasti » Mon Apr 14, 2014 10:15 am

What about an option list:
  • standard
  • noindex,nofollow
  • noindex,follow
  • index,nofollow,
  • index,follow
I guess, usually in config.php "index,follow" is set. I someone uses the meta robots pagedata, it will probably mostly be to set "noindex,nofollow". That's why I put it right under "standard".

Or checkboxes:
Without entry in pagedata, checkbox "Standart" will be checked and further entries will be greyed out.
Once this is unchecked, there could be 2 sets of 2 radiobuttoms, "o index, o noindex, o follow, o nofollow", with noindex and nofollow preset.
Once more extensions are recognized, we'll add them.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: change meta robots to option list

Post by cmb » Mon Apr 14, 2014 10:46 am

Or perhaps a checkbox for each option: index, follow.

Anyway, I've put it on the 1.6.3 roadmap--it might be debatable whether we move it to the 1.6.2 roadmap.
Christoph M. Becker – Plugins for CMSimple_XH

meltemi
Posts: 177
Joined: Sat Feb 22, 2014 10:11 pm
Location: Franken (Deutschland)
Contact:

Re: change meta robots to option list

Post by meltemi » Mon Apr 14, 2014 7:10 pm

svasti wrote:or are there other possible and sensible entries?
Hallo,

von mir oft benutzt: noarchive, noimageindex, noodp

Und noch ein paar weitere.

Viele checkboxes erforderlich ;-)

svasti
Posts: 1659
Joined: Wed Dec 17, 2008 5:08 pm

Re: change meta robots to option list

Post by svasti » Mon Apr 14, 2014 10:38 pm

Ui, dann lassen wir es mal besser so wie es ist !

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: change meta robots to option list

Post by cmb » Tue Apr 15, 2014 11:07 am

svasti wrote:Ui, dann lassen wir es mal besser so wie es ist !
ACK.

There could be an external plugin, however, that uses meta_tags' page data and offers an advanced editor for those. Furthermore this plugin could have additional functionality regarding SEO.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: change meta robots to option list

Post by Tata » Mon Jun 16, 2014 6:52 am

Regardless on how important this definition may be - IMHO there would be always two values to choose (yes/no). Then using of radionbox seems to me to be the most suitable.
If it could be put into one small separated file and included within onload(), then - if new possibilities would appear in the future - only this file would be necessary to upgrade.
In this term thing may look e.g.:
[ external image ]
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: change meta robots to option list

Post by cmb » Mon Jun 16, 2014 9:53 pm

Tata wrote:If it could be put into one small separated file and included within onload(), then - if new possibilities would appear in the future - only this file would be necessary to upgrade.
Interesting! To avoid reading another file, the options might be given as a config option (e.g. comma separated list).
Tata wrote:IMHO there would be always two values to choose (yes/no). Then using of radionbox seems to me to be the most suitable.
I agree that yes/no options suffice, but I'd like checkboxes more.
Christoph M. Becker – Plugins for CMSimple_XH

Tata
Posts: 3588
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: change meta robots to option list

Post by Tata » Mon Jun 16, 2014 11:20 pm

cmb wrote:I agree that yes/no options suffice, but I'd like checkboxes more.
But then you need to make sure that "yes/no" are not checked at the same time. The radios exlude this risk without any other codings. But yes, it can be achieved with checkboxes too, that after one of two is checked, the other goes greyed immediately.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

Post Reply