| View previous topic :: View next topic |
| Author |
Message |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
|
| Back to top |
|
 |
jens Administrator
Joined: 12 Oct 2005 Posts: 972 Location: duisburg, germany
|
Posted: Tue 26 Feb, 2008 09:12 Post subject: |
|
|
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 |
|
 |
|
|
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
|
|