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



</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Kind Regards,
Daniel.
 
-------------------

Daniel Seidel

Alkacon Software GmbH & Co. KG - The OpenCms Experts                    
<a class="moz-txt-link-freetext" href="http://www.alkacon.com">http://www.alkacon.com</a> - <a class="moz-txt-link-freetext" href="http://www.opencms.org">http://www.opencms.org</a>     </pre>
  </body>
</html>