about search post article Documentation Mailing Lists Bug Tracking Development Installation Upgrading Download admin rdf |
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 SquishdotChange the content presentation according to the user logged into the weblog. Example: 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:
Note that I mantain the display logic used in Squishdot just in case the TinyTable product is not installed. Changing the Reply link/actionI do not want the In the posting_html object look for the statement: The Fine Print: The following comments are owned by whoever posted them. And add the following statements: ( Send comments to ) ( Reply ) 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! < | >
|
|
||||||
|