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
-~----------~----~----~----~------~----~------~--~---

Reply via email to