Hi

I hope I can explain this clearly to get some assistance and
understanding of how customised types work, I have a custom admin in
farcry b220 that creates a news type object there are publish dates
associated with these and you can browse through the publications
using next and previous buttons then click on the object to edit,
which is great and works well, the problem is that when you edit an
item and publish it, it always go's to the date as is set up in the
customadmin/research/list.cfm and even if I set up the dates for
stCriteria.next and stCriteria.prev to increment by 1 day it always
reverts back to 7 days as if there is a default in the application
scope somewhere.  I have been told to use the edit.cfm page and pass
the date as a parameter in the plp tag, if any light can be shed here
would be fantastic.

Regards
MWheeler

list.cfm

<cfsetting enablecfoutputonly="yes">

<cfimport taglib="/farcry/farcry_core/tags/admin/" prefix="admin">
<!--- <cfimport taglib="/farcry/farcry_core/tags/farcry/" prefix="farcry"> --->
<cfimport taglib="/farcry/secure/tags/" prefix="farcry">

<!--- set up page header --->

<admin:header>

<!--- call generic admin with extrapolation of URL type --->

<!--- default search --->

<cfif not isdefined("form.searchText")>
                
<cfset stCriteria = structNew()>
<cfset stCriteria.filter = 'CONVERT(CHAR(10), publishDate, 103)' >
<cfset stCriteria.SEARCHTEXT =  lsdateformat(now(), 'DD/MM/YYYY')>
<cfset stCriteria.filterType =  'exactly'>

<cfset stCriteria.prev = lsdateformat(dateAdd('D', -1, now()),'DD/MM/YYYY')>
<cfset stCriteria.next = lsdateformat(dateAdd('D', 1, now()),'DD/MM/YYYY')>


<farcry:genericAdmin 
 permissionType="ResearchNote"
 admintype="psRN_Institutional" 
 metadata="True" 
 header="false" 
 typename="psRN_Institutional"
 criteria="#stCriteria#"
 >
<cfelse>
<farcry:genericAdmin 
 permissionType="ResearchNote"
 admintype="psRN_Institutional" 
 metadata="True" 
 header="false" 
 typename="psRN_Institutional"
 >
 
 <cfset stCriteria.SEARCHTEXT = form.searchText>
</cfif>



<!--- setup footer --->

<admin:footer>

<cfsetting enablecfoutputonly="no">

---
You are currently subscribed to farcry-dev as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to