[opencms-dev] opencms-dev Digest, Vol 289, Issue 1

Daniel Seidel d.seidel at alkacon.com
Tue May 30 07:47:14 CEST 2017


Hi Jane,

if you still have the problem, can you provide the code of your formatter?

Best, Daniel.


Am 22.05.2017 um 11:03 schrieb Jane Austen Stardust:
> Thank you Daniel,
>
> I've tried your suggestion, but it doesn't work yet.
>
> Best, JA
>
>
> 2017-05-19 12:00 GMT+02:00 <opencms-dev-request at opencms.org 
> <mailto:opencms-dev-request at opencms.org>>:
>
>     Send opencms-dev mailing list submissions to
>     opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>
>
>     To subscribe or unsubscribe via the World Wide Web, visit
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>     or, via email, send a message with subject or body 'help' to
>     opencms-dev-request at opencms.org
>     <mailto:opencms-dev-request at opencms.org>
>
>     You can reach the person managing the list at
>     opencms-dev-owner at opencms.org <mailto:opencms-dev-owner at opencms.org>
>
>     When replying, please edit your Subject line so it is more specific
>     than "Re: Contents of opencms-dev digest..."
>
>
>     Today's Topics:
>
>        1. Content element creation with PDF button (Jane Austen Stardust)
>        2. Re: Content element creation with PDF button (Daniel Seidel)
>
>
>     ----------------------------------------------------------------------
>
>     Message: 1
>     Date: Thu, 18 May 2017 15:40:10 +0200
>     From: Jane Austen Stardust <stardustja at gmail.com
>     <mailto:stardustja at gmail.com>>
>     To: opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>
>     Subject: [opencms-dev] Content element creation with PDF button
>     Message-ID:
>            
>     <CAJtjO_FBdz8+6xZaJkKJRBhvx3na0xcSQayMSpfzHgB_cw-g-g at mail.gmail.com
>     <mailto:CAJtjO_FBdz8%2B6xZaJkKJRBhvx3na0xcSQayMSpfzHgB_cw-g-g at mail.gmail.com>>
>     Content-Type: text/plain; charset="utf-8"
>
>     Hello!
>
>     I'm using OpenCms 10.5.1.
>
>     I can't add a content element by the page editor add wizard if it
>     contains
>     the PDF creation button script.
>
>     But I can create it in the Explorer and then drag it from the page
>     editor
>     add wizard, and works correctly.
>
>     Here is the PDF creation button script that I use:
>
>     <c:set
>     var="PDF">/system/modules/myModule/elements/PDF-formatter.jsp</c:set>
>     <a href="<cms:pdf format='${PDF}' content='${content.filename}'
>     locale='${cms.locale}' />" target="pdf" class="btn">PDF</a>
>
>
>     What's wrong?
>
>     Thanks a lot!
>     JA
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170518/f012e3a3/attachment-0001.html
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170518/f012e3a3/attachment-0001.html>>
>
>     ------------------------------
>
>     Message: 2
>     Date: Thu, 18 May 2017 16:57:29 +0200
>     From: Daniel Seidel <d.seidel at alkacon.com
>     <mailto:d.seidel at alkacon.com>>
>     To: opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>
>     Subject: Re: [opencms-dev] Content element creation with PDF button
>     Message-ID: <25fb45b6-1b2f-d4fb-87c6-37d7e5b4502d at alkacon.com
>     <mailto:25fb45b6-1b2f-d4fb-87c6-37d7e5b4502d at alkacon.com>>
>     Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
>     Hi Jane,
>
>     just a guess: The new element is "in memory only" when you first
>     drag it
>     on the page. It gets persisted when you edited it. The <cms:pdf> might
>     have problems with that situation. You could try to use something
>     like:
>
>     <c:if test="${not cms.inMemoryOnly}">
>
>          <c:set
>     var="PDF">/system/modules/myModule/elements/PDF-formatter.jsp</c:set>
>          <a href="<cms:pdf format='${PDF}' content='${content.filename}'
>     locale='${cms.locale}' />" target="pdf" class="btn">PDF</a>
>
>     </c:if>
>
>     That would render the link only if the element is not "in memory
>     only".
>
>     Best, Daniel.
>
>
>     Am 18.05.2017 um 15:40 schrieb Jane Austen Stardust:
>     >
>     > Hello!
>     >
>     > I'm using OpenCms 10.5.1.
>     >
>     > I can't add a content element by the page editor add wizard if it
>     > contains the PDF creation button script.
>     >
>     > But I can create it in the Explorer and then drag it from the page
>     > editor add wizard, and works correctly.
>     >
>     > Here is the PDF creation button script that I use:
>     >
>     > <c:set
>     >
>     var="PDF">/system/modules/myModule/elements/PDF-formatter.jsp</c:set>
>     > <a href="<cms:pdf format='${PDF}' content='${content.filename}'
>     > locale='${cms.locale}' />" target="pdf" class="btn">PDF</a>
>     > What's wrong?
>     > Thanks a lot!
>     > JA
>     >
>     >
>     > _______________________________________________
>     > This mail is sent to you from the opencms-dev mailing list
>     > To change your list options, or to unsubscribe from the list,
>     please visit
>     > http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>     >
>     >
>     >
>     --
>     Kind Regards,
>     Daniel.
>
>     -------------------
>
>     Daniel Seidel
>
>     Alkacon Software GmbH & Co. KG - The OpenCms Experts
>     http://www.alkacon.com - http://www.opencms.org
>
>     -------------- next part --------------
>     An HTML attachment was scrubbed...
>     URL:
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170518/23efa3d7/attachment-0001.html
>     <http://lists.opencms.org/pipermail/opencms-dev/attachments/20170518/23efa3d7/attachment-0001.html>>
>
>     ------------------------------
>
>     _______________________________________________
>     This mail is sent to you from the opencms-dev mailing list
>     To change your list options, or to unsubscribe from the list,
>     please visit
>     http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>     <http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev>
>
>     End of opencms-dev Digest, Vol 289, Issue 1
>     *******************************************
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
-- 
Kind Regards,
Daniel.
  
-------------------

Daniel Seidel

Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20170530/917318dc/attachment.htm>


More information about the opencms-dev mailing list