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
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 1just check if the key there but not the value!
you can change the
disable_bordertoenable_borderinstead for switching the codeIt's quite confusing, cuz they use two flags to turn a border on and off instead of 1. --snap--