[prev in list] [next in list] [prev in thread] [next in thread]
List: zope-cmf
Subject: [Zope-CMF] delete an item using form buttons
From: "Miguel Sanchez Beato" <migsbnet () gmail ! com>
Date: 2006-02-24 12:53:22
Message-ID: 142c3bb40602240453p57fe1008p () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Hi. I'm customizing templates from 'CMF Message' and I've found some
problems trying to delete the message once you've read it, that it, I
ead
the message (message_view.pt) so I can see the message author,subject and
text. At the same time I've got 3 options (form buttons
'class=standalone')
DELETE/ACKNOWLEDGE/REPLY. I have problems trying to delete the message
because I don't want the browser to go to the folder contents page in my
plone instance (I don't want my users can manage the message contents in
this case, I just want them to see the message, delete it and go back to
the
message fron-page view mode). So, the delete mode from 'message_view.pt'
template looks like:
...
...
<form name="delete"
action=""
method="post"
style="display:inline"
tal:attributes="action request/URL2">
<input tal:define="getRelativeContentURL
nocall:utool/getRelativeContentURL;
hasGetUrl python:hasattr(context.aq_explicit,
'getURL');
item_rel_url python:hasGetUrl and context.getURL(relative=1)
or
getRelativeContentURL(context);"
type="hidden" name="paths:list"
tal:attributes="value item_rel_url" />
<input class="standalone"
type="submit"
name="folder_delete:method"
value="Eliminar"
i18n:attributes="value" />
</form>
...
...
I think the problem has something to do with 'action request/URL2' (in
fact I can "move" the browser to different pages using request/URL<i> but
always in contents mode, not in view mode) and maybe with
folder_delete:method.
Is there any way to (auto)delete the message and take you to some view
mode like the portal/front-page?
thanks!
[Attachment #5 (text/html)]
Hi. I'm customizing templates from 'CMF Message' and I've found some<br>
problems trying to delete the message once you've read it, that it, I <br>
ead<br>
the message (message_view.pt) so I can see the message author,subject and<br>
text. At the same time I've got 3 options (form buttons <br>
'class=standalone')<br>
DELETE/ACKNOWLEDGE/REPLY. I have problems trying to delete the message<br>
because I don't want the browser to go to the folder contents page in my<br>
plone instance (I don't want my users can manage the message contents in<br>
this case, I just want them to see the message, delete it and go back to <br>
the<br>
message fron-page view mode). So, the delete mode from 'message_view.pt'<br>
template looks like:<br>
...<br>
...<br>
<form name="delete"<br>
action=""<br>
method="post"<br>
style="display:inline"<br>
tal:attributes="action \
request/URL2"><br> <br>
<input tal:define="getRelativeContentURL <br>
nocall:utool/getRelativeContentURL;<br>
hasGetUrl python:hasattr(context.aq_explicit, <br>
'getURL');<br>
item_rel_url python:hasGetUrl and context.getURL(relative=1) <br>
or<br>
getRelativeContentURL(context);"<br>
\
type="hidden" name="paths:list"<br> \
\
tal:attributes="value item_rel_url" /><br> <br>
<input \
class="standalone"<br> \
type="submit"<br>
name="folder_delete:method"<br>
value="Eliminar"<br>
i18n:attributes="value" /><br>
<br>
</form><br>
...<br>
...<br>
<br>
I think the problem has something to do with 'action request/URL2' (in <br>
fact I can "move" the browser to different pages using request/URL<i> \
but <br> always in contents mode, not in view mode) and maybe with \
folder_delete:method.<br> Is there any way to (auto)delete the message and take you \
to some view <br> mode like the portal/front-page?<br>
thanks!<br>
<br>
_______________________________________________
Zope-CMF maillist - Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf
See http://collector.zope.org/CMF for bug reports and feature requests
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic