I have a db column called ReportTemplateName and when I use the following
code:
<widgets:typeadmincolumn columntype="evaluate" title="Template name"
value="#ReportTemplateName#" />
The output just gets generated as "-- fizzle --". I've checked the field and
there is actually data in there but i'm still getting this result. Any ideas
?
Blair McKenzie-2 wrote:
>
> Here is an expamle of one of my types:
>
> <cfset editobjectURL =
> "#application.url.farcry#/conjuror/invocation.cfm?objectid=##recordset.objectID[
> recordset.currentrow]##&typename=bmStepRecord">
>
> <widgets:typeadmin
> typename="bmStepRecord"
> permissionset="news"
> title="Manage Step Record"
> numPageDisplay="25"
> bFilterCategories=false
> orderby="steps"
> bdebug="0">
>
> <widgets:typeadmincolumn columntype="expression"
> title="#application.adminBundle[session.dmProfile.locale].select#"
> value="<input type=""checkbox"" class=""f-checkbox"" name=""objectid""
> value=""##recordset.objectid##"" onclick=""setRowBackground(this);"" />"
> style="text-align: center" />
> <widgets:typeadmincolumn columntype="evaluate"
> title="#application.adminBundle[session.dmProfile.locale].edit#"
> value="iif(
> stPermissions.iEdit eq 1,DE(iif(locked and lockedby neq
> '##session.dmSec.authentication.userlogin##_##session.dmSec.authentication.userDirectory##',DE('<span
> style=""color:red"">Locked</span>'),DE(' '))),DE('-'))"
> style="text-align: center" />
> <widgets:typeadmincolumn columntype="evaluate" title="Person"
> value="iif(stPermissions.iEdit eq 1,DE(iif(locked and lockedby neq
> '#session.dmSec.authentication.userlogin#_#session.dmSec.authentication.userDirectory#',DE('##replace(
> recordset.accountname[recordset.currentrow],'####','','all')##'),DE('
> ##replace(recordset.accountname[
> recordset.currentrow],'####','','all')## '))),DE('##replace(
> recordset.accountname[recordset.currentrow],'####','','all')##'))"
> style="text-align: left" orderby="accountname" />
> <widgets:typeadmincolumn columntype="evaluate" title="Record date"
> value="application.thisCalendar.i18nDateFormat('##recorddate##',
> session.dmProfile.locale,application.mediumF)" style="text-align: center"
> orderby="recordDate" />
> <widgets:typeadmincolumn columntype="evaluate" title="Steps"
> value="##recordset.steps[currentrow]##" style="text-align: center"
> orderby="steps" />
> <widgets:typeadmincolumn columntype="evaluate" title="Creation date"
> value="application.thisCalendar.i18nDateFormat('##datetimecreated##',
> session.dmProfile.locale,application.mediumF)" style="text-align: center"
> orderby="publishDate" />
> </widgets:typeadmin>
>
> Blair
>
> On 12/17/06, BridgetGrey <[EMAIL PROTECTED]> wrote:
>>
>>
>>
>>
>> Thanks Blair, figured it out from the link.
>>
>> Only problem i'm having now is displaying the data from the tables that
>> hold
>> my custom content from within the TypeAdmin buttons.
>>
>> Cheers!
>> Bridge x
>>
>>
>> Blair McKenzie-2 wrote:
>> >
>> > The basics of changing the typeadmin buttons/columns are
>> > here<
>> http://bugs.farcrycms.org:8080/confluence/display/FCDEV30/Custom+Types#CustomTypes-ChangingtheColumns
>> >.
>> > It is important to note that if you manually add columns, the default
>> > columns won't be added at all. You will need to manually reimplement
>> them.
>> >
>> > Blair
>> >
>> > On 12/14/06, BridgetGrey <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >>
>> >> Hi. Being fairly knew to Farcry (but have been coding in CF for 4+
>> years)
>> >> i'm
>> >> struggling a little to get my head around some of the custom admin
>> pages.
>> >> In
>> >> particular editing the custom types i've created. Any help you could
>> >> offer
>> >> here would be great !
>> >>
>> >> I have written a few custom types that I require to allow my users to
>> >> add/edit/delete content etc.
>> >>
>> >> The bit i'm stuck on is customizing the search interface from within
>> the
>> >> FC
>> >> administrator. I've search over the forums and couldn't quite find
>> what
>> I
>> >> was after.
>> >>
>> >> Below is my list.cfm located in the [app_name]/customadmin/outcomes
>> >> directory which displays a list of outcomes which my users will be
>> >> editing/creating. I've written custom PLP's which allow the user to
>> edit
>> >> these content items and that is working fine!
>> >>
>> >> <cfsetting enablecfoutputonly="yes">
>> >> <cfimport taglib="/farcry/farcry_core/tags/admin/"
>> >> prefix="admin">
>> >> <cfimport taglib="/farcry/farcry_core/tags/widgets/"
>> >> prefix="widgets">
>> >>
>> >> <!--- set up page header --->
>> >> <admin:header>
>> >>
>> >> <widgets:typeadmin
>> >> typename="outcomes"
>> >> title="Outcomes Administrator"
>> >> description="Outcomes Object"
>> >>
>> >>
>> >> handlerRoot="/#application.applicationname#/handlers"
>> >> metadata = "True"
>> >> permissionset="news"
>> >> >
>> >> </widgets:typeadmin>
>> >>
>> >> <!--- setup footer --->
>> >> <admin:footer>
>> >> <cfsetting enablecfoutputonly="no">
>> >>
>> >> Now, there are a few fields which I don't use (and don't want to be
>> >> displayed to my users) such as label for example, however there are
>> >> others
>> >> which i've created in my outcomes.cfc which I would like to be
>> displayed
>> >> on
>> >> that page (OutcomeName, OutcomeDescription etc). Would someone be able
>> to
>> >> steer me in the right direction on how to remove some of the "default"
>> >> content labels and add in my own.
>> >>
>> >> Cheers!
>> >> Bridge :)
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/Custom-Content-edit-labels-in-FC-Admin-tf2820604s621.html#a7872488
>> >> Sent from the FarCry - Dev mailing list archive at Nabble.com.
>> >>
>> >>
>> >> >
>> >>
>> >
>> >
>> > >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Custom-Content-edit-labels-in-FC-Admin-tf2820604s621.html#a7915375
>> Sent from the FarCry - Dev mailing list archive at Nabble.com.
>>
>>
>> >
>>
>
>
> >
>
--
View this message in context:
http://www.nabble.com/Custom-Content-edit-labels-in-FC-Admin-tf2820604s621.html#a7923353
Sent from the FarCry - Dev mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---