Hi, great it works, although indeed there remain some questions. When i ad an image to a page with Associated Media / image, then when using the code:
<skin:view objectid="#stobj.SourceImage#" typename="dmImage" template="displaySourceImage" /> I get: Element SOURCEIMAGE is undefined in STOBJ. I assume SOURCEIMAGE would be the relation to the related content image, so don't understand why it isn't showed. Any idea's?? On Dec 11, 4:40 am, Helen <[EMAIL PROTECTED]> wrote: > Hi Marco and Chris.. > > Long time since I was back online I know, but many many thanks for > your responses, it is all working with your suggestions now :). I > still did the cfdump to try to see why my code didn’t work... > > When I couldn’t get the skin:view code to work, previously I tried: > > <cfoutput> > <img src="#application.url.webroot#/images/dmImage/ > #stObj.sourceImage#" width="#stObj.width#" height="#stobj.height#" > alt="#stobj.alt#" title="#stobj.alt#" /> > </cfoutput> > > I did a dump of this the image was where I though it should be, ie > “SOURCEIMAGE /images/dmImage/SourceImage/midstateSide3.jpg” > > Then after reading your posts I changed my code to > > <cfoutput> > <img src="#application.url.imageroot##stobj.sourceImage#" > width="#stObj.width#" height="#stobj.height#" alt="#stobj.alt#" > title="#stobj.alt#" /> > </cfoutput> > > the image displayed perfectly, it worked... the dumps however are > identical, but because I used the path of the images and didn’t use > “imageroot” in my first code sample it didn’t work. > > On another note, I still can’t understand why this code doesn’t work: > > <skin:view objectid="#stobj.SourceImage#" typename="dmImage" > template="displaySourceImage" /> > > I get the error “The OBJECTID argument passed to the getData function > is not of the type uuid. If the component name is specified as a type > of this argument, its possible that a definition file for the > component cannot be found or is not accessible.” > > That is, there is a file in farcry/core/dmImage/ > displaySourceImage.cfm, and if you have your displayTeaser.cfm > template in your own farcry/projects/sitename/dmImage directory > shouldn’t this work?.. I am curious what I am missing here.. so if > anyone stumbles upon it when doing something be sure to post. In the > mean time mine is working without using the skin:view.. code with your > help Marco and Chris so again many thanks, Helen. > > On Dec 6, 2:37 am, Marco van den Oever <[EMAIL PROTECTED]> > wrote: > > > It's indeed best to cfdump a lot in these situations, then you see > > what is missing or what is happening and have a better direction in > > what to do. I am using FC 5.0.2. > > > I see some difference in our code, don't know what is the way or not > > but it's working for me right now. > > > I have a project/webskin/dmImage/displayTeaserImage.cfm file: > > > <cfoutput> > > <img src="#application.url.imageroot##stobj.sourceImage#" > > alt="#stobj.alt#" title="#stobj.title#" /> > > </cfoutput> > > > And on the page where the image is needed: > > > <cfif len(stobj.teaserimage)> > > <p> > > <skin:view objectID="#stObj.teaserImage#" > > template="displayTeaserImage" /> > > </p> > > </cfif> > > > On that page also the <cfimport taglib="/farcry/core/tags/webskin" > > prefix="skin" /> is stated. > > > So try this, it might work for you also. > > > Cheers > > > On Dec 5, 3:35 pm, Sean Coyne <[EMAIL PROTECTED]> wrote: > > > > helen. instead of the skin:view tag try to cfdump stobj and see what > > > you get > > > > On Dec 4, 9:03 pm, Helen <[EMAIL PROTECTED]> wrote: > > > > > Hi All > > > > > Marco glad you got your code to work... > > > > I am still doing something wrong. I have a dmImage folder, a file > > > > called "displayTeaserImage.cfm" with the following: > > > > > <cfsetting enablecfoutputonly="true" /> > > > > <cfimport taglib="/farcry/core/tags/webskin" prefix="skin" /> > > > > <!--- @@displayname: Display Teaser Image ---> > > > > > <skin:view objectID="#stObj.teaserImage#" > > > > template="displayTeaserImage" /> > > > > > <cfsetting enablecfoutputonly="false" /> > > > > > When I try to use this with thehandpickedrulei am getting a message > > > > "element teaserImage in undefined in stobj." I looked in the dmImage > > > > database table and see it is using ThumbnailImage, i tried > > > > referenceing this but that didn't work - I know I am right of track > > > > here... I am missing a step, somewhere with thehandpickedrule.. > > > > anyone have any ideas? > > > > > Many thanks > > > > Helen > > > > > On Nov 27, 3:05 am, Marco van den Oever <[EMAIL PROTECTED]> > > > > wrote: > > > > > > Ok awesome, of course you can use the text editor to placeimages, but > > > > > can you say that the big advantage of using this method is that it > > > > > works with a library and therefore more suitable for projects that > > > > > need that, like projects for example for media or photographers? > > > > > > On Nov 26, 4:40 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote: > > > > > > > yup, usually just something like a len(stObj.aTeaserID) would do... > > > > > > > Tomek > > > > > > > On Wed, Nov 26, 2008 at 10:31 AM, Marco van den Oever < > > > > > > > [EMAIL PROTECTED]> wrote: > > > > > > > > Oh, and am i right you have to create your own <cfif statements on > > > > > > > your display page or the template, so when no teaser exists you > > > > > > > not > > > > > > > using the template and therefore not generating an error? > > > > > > > > On Nov 26, 4:28 pm, Marco van den Oever <[EMAIL PROTECTED]> > > > > > > > wrote: > > > > > > > > "Why is something so basic so hard to set up?" > > > > > > > > > Well to answer myself to that, because i am sometimes are a bit > > > > > > > > stubborn! > > > > > > > > > Both thanks for helping, works great now :) > > > > > > > > > And what about the related content, how do you include that? > > > > > > > > > On Nov 26, 3:48 pm, ""Jørgen M. Skogås"" <[EMAIL PROTECTED]> > > > > > > > > wrote: > > > > > > > > > > Sorry! Not the dmHtml folder, the dmImage folder. :) > > > > > > > > > > Den 26. nov.. 2008 kl. 15.46 skrev Jørgen M. Skogås: > > > > > > > > > > > Did you create the template (displayTeaserImage.cfm) in > > > > > > > > > > your project/ > > > > > > > > > > webskin/dmHtml folder? Remember to update the application > > > > > > > > > > scope > > > > > > > > > > (updateapp=1 in the URL) after you have made this > > > > > > > > > > file/template. > > > > > > > > > > > Jørgen~ > > > > > > > > > > > Den 26. nov.. 2008 kl. 15.38 skrev Marco van den Oever: > > > > > > > > > > >> Why is something so basic so hard to set up? > > > > > > > > > >> I selected a related content image, a teaser image, then > > > > > > > > > >> used you > > > > > > > > > >> examples (both) but it's just not working. > > > > > > > > > > >> When i use: > > > > > > > > > > >> <cfimport taglib="/farcry/core/tags/widgets" > > > > > > > > > >> prefix="widgets"> > > > > > > > > > > >> <widgets:imageDisplay objectid="#stObj.objectid#" > > > > > > > > > >> imageSize="original"> > > > > > > > > > > >> It does nothing > > > > > > > > > > >> When i use: > > > > > > > > > > >> <cfimport taglib="/farcry/core/tags/webskin" prefix="skin" > > > > > > > > > >> /> > > > > > > > > > > >> <skin:view objectID="#stObj.teaserImage#" > > > > > > > > > >> template="displayTeaserImage" /> > > > > > > > > > > >> I have a problem because i can't find the > > > > > > > > > >> displayTeaserImage > > > > > > > template > > > > > > > > > >> as it is not in the dmimage folder, not in core etc. > > > > > > > > > >> Also i really want to place a related content not teaser. > > > > > > > > > >> When i use > > > > > > > > > >> related content i see the AOBJECTIDS, shouldn't i be using > > > > > > > > > >> that > > > > > > > value > > > > > > > > > >> to relate to a image etc? When i try i get an error > > > > > > > > > >> "Complex object > > > > > > > > > >> types cannot be converted to simple values." Before diving > > > > > > > > > >> into > > > > > > > that, > > > > > > > > > >> is that the way? > > > > > > > > > > >> Ok so it's deprecated i see indeed in the imageDisplay.cfm: > > > > > > > > > > >> "widgets tag library is deprecated; please use formtools." > > > > > > > > > > >> So how can i use formtools to just show a related image or > > > > > > > > > >> teaserimage, i just want to show dynamicimageson my page, > > > > > > > > > >> when > > > > > > > > > >> there's no image just show nothing. > > > > > > > > > > >> Is this whole function not meant to be? So should i just > > > > > > > > > >> use the > > > > > > > text > > > > > > > > > >> editor to placeimages? > > > > > > > > > > >> Thanks > > > > > > > > > > >> On Nov 26, 2:01 pm, ""Jørgen M. Skogås"" <[EMAIL > > > > > > > > > >> PROTECTED]> wrote: > > > > > > > > > >>> It would be better to use the skin:view tag here. > > > > > > > > > > >>> 1. <cfimport taglib="/farcry/core/tags/webskin" > > > > > > > > > >>> prefix="skin" /> > > > > > > > > > >>> 2. Create template(s) in your webskin/dmImage folder, ie. > > > > > > > > > >>> displayTeaserImage.cfm > > > > > > > > > >>> 3. <skin:view objectID="#stObj.teaserImage#" > > > > > > > > > >>> template="displayTeaserImage" /> > > > > > > > > > > >>> Jørgen~ > > > > > > > > > > >>> Den 26. nov.. 2008 kl. 13.51 skrev Sean Coyne: > > > > > > > > > > >>>> its deprecated, but you can use the widgets tag library's > > > > > > > > > >>>> imageDisplay > > > > > > > > > >>>> tag: > > > > > > > > > > >>>> <cfimport taglib="/farcry/core/tags/widgets" > > > > > > > > > >>>> prefix="widgets"> > > > > > > > > > >>>> <widgets:imageDisplay objectid="#stObj.objectid#" > > > > > > > > > >>>> imageSize="original"> > > > > > > > > > > >>>> On Nov 25, 8:19 pm, Marco van den Oever > > > > > > > > > >>>> <[EMAIL PROTECTED]> > > > > > > > > > >>>> wrote: > > > > > > > > > >>>>> Anyone got a FC 5 working code example to display a > > > > > > > > > >>>>> related > > > > > > > > > >>>>> content > > > > > > > > > >>>>> image or teaser image, or reference to info? > > > > > > > > > > >>>>> On Nov 25, 9:24 pm, Marco van den Oever > > > > > > > > > >>>>> <[EMAIL PROTECTED]> > > > > > > > > > >>>>> wrote: > > > > > > > > > > >>>>>> Hi, did you find any solution, i am now on 5.0.2 but > > > > > > > > > >>>>>> can't > > > > > > > really > > > > > > > > > >>>>>> get > > > > > > > > > >>>>>> it to work also.... > > > > > > > > > > >>>>>> On Nov 11, 11:43 pm, Helen <[EMAIL PROTECTED]> wrote: > > > > > > > > > > >>>>>>> I know what you mean, I have stumbled accross other > > > > > > > > > >>>>>>> things in > > > > > > > > > >>>>>>> farcry > > > > > > > > > >>>>>>> that has really helped my understanding while trying > > > > > > > > > >>>>>>> to resolve > > > > > > > > > >>>>>>> something else.. So I agree "..spending ages.." is > > > > > > > > > >>>>>>> definately > > > > > > > > > >>>>>>> not > > > > > > > > > >>>>>>> time wasted! > > > > > > > > > > >>>>>>> On Nov 12, 8:13 am, Marco van > > ... > > read more » --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
