Client Guide : Adding External Links : External Links Pointing to a Pilot Page

External Links Pointing to a Pilot Page
Link to an Asset in Browse View:
Use the following syntax to dynamically create a link to a specific asset in Xinet Pilot (for example, to place in an automatically generated email action):
xwnb-view://<portal.hostname>/PORTAL/BROWSE.php?id=<fileid of the asset>
Replace the <portal.hostname> with your server name and <fileid of asset> with the $XFID variable. The $XFID variable is assigned the assets actual file id number when the action is triggered. Here is an example:
xwnb-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=$XFID
When viewed in an email client (with resolved file ID), it will look similar to this:
xwnb-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=12345
The above URL will open Xinet Pilot, ask for a login, and route the user to the asset with file ID “12345”.
Link to Details View
By default, the assets are open in the Browser view. To open in the Details view instead, use showmode=details:
xwnb-view://<portal.hostname>/PORTAL/BROWSE.php?id=<fileid of the parent folder>&showid=<fileid of the asset>&showmode=details
Again, replace the <portal.hostname> with your server name and <fileid of asset> with the $XFID variable. Because the parent folder needs to be identified for a browse view, you need to identify it too. Replace <fileid of the parent folder> with the $PARENTID variable, which is assigned the asset's parent folder file ID when the action is triggered.
xwnb-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=$PARENTID&showid=$XFID&showmode=details
When viewed in an email client (with resolved file ID and parent folder file ID), it will look similar to this:
xwnb-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=34567&showid=12345&showmode=details
This will open the asset in Details view as Details view is the default showmode.
Link to Annotations View:
To open in the Annotations view instead, use showmode=annotations:
xwnb-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=$PARENTID&showid=$XFID&showmode=annotations
When viewed in an Email client (with resolved file ID and parent folder file ID), it will look similar to this:
xwnb-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=34567&showid=12345&showmode=annotations
This will open the asset in Details view, as Details view is the default showmode.
Using SSL/HTTPs:
If you are using SSL/https, use xwnbs instead of xwnb for any of the Pilot external link URLs:
Instead of:
xwnb-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=12345
Use:
xwnbs-view://xinet.northplainsdemo.com/PORTAL/BROWSE.php?id=12345