Apologies, <!--- ./packages/types/extendedDmHtml.cfc ---> should read <!--- ./packages/types/DmHtml.cfc --->
On Sun, Oct 23, 2011 at 9:48 AM, Leigh Ellis <[email protected]> wrote: > I have given this a go: > > <!--- ./packages/types/extendedDmHtml.cfc ---> > <cfcomponent name="DmHtml" extends="farcry.core.packages.types.dmHtml" > output="false" displayname="HTML Page"> > <cfproperty name="archive_Date" type="string" default="" hint="Archive > Date." ftSeq > ="30" ftwizardStep="Categorisation" ftLabel="Archive" ftValidation= > "required" /> > <cfproperty name="outofDate" type="string" default="" hint="Out of Date" > ftSeq= > "40" ftwizardStep="Categorisation" ftLabel="Out of Date" > ftValidation="required" /> > </cfcomponent> > > This change has the result pictured in the attachment. Basically, the page > title is assigned the objectID and cannot be edited. Is anyone able to offer > any suggestions on how to fix this? > > > > > On Sun, Oct 23, 2011 at 3:45 AM, Justin Carter > <[email protected]>wrote: > >> If you're just adding additional properties to dmHTML, then when you >> extend it in your project you should still call the file dmHTML.cfc. >> If you give it a different file name then it's like you're using >> dmHTML as a base class to create a different content type, and that's >> probably not the behaviour you're after here. >> >> So the file name and path should be something like: /farcry/projects/ >> <projectname>/packages/types/dmHTML.cfc >> >> cheers, >> Justin >> >> >> On Oct 23, 6:48 am, Boon <[email protected]> wrote: >> > Hi there >> > >> > I ended up trying this... >> > >> > <!--- ./packages/types/extendedDmHtml.cfc ---> >> > >> > <cfcomponent name="profiles" >> > extends="farcry.core.packages.types.dmHtml" >> > output="false" displayname="extended dmHtml"> >> > >> > <cfproperty name="Archive_Date_" type="string" default="" >> > hint="Archive Date." ftSeq >> > ="15" ftwizardStep="Body" ftFieldset="Relationships" ftLabel="Archive" >> > ftValidation= >> > "required" /> >> > >> > <cfproperty name="OutofDate" type="string" default="" hint="Out of >> > Date" ftSeq= >> > "16" ftwizardStep="Body" ftFieldset="Relationships" ftLabel="Out of >> > Date" >> > ftValidation="required" /> >> > >> > </cfcomponent> >> > >> > Using FC 6.1, when this is deployed, and you go to edit anything in >> > the site tree, the "Title" of the page becomes (1) an ObjectID and (2) >> > uneditable (it no longer appears as a form field, but as standard HTML >> > text). What is more, it does this for all Projects which you may >> > have. >> > >> > Am I doing something incorrectly, or is FC not intended to extend core >> > types such as dmHTML like this to incorporate enhancements to the core >> > types in the standard work flow like this? >> > >> > On Oct 16, 11:34 pm, Blair McKenzie <[email protected]> wrote: >> > >> > >> > >> > >> > >> > >> > >> > > That should be enough. Make sure you have deployed the new properties >> in >> > > Admin -> Developer Utilities -> Types, and those fields should appear >> when >> > > editing the content. >> > >> > > Blair >> > >> > > On Mon, Oct 17, 2011 at 12:47 AM, Boon <[email protected]> wrote: >> > > > Sorry, "farcry.core.packages.types.versions" below was meant to say >> > > > "farcry.core.packages.types.dmHtml", and the tags would be closed >> > > > properly too. >> > >> > > > On Oct 16, 2:43 pm, Leigh Ellis <[email protected]> wrote: >> > > > > Thanks Blair >> > >> > > > > If did the following, are you able to suggst what else would I >> need to do >> > > > to >> > > > > integrate these fields into the standard FarCry (Site Tab) process >> to >> > > > edit >> > > > > webpages in the Site Tree please? >> > >> > > > > --------------- >> > >> > > > > <!--- ./packages/types/extendedDmHtml.cfc ---> >> > >> > > > > <cfcomponent name="profiles" >> > > > extends="*farcry.core.packages.types.dmHtml*" >> > > > > output="false" displayname="extended dmHtml"> >> > >> > > > > <cfproperty name="name" type="string" default="" hint="Archive >> Date." >> > > > ftSeq >> > > > > ="15" ftFieldset="Body" ftWizardStep="Body" ftLabel="Archive" >> > > > ftValidation= >> > > > > "required" /> >> > >> > > > > <cfproperty name="name" type="string" default="" hint="Out of >> Date" >> > > > ftSeq= >> > > > > "16" ftFieldset="Body" ftWizardStep="Body" ftLabel="Out of Date" >> > > > > ftValidation="required" /> >> > >> > > > > </cfcomponent> >> > >> > > > > ----------------------- >> > >> > > > > On Sat, Oct 15, 2011 at 8:04 AM, Blair McKenzie <[email protected] >> > >> > > > wrote: >> > > > > > You can extend that component in your project's /packages/types >> > > > directory >> > > > > > to add whatever properties you need. Try working through the >> training >> > > > > > course < >> https://farcry.jira.com/wiki/display/FCDEV60/Book+of+FarCry>, >> > > > that >> > > > > > will get you pretty far. >> > >> > > > > > Blair >> > >> > > > > > On Sat, Oct 15, 2011 at 4:42 PM, Boon <[email protected]> >> wrote: >> > >> > > > > >> Hi >> > >> > > > > >> I am looking to add fields (such as text/dates) to the core >> dmHtml >> > > > > >> content type. >> > >> > > > > >> I can see that you could add something like >> > >> > > > > >> "<cfproperty >> > > > > >> name="nynewField" type="longchar" hint="dmHTML extra >> field" >> > > > > >> required="no" default="" >> > > > > >> ftSeq="7" ftwizardStep="Start" ftFieldset="General >> Details" >> > > > > >> ftlabel="Extra Info" >> > > > > >> ftHint="extra field hint." >> > > > > >> ftLimit="100" />" >> > > > > >> to the dmHtml.cfc definition file located at >> \core\packages\types. >> > > > > >> This is so that the field is added to the form used to add/edit >> pages >> > > > > >> in Webtop in the Site Tab. >> > >> > > > > >> I understand that it is not recommended practice, but I cannot >> see >> > > > > >> another way to do this. >> > >> > > > > >> Is anyone able to point me in the right direction? >> > >> > > > > >> -- >> > > > > >> You received this message cos you are subscribed to >> "farcry-dev" >> > > > Google >> > > > > >> group. >> > > > > >> To post, email: [email protected] >> > > > > >> To unsubscribe, email: [email protected] >> > > > > >> For more options:http://groups.google.com/group/farcry-dev >> > > > > >> -------------------------------- >> > > > > >> Follow us on Twitter:http://twitter.com/farcry >> > >> > > > > > -- >> > > > > > You received this message cos you are subscribed to "farcry-dev" >> Google >> > > > > > group. >> > > > > > To post, email: [email protected] >> > > > > > To unsubscribe, email: [email protected] >> > > > > > For more options:http://groups.google.com/group/farcry-dev >> > > > > > -------------------------------- >> > > > > > Follow us on Twitter:http://twitter.com/farcry >> > >> > > > -- >> > > > You received this message cos you are subscribed to "farcry-dev" >> Google >> > > > group. >> > > > To post, email: [email protected] >> > > > To unsubscribe, email: [email protected] >> > > > For more options:http://groups.google.com/group/farcry-dev >> > > > -------------------------------- >> > > > Follow us on Twitter:http://twitter.com/farcry >> >> -- >> You received this message cos you are subscribed to "farcry-dev" Google >> group. >> To post, email: [email protected] >> To unsubscribe, email: [email protected] >> For more options: http://groups.google.com/group/farcry-dev >> -------------------------------- >> Follow us on Twitter: http://twitter.com/farcry >> > > -- You received this message cos you are subscribed to "farcry-dev" Google group. To post, email: [email protected] To unsubscribe, email: [email protected] For more options: http://groups.google.com/group/farcry-dev -------------------------------- Follow us on Twitter: http://twitter.com/farcry
