Gendoc odt with image link - Printable Version +- CoreBOSBB (https://discussions.corebos.org) +-- Forum: Support (https://discussions.corebos.org/forumdisplay.php?fid=17) +--- Forum: Administrator Support (https://discussions.corebos.org/forumdisplay.php?fid=8) +--- Thread: Gendoc odt with image link (/showthread.php?tid=2756) Pages:
1
2
|
Gendoc odt with image link - geraldbigot - 06-19-2023 Hello, Using an odt with image link as Gendoc template, when I export my quote, I can't see any image. Is there anything special to set to see this image ? RE: Gendoc odt with image link - joebordes - 06-19-2023 not much really: look here https://corebos.com/docs_grav/configuration-tools/gendoc/gramatica you must include an image, that image will be substituted with the image in the application field, but the image has to be there RE: Gendoc odt with image link - geraldbigot - 06-19-2023 Thank you Joe. Would you have a syntax example because we need to add a link to this image ? I don't find it in https://corebos.com/docs_grav/configuration-tools/gendoc/gramatica RE: Gendoc odt with image link - joebordes - 06-19-2023 download the documentation template, there are some examples there for sure https://corebos.com/docs_grav/configuration-tools/gendoc-templates/gendocdocumentation.odt https://corebos.com/docs_grav/configuration-tools/gendoc-templates [attachment=1198] RE: Gendoc odt with image link - geraldbigot - 06-19-2023 I can't see any similar case in template examples My issue is not exactly image but the hyperlink behind : there are coreBOS variables in it. RE: Gendoc odt with image link - joebordes - 06-19-2023 share with me so I can understand RE: Gendoc odt with image link - momomonet - 06-20-2023 (06-19-2023, 03:27 PM)joebordes Wrote: share with me so I can understand Hi Joe, Here is our case: We need to insert a button in the PDF file generated from the odt file. That button have to call a webservice with 2 parameters: https://xxx.xxxxx.com/accept-quotation?number={Quotes.quote_no}$&email={Accounts.email1} I try to insert an hyperlink of style button but that doesn't work. The hyperlink inserted doesn't work neither with parameters passed. The pdf should look like capture attached with blue button "ACCEPT QUOTE". Do you have any idea please? Thank you. Morgan RE: Gendoc odt with image link - xhilda.shazivari - 08-03-2023 (06-20-2023, 08:44 AM)momomonet Wrote:(06-19-2023, 03:27 PM)joebordes Wrote: share with me so I can understand Hello, To add a button in the odt template, insert an image with a hyperlink. Make sure to use a placeholder for the image and link it to a webservice that takes parameters from the selected record. PS: The webservice provided above contains an extra character that needs to be removed: number={Quotes.quote_no} $ &email={Accounts.email1} Hope this helps! Let us know. Thank you, Xhilda RE: Gendoc odt with image link - momomonet - 09-12-2023 Hi I tried by just adding an hyperlink without image but variables are not converted into their values: https://xxxxxx/accept-quotation?number={Quotes.quote_no}&email={Accounts.email1} Here is the url in the webbrowser once the link clicked: https://xxxxxx/accept-quotation?number=%7BQuotes.quote_no%7D&email=%7BAccounts.email1%7D Do you have any idea please? Thank you. Morgan RE: Gendoc odt with image link - joebordes - 09-28-2023 I just pushed a couple of code changes to support your use case. Update when you can and let me know how it goes. |