for development, I would recommend getting cfeclipse and then downloading the farcry library at http://docs.farcrycms.org/display/FCCORE/Auto-Documentation. This way, when you start typing the tag, you get autopopup options. Lifesaver!
Otherwise your best bet is to start by looking at the Farcry 4 docs in the wiki. Althought its a previous version, it helps you get an idea of the possibilities. Then you just look up the equivalent file in FC5.1 and write away. For related content, <skin:relatedcontent > is what you're looking for. Take a look in (i believe) /farcry/core/tags/webskin/relatedcontent.cfm for the available options. Tomek On Tue, Feb 24, 2009 at 7:51 PM, AJ Mercer <[email protected]> wrote: > you are on the right track with the skin:view tag > > This is some code I use for a teaser image > <cfif len(stobj.teaserImage)> > <cfoutput><span class="thumbnail"></cfoutput> > <skin:buildLink objectID="#stobj.objectid#"> > <skin:view objectid="#stobj.teaserImage#" typename="dmImage" > template="displayThumbnailImage" /> > </skin:buildLink> > <cfoutput></span></cfoutput> > </cfif> > > In webskins/dmImage is a file called displayThumbnailImage.cfm > which has the code for rendering the image > > > You create webskins with common names for each type in webskins, eg > displayTeaser.cfm > If the HTML is then same for all types, you can just put one file in the > webskin type directory and farcry will use that if it can not find the file > in the <typename> folder. > > For related items, that may have different types, I am pretty sure you can > get away with not passing typename to skin:view and Farcry will work it out. > > > I poke arrond the code used by farcryCMC or nearCry to see how they do > stuff > > Oh look at this! > I was going to say Farcry Docs is a good reference and found this > http://docs.farcrycms.org/display/FCDEV40/tags+webskin+relatedcontent > > > > > > 2009/2/25 gdhurst <[email protected]> > > >> Events seem to have this nice property in the Related Content section >> of the event editing wizard that allows you to associate one or more >> documents that exist in the document library with the event that is >> being created. >> >> However, none of the webskins seem to display this information. I >> realize that I have to add some code to the teaser or body webskins >> (either in the CMS plugin area or in my own project), but the code for >> this display seems like it might be complex since we are not just >> accessing a simple property, but an array of items which are somewhat >> distantly linked through three tables in the database. >> >> Essentially, I need to just access the filenames of the documents in >> the dmFile table that are relationally linked through the >> dmEvent_aObjectIDs table to my event in the dmEvent table. Doing this >> in the syntax of farcry seems to be far beyond me at this point, so I >> need some code here. I'm not even sure where to look for examples of >> this. Even trying to grind through this in the obvious way seems too >> much at this point. Schematically, I would grab the object id of the >> event, use this object id to get all the associated file ids by >> querying the dmEvent_aObjectIDs table, and then finally look up all >> the filenames using the associated filed ids. Is this the right way, >> or is there a simpler way to do it? >> >> As long as we are talking about syntax, I have another question. Just >> where do I learn how to use all these libtag functions I keep running >> into, such as <skin:view...> or <grid:container...> and the like? Is >> there any documentation for these libtag libraries? >> >> gdhurst >> >> >> > > > -- > AJ Mercer > Web Log: http://webonix.net > > > Once you come to the realisation that everyone is crazy, > You will never be surprised or disappointed ever again. > AJM 2008 > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
