Skip to content. | Skip to navigation

Sections
Personal tools
What is this?
Hi, my name is Tom Lazar and I'm a Plone and Zope developer based in Berlin, Germany and this is my personal and professional (no big difference, really...) website.
 

Edit-Tabs for CMFPhotoAlbum

Filed Under:

Note-To-Myself

Note to myself: if you want to be able to easily add Photos TTW ("Through-The-Web") in CMFPhotoAlbum, you must customize portal_skins/photoalbum_content/photoalbum_view and remove the <tal>-statement in the beginning:

    <metal:block fill-slot="base">
      <tal:block tal:define="dummy python:request.set('disable_border', 0)"
	         tal:replace="nothing">
        Disable the tabs
      </tal:block>    
    </metal:block>

There, now! That's much better...

Re: Edit-Tabs for CMFPhotoAlbum

Posted by Tom Lazar at Mar 02, 2004 09:31 AM

It get's better: (from the plone-user mailinglist)

--snip-- I know why, since the showEditableBorder.py

if REQUEST.has_key(disable_border): #short circuit return 0 if REQUEST.has_key(enable_border): #short circuit return 1

just check if the key there but not the value!

you can change the disable_border to enable_border instead for switching the code

It's quite confusing, cuz they use two flags to turn a border on and off instead of 1. --snap--