Hi naked Toast!

Did you see my comment at Tronds blog post?

You can do something like this (dmnews/displayTeaserStandard.cfm):

<!--- import taglib --->
<cfimport taglib="/farcry/core/tags/webskin" prefix="skin">
<cfimport taglib="/farcry/core/tags/widgets" prefix="widge">

    <cfif IsValid("UUID", stObj.teaserImage)>
   
        <skin:buildLink objectid="#stObj.objectID#" class="newsImage">
            <widge:imageDisplay objectid="#stObj.teaserImage#" 
alt="#stObj.title#" ImageSize="croppedThumb" bFailToTitle="false">
        </skin:buildlink>
   
    </cfif>

Or like this:
<cfif IsValid("UUID", stObj.teaserImage)>

    <cfset o = CreateObject("component", 
application.stcoapi.dmImage.packagepath) />
    <cfset stImage = o.getData(objectID=#stObj.teaserImage#) />
 
    <cfoutput>
    <img src="#stImage.thumbnailImage#" alt="#stImage.alt#" />
    </cfoutput>

</cfif>


Jørgen~


nakedToast Studios skrev:
> Hi Developers!
>
> This question was asked several times before, but I didn't find a
> working solution, sorry.
>
> I want the displayTeaserStandard.cfm of the dmNews-Type to display the
> Pic I loaded up as a Teaser-Image.
>
> when I dump the stObj.teaserImage, I get an UUID. If I call the UUID
> by conjurer?objectID=stObj.teaserImage I'm redirected to an HTML with
> the original pic, its optimised version and its thumbnail.
>
> What I want is the path to the original pic (and perhaps later to its
> optimised version).
>
> I tried this 
> http://trond.ulseth.no/index.cfm/2006/11/15/FarCry-tip-displaying-teaser-images
> but it seems that this doesn't work with FarCry 4.
> Then I read this 
> http://groups.google.com/group/farcry-dev/browse_thread/thread/a993a24eb78814cc/7492a6894221f0f9
> , but didn't make it either (seems that getURLImagePath is seen as
> variable, not as function -- did I forget to import a lib?)!
>
>
> Perhaps one of you can kick my ass
> ... into the right direction, thanks!
> - max
> >
>
>
>   

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

Reply via email to