from the starting-to-get-zopenized dept.
I didn't want anyone to do actions like Add a Posting or Reply in my weblog. I wanted a restricted set of links/actions for the Anonymous User. Here you can read how I did it.
Subject: contextual content presentation in Squishdot
Change the content presentation according to the user logged into the weblog.
When surfing an Squishdot site, some management funtions are visible to any user, like
I do not want the
Objects That were modified:
Changes: First I wanted to restrict two navigational objects:
The idea is to reference to a slot with all the links/actions if the user is NOT Anonymous, or display instead a slot with only the links/actions you want to display.
Steps to use the restricted TinyTables objects:
Following steps describe how to use the restricted TinyTables objects and in what Squishdot objects I did the changes.
in the data control. Save changes.
I used a
I looked for the block where the contents of leftbox_items or bottom_items are displayed, and embeded that block in a conditional block, for example in index_html:
<a href="' <dtml-if relurl><dtml-var site_url ></dtml-if><dtml-var urlname>"></a><br> <a href="<dtml-var site_url >/../index_html">up a level</a><br> <a href="<dtml-var site_url >/searchForm">search</a><br> <a href="<dtml-if relurl><dtml-var site_url ></dtml-if><dtml-var urlname>"></a><br> <a href="<dtml-var site_url >/../index_html">up a level</a><br> <a href="<dtml-var site_url >/addPostingForm">post article</a><br> <a href="<dtml-var site_url >/searchForm">search</a><br> <a href="<dtml-var site_url >/manage">admin</a><br>
Note that I mantain the display logic used in Squishdot just in case the TinyTable product is not installed.
Changing the Reply link/action
I do not want the
In the posting_html object look for the statement:
<b>The Fine Print:</b> The following comments are owned by whoever posted them. <br>
And add the following statements:
( Send comments to <a href="mailto:<dtml-var email>?subject=Acerca%20de%20 <dtml-var title>&body=<dtml-varsite_url>"></a> ) ( <a href="addPostingForm">Reply</a> )<br>
As a newbie to Zope and Squishdot, I still want to improve a lot of things in my code. Next objectives are:
Hope this help you improve the navigation of your Squishdot site!
Any comments are welcome and appreciate!
< | >
|"Any system that depends on reliability is unreliable." -- Nogg's Postulate|
|All trademarks and copyrights on this page are
owned by their respective companies.
Comments are owned by the Poster.
The Rest ©1999
Butch Landingin, ©2000-2002