I just copied a snippet out of one of our content types:

<cfproperty ftSeq="23" ftFieldset="User Content" ftLabel="Upload your pix"
            name="aImages" type="array"
            ftType="arrayupload" ftJoin="userContentImage"
ftFileProperty="sourceImage" ftView="tiled"
ftListWebskin="librarySelectedTile" ftAllowSelect="false"
ftAllowRemoveAll="false" ftRemoveType="delete" ftAllowEdit="true"
ftEditableProperties="title" ftTileWidth="160" ftTileHeight="160"
            ftLabelAlignment="block"
            ftHint="You can add as many images (gifs & jpegs) as you like
for a gallery with your listing. Your first pic is the main one so choose
carefully. Click the Upload button to upload your images." />

The related content type "userContentImage" just extends dmImage. Here is a
quick rundown of the attributes used:
- ftJoin - the related image content type
- ftFileProperty - the property on the related content type that should be
updated with the image path
- ftView - tiled or list (the default)
- ftTileWidth and ftTileHeight - if ftView="tiled", then these are the size
of the tiles. they should be chosen to fit the thumbnail from the related
content type, with a little extra space for edit links
- ftListWebskin - the webskin to use for each uploaded item.
librarySelectedTile is a dmImage webskin in core, so any content type that
extends it will have it
- ftAllowSelect - same as the array formtool, set whether a user can choose
existing images from the database
- ftAllowRemoveAll - same as array formtool, set whether a user can remove
all uploaded images
- ftRemoveType - same as array formtool, set whether "remove" deletes the
related content, or simply unlinks it from the array
- ftAllowEdit - same as array formtool, set whether user can edit related
content type
- ftEditableProperties - set the properties on the related content type
that the user can edit (if you set ftAllowEdit to true and don't set this
attribute, the user will see the normal webtop edit form)

Blair


On Sun, Jul 1, 2012 at 2:59 AM, Marco van den Oever <
[email protected]> wrote:

> Emmm i think i really need some more help with this :( I'll wait for your
> details on Monday, thanks!
>
> Op zaterdag 30 juni 2012 12:46:34 UTC+2 schreef Marco van den Oever het
> volgende:
>
>> That sounds awesome, I'll go and check it out :)
>>
>> Op zaterdag 30 juni 2012 12:32:32 UTC+2 schreef Blair McK het volgende:
>>>
>>> You want the arrayupload formtool in core. I'm not surprised you don't
>>> know about it, since we haven't really talked about it. But is an awesome
>>> piece of work, written for exactly your situation. It provides a UI for
>>> uploading sets of images, invisibly creating and attaching dmImage objects
>>> (or another specified content type), and the option to then edit
>>> developer-chosen properties of each image. Take a look and see if you can
>>> work it out based on the properties. If you have trouble, email the list
>>> and I'll try to put together a better explanation on Monday.
>>>
>>> Blair
>>>
>>> On Sat, Jun 30, 2012 at 8:26 PM, Marco van den Oever <
>>> [email protected]> wrote:
>>>
>>>> Hi all,
>>>>
>>>> I need to setup something that will allow the website owner to upload a
>>>> max of 25 images and then show those images through greybox in the (custom)
>>>> related news item.
>>>>
>>>> So creating up to 25 images fields in the news type seems an ugly
>>>> solution, a sort of bulk upload solution seems better but then you lose the
>>>> ability to give each image a own title / short description.
>>>>
>>>> How would you do this with farcry?
>>>>
>>>> --
>>>> You received this message cos you are subscribed to "farcry-dev" Google
>>>> group.
>>>> To post, email: [email protected]
>>>> To unsubscribe, email: 
>>>> farcry-dev+unsubscribe@**googlegroups.com<farcry-dev%[email protected]>
>>>> For more options: 
>>>> http://groups.google.com/**group/farcry-dev<http://groups.google.com/group/farcry-dev>
>>>> ------------------------------**--
>>>> Follow us on Twitter: http://twitter.com/farcry
>>>
>>>
>>>  --
> 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
>

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