0
edits
Changes
no edit summary
To attach a PDF file to the beginning or the end of the [[Web Page View]]:
:<font size="3">'''<!--@ssattach(''position'';''pdf file location'')-->'''</font>
To attach a PDF file to a defined page location within the [[Web Page View]]:
:<font size="3">'''<!--@ssattach(insert;''pdf file location'';''page number'')-->'''</font>
'''Where:'''
* ''position'' is either '''before''', '''after''' or '''afterinsert'''* ''page number'' is the page at which the file should be inserted into the PDF document.::'''Note:''' The ''page number'' is '''only''' specified when using ''insert''as the position.
* ''pdf file location'' is:
:{|cellpadding="5" cellspacing="0" border="1"
::* @parent.''Custom Field Name''.value@
::* @parent.parent.''Custom Field Name''.files@
* The ''page number'' is only specified when using ''insert'' as the position.* To obtain the file location for a PDF file stored in a [[Smart Folder]] go to the relevant [[Smart Folder]] and select '''View URL''' from the '''File Options''' combo box next to the relevant PDF file. The first part of the URL should be omitted: the location specified should begin with "/files/..." as in the examples below.
:* '''Note:''' Don't forget to include '''.value'''
* Insert all PDF files stored in a [[Custom Field Type: Link – Multiple Files|Multiple Files Custom Field]] called ''"AttachManyPDFFiles"'' at page 4 of the current [[Web Page View Field]] page:.
<pre>
<!--@ssattach(insert;@AttachManyPDFFiles.files@;4)-->
</pre>
:* '''Note:''' Don't forget to include '''.files'''