FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

A new way to setup context["robots"]

 
Post new topic   Reply to topic    PyLucid - CMS - Forum Forum Index -> system
View previous topic :: View next topic  
Author Message
jens
Administrator


Joined: 12 Oct 2005
Posts: 972
Location: duisburg, germany

PostPosted: Fri 22 Feb, 2008 16:15    Post subject: A new way to setup context["robots"] Reply with quote

In v0.8.0 the context variable "robots" doesn't changed right Sad

So i only want to bugfix this... A least i change the way to build this dynamic variable... But i don't think this is relay the best way.

Please look here:
http://trac.pylucid.net/changeset/1440

I have create a docu page for this variable, too:
http://pylucid.org/_goto/140/context-robots/

Any feedback?
_________________

http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
Back to top
View user's profile Send private message
jens
Administrator


Joined: 12 Oct 2005
Posts: 972
Location: duisburg, germany

PostPosted: Tue 26 Feb, 2008 09:12    Post subject: Reply with quote

A new idea: Don't put the robots value ("index,follow" or "NONE,NOARCHIVE") directly into the context -> Put only the bool "anonymous_view" into the context!

Then we can make this:
Code:
<meta name="robots" content="{% if anonymous_view %}index,follow{% else %}NONE,NOARCHIVE{% endif %}" />


We can used the "anonymous_view" information in other way, too. e.g. for a google adsense block and for this:
Code:
{% if not anonymous_view %}<div id="admin">{% lucidTag admin_menu %}</div>{% endif %}


With this, we have another benefit: The plugin manager variable "no_rights_error" is obsolete and we can remove the code for this! Nice.

We should remove "robots" from the context in v0.9 so the changes are not backwards-incompatible, now.

remove "robots" and "no_rights_error" in v0.9: http://trac.pylucid.net/ticket/161
add "anonymous_view" in http://trac.pylucid.net/changeset/1447
_________________

http://www.jensdiemer.de | http://www.htfx.de | http://www.python-forum.de
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PyLucid - CMS - Forum Forum Index -> system All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

<< back to PyLucid CMS Homepage



Powered by phpBB © 2001, 2005 phpBB Group