Changes

Attach a PDF to a Web Page View

252 bytes added, 18:46, 17 May 2010
no edit summary
You can use the '''ssattach''' function to append one or more PDF documents stored in either a [[Custom Field Type: Link – Single File|Single File Field]] or [[Smart Folder]] to a [[Web Page View Field]].
The attached PDF file(s) will not be visible when viewing the web page in HTML mode, but will be appended when exported as a PDF, saved as a PDF, emailed as PDF or created by a [[Workflow]] as attachment.
'''Note:''' The attached PDF file(s) will '''not''' be visible when viewing the web page in HTML mode, but will be appended when exported as a PDF, saved as a PDF, emailed as PDF or created by a [[Workflow]] as attachment.
==Syntax==To display a list of the contacts assigned at Level 2::<font size="3">'''Sample Codes[#(?object=contact;) ~firstname~ ~lastname~ ~email~ #]'''</font>   ==Examples==
* Append a PDF file from a [[Smart Folder]] '''before''' the current [[Web Page View Field]] page:
<pre>
'''Rules'''==Additional Information==
* The '''ssattach''' function can be placed anywhere inside the [[Web Page View Field]]
* All PDF page settings will driven by the first PDF document file, whether it is a static file or one generated by [[SmartSimple]]* Multiple PDF files can be attached from different sourcesby using multiple ssattach statements:
<pre>
 
<!--@ssattach(before;/files/1234/123/myfileheader.pdf )-->
<!--@ssattach(after;/files/1234/123/myfilefooter.pdf )-->
</pre>
* All page settings will driven by first PDF document file, either it is a static file or generated by [[SmartSimple]]  '''SSlogic''' * Using @customfield@ instead of [[Smart Folder|smart folder]] can be used if the PDF file (like @parent.contract@s)* Use if sslogic like thisto be attached needs to be varied using conditional statments
<pre>
<!--@sslogic('@type@'='contact')-->
<!--@ssattach(after;@parent.contract.value@)-->
 
<!--@else-->
<!--@ssattach(after;@parent.othercontract.value@)-->
</pre>
 
 
==See Also==
* [[Web Page View]]
* [[sslogic]]
 
[[Category:Custom Fields]][[Category:PDF]]
0
edits