While its typically great that the preview picks up the default view, I really want a specific view for the preview on certain administration grids.
Is there some metadata I can nominate to get this working?
While its typically great that the preview picks up the default view, I really want a specific view for the preview on certain administration grids.
Is there some metadata I can nominate to get this working?
Looks like there were no options for this… so added one:
Update
Changed attribute name to previewWebskin
If you get the head of p700
you can now add webtop specific grid previews like so…
./webskins/bobBook/webtopBody.cfm for the webtop grid view
<cfsetting enablecfoutputonly="true">
<!--- @@displayname: Book List Webtop Body --->
<!--- import tag libraries --->
<cfimport taglib="/farcry/core/tags/formtools" prefix="ft" />
<ft:objectadmin
typename="bobBookList"
title="Book Lists"
columnList="title,schoolID,datetimelastUpdated"
lFilterFields="title,schoolID"
sqlorderby="datetimelastUpdated desc"
previewWebskin="webtopPreview" />
<cfsetting enablecfoutputonly="false">
./webskins/bobBook/webtopPreview.cfm for the preview itself
<cfsetting enablecfoutputonly="true">
<!--- @@displayname: Book List Webtop Preview --->
<!--- tag libraries --->
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin">
<!--- Remove the Farcry Tray --->
<cfset request.bHideContextMenu = true />
<!---
// preview
------------------------------------------------------------------>
<skin:view stobject="#stobj#" webskin="webtopHeaderModal" />
<cfoutput>
<h2>Book List Preview</h2>
<cfloop from="1" to="#arrayLen(stobj.aBooks)#" index="i">
<skin:view typename="bobBook" objectid="#stobj.aBooks[i]#" webskin="librarySelected">
</cfloop>
</cfoutput>
<skin:view stobject="#stobj#" webskin="webtopFooterModal" />
<cfsetting enablecfoutputonly="false">