Michelle, did you find the answers in the documentation?
On May 7, 11:26 pm, Blair McKenzie <[email protected]> wrote:
> Michelle, it sounds like you're missing a few pieces about how FarCry works.
> Have you gone through the Developer Jump Start
> course<http://docs.farcrycms.org/display/FCDEV50/Book+of+FarCry>?
> It should cover most of what you need.
>
> On Fri, May 8, 2009 at 2:55 AM, Michelle
> <[email protected]>wrote:
>
>
>
> > Okay - I have it figured out. I could do it one of 2 ways: 1) Create
> > a dmImage.xml file and add it to project\customadmin and add
> > dmImage.cfm to project\customadmin\customlists. This will create a
> > custom content type. Then add dmImage.cfc to project\packages\types
> > along with the _dmImage folder that contains delete.cfm, display.cfm,
> > and edit.cfm. 2) This is my preferred method because I do not want to
> > create a custom content type, but add to the already existing
> > dmImage.cfc: Add all the new columns first to the database (Else as
> > you can see above - it will attempt to load the component, fail, and
> > load the core component instead - thanks Blair). Go in to Farcry ->
> > admin -> coappi mgmt to make sure the table does not have any
> > conflicts. Go to Media Library Image and confirm that your fields are
> > in there.
>
> > Thanks to all for the help. Now I will modify the display page
> > Standard file found in the Image gallery folder to add my new fields
> > to the site.
>
> > btw - I am not adding the reply to this message board multiple times
> > (the thread is freaking on me) - don't know if it is because I am in
> > FF.
>
> > On May 6, 8:14 pm, Blair McKenzie <[email protected]> wrote:
> > > Just to clarify: how do you know that FarCry is still using the core
> > dmImage
> > > file? As Tomek says, the definitive check is to check
> > > application.stCOAPI.dmImage.packagepath.
>
> > > Another possible problem is if your component has a compile time error,
> > e.g.
> > > a syntax error. In that case FarCry will attempt to load your component,
> > > fail, and load the core component instead. Are you able to instantiate
> > your
> > > component manually?
>
> > > 2009/5/7 Michelle <[email protected]>
>
> > > > Thanks for the responses.
> > > > Marco - I do have dmimage.cfm locally in my project: project/
> > > > customadmin/customlists/dmimage.cfm
> > > > The code is out of the box: <!--- import tag libraries --->
> > > > <cfimport taglib="/farcry/core/tags/admin/" prefix="admin" />
> > > > <cfimport taglib="/farcry/core/tags/formtools" prefix="ft" />
> > > > <!--- set up page header --->
> > > > <admin:header title="Image Admin" />
> > > > <ft:objectadmin
> > > > typename="dmImage"
> > > > permissionset="news"
> > > > title="#application.adminBundle
> > > > [session.dmProfile.locale].MediaLibraryImageAdministration#"
> > > > columnList="title,datetimelastUpdated,status,ThumbnailImage"
> > > > sortableColumns="title,datetimelastUpdated,status"
> > > > lFilterFields="title"
> > > > sqlorderby="datetimelastUpdated asc" />
> > > > <admin:footer />
>
> > > > And I think the customadmin.xml is pointing correctly:
> > > > <?xml version="1.0" encoding="utf-8"?>
> > > > <!-- Sample webtop XML config; remove comments to activate -->
> > > > <!--
> > > > <webtop>
> > > > <section id="mynewtab" permission="MainNavAdminTab"
> > label="Tabatha">
> > > > <subsection id="mynewtabsection"
> > > > permission="MainNavAdminTab"
> > > > sidebar="custom/sidebar.cfm" content="inc/content_overview.html"
> > > > label="Tab Subsection">
> > > > <menu label="Sidebar Menu">
> > > > <menuitem label="Menu Item 1"
> > > > link="/admin/customadmin.cfm?
> > > > module=farcryblog/listblogpost.cfm" />
> > > > <menuitem label="Menu Item 2"
> > > > link="/admin/customadmin.cfm?
> > > > module=farcryblog/listblogcomment.cfm" />
> > > > </menu>
> > > > </subsection>
> > > > </section>
> > > > </webtop>
> > > > -->
>
> > > > Tomek: I added the dmImage on the end and did an update app ans still
> > > > no change.<cfcomponent extends="farcry.core.packages.types.dmImage"
> > > > displayname="Image" hint="Image Media" bUseInTree="1">
> > > > You are right - I am only trying to extend the base components to
> > > > include more fields to describe the image. I realize that I will have
> > > > to add columns to SQL once it points correctly.
>
> > > > This should be very simple to add a custom field to dmImage. Any
> > > > other thoughts?
>
> > > > On May 6, 12:18 pm, Tomek Kott <[email protected]> wrote:
> > > > > wait a minute, I thought if you were trying to replace the base
> > > > > definition of a type with your own, but you weren't changing
> > > > > everything (i.e., still use some functions in base type), then you
> > > > > need:
>
> > > > > <cfcomponent extends="farcry.core.packages.types.dmImage"
> > > > > displayname="Image" hint="Image Media" bUseInTree="1">
>
> > > > > i.e., you extend the base component, not the generalized component.
>
> > > > > If you're completely rewriting dmImage, then this doesn't apply, and
> > > > > your solution instead might be to go look for any static calls of the
> > > > > media library to dmImage (it might just be hardcoded to look for the
> > > > > core version).
>
> > > > > Good luck,
>
> > > > > Tomek
>
> > > > > On Wed, May 6, 2009 at 12:55 PM, Marco van den Oever
>
> > > > > <[email protected]> wrote:
>
> > > > > > And your customadmin.xml is also present and referring correctly?
>
> > > > > > On May 6, 6:51 pm, Marco van den Oever <[email protected]
>
> > > > > > wrote:
> > > > > >> Don't know for sure but is it possible that it works when you also
> > > > > >> insert:
>
> > > > > >> project/customadmin/customlists/dmimage.cfm
>
> > > > > >> On May 6, 6:39 pm, Michelle <[email protected]>
> > wrote:
>
> > > > > >> > Yes and Yes. I changed the default dmImage.cfc (located in my
> > > > > >> > projects \packages\types) from this <cfcomponent extends="types"
> > > > > >> > displayname="Image" hint="Image Media" bUseInTree="1"> to this:
> > > > > >> > <cfcomponent extends="farcry.core.packages.types.types"
> > > > > >> > displayname="Image" hint="Image Media" bUseInTree="1">. I
> > update
> > > > the
> > > > > >> > app with every change. And the Medial Library is still looking
> > in
> > > > > >> > \farcry\core\packages\types. Any other ideas, please?
>
> > > > > >> > On May 5, 6:49 pm, Blair McKenzie <[email protected]> wrote:
>
> > > > > >> > > Did you remember to do an updateapp after the changes?
>
> > > > > >> > > Blair
>
> > > > > >> > > On Wed, May 6, 2009 at 6:17 AM, Michelle <
> > > > [email protected]>wrote:
>
> > > > > >> > > > Hi - I am trying to extend the Media Library images to
> > include
> > > > more
> > > > > >> > > > fields such as image license, purchase date, etc to make the
> > > > Image
> > > > > >> > > > Gallery more robust.
> > > > > >> > > > I have done this by copying dmImage.cfc and the _dmImage
> > folder
> > > > to
> > > > > >> > > > packages/types . I have made my additions and changes to
> > > > dmImage.cfc,
> > > > > >> > > > but the Media Library is still calling the core dmImage
> > file.
> > > > What
> > > > > >> > > > can I do to call my modified file? And do I need to do
> > anything
> > > > or
> > > > > >> > > > copy any other files? Note I do not want to do this in
> > the
> > > > FarCry
> > > > > >> > > > folder because it will affect the other projects. Thanks.
>
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---