Attach PDF File to Web Page View Field

From SmartWiki
Revision as of 20:20, 4 December 2008 by Julia Decker (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This directive is not visible to web page in HTML mode but is effective when exported as a PDF, saved as a PDF, emailed PDF and created by workflow as attachment.

Sample Codes

1. Appending current web page field to a PDF file from smart folder.

<!- - @ssattach(before;/files/1234/123/myfile.pdf )- ->

2. Appending a PDF file from smart folder to current web page field .

<!- - @ssattach(after;/files/1234/123/myfile.pdf )- ->

3. Appending current web page field to a PDF file from a custom field (single file type).

<!- - @ssattach(before;@attach pdf file@)- -> 
                                            or 
<!- - @ssattach(before;@#xxxxxxx#@)- -> where xxxx is customfield id.

Rules

  • Directives can be placed anywhere inside the field, more than one directive can be used like this.

-----------------------------------------------------------------------------------------------
<!- - @ssattach(before;/files/1234/123/myfileheader.pdf )- ->
<!- - @ssattach(after;/files/1234/123/myfilefooter.pdf )- ->
<!- - @ssattach(after;/files/1234/123/myfileappendix.pdf )- ->


    <html><body>
  My Pdf file
 </body></html>

  • All page settings will driven by first PDF document file, either it is a static file or generated by SmartSimple


Logic

  • Using @customfield@ instead of smart folder file (like @parent.contract@)
  • Use if sslogic like this:
<!- -@sslogic(‘@type@’=’contact’) - ->
       <!- -@ssattach(after;/files/1234/123/myfilefooter.pdf )- ->

<!--@else-->
     <!- - @ssattach(after;/files/1234/123/myfilefooter.pdf )- ->
<!--@end-->