I'm trying tocreatea gallerywhereforeachimage theremust besome text. I changedthemediatypecalled"File". I put in an extra text-field. Itlooks like this.
Myfirst problem isthat when Iwant to uploadimages to afolder in the media, it does not show the text field.
When i Richt-click to create an images and choose the Media Type "File" it works fine.
The easiestfor the userwill beif they canupload multipleimages at onceandthen afterwardswritesome text foreach image.Is it possible?
My next problem is in the xslt file. When I fetch the pictures froma folderthenit only showthe imagesthat do not havetext field with.Soit fails toretrievethe images with a text field. Why is that?
Here is my xslt:
<xsl:choose> <xsl:when test="$currentPage/pickAFolder!=''"> <xsl:variable name="images" select="$currentPage/pickAFolder"/> <xsl:variable name="mediaItems" select="umbraco.library:GetMedia($images, true())/Image"/> <!-- Outer wrapper for presentation only, this can be anything you like --> <div id="banner-fade"> <!-- start Basic Jquery Slider --> <ul class="bjqs"> <xsl:for-each select="$mediaItems"> <xsl:variable name="picFile" select="umbracoFile"/> <li> <xsl:element name="img"> <xsl:attribute name="src"> <xsl:value-of select="./umbracoFile"/> </xsl:attribute> <xsl:attribute name="width"> <xsl:value-of select="195"/> </xsl:attribute> </xsl:element> <div style="width:195px;overflow:hidden;position:absolute;background:red;display:block;margin-top:-50px;height:30px;"><xsl:value-of select="./@nodeName"/></div>jjjjjjgggg </li> </xsl:for-each> </ul> </div> </xsl:when> <xsl:otherwise> No Image found </xsl:otherwise> </xsl:choose>
If you choose to click on the green upload icon, when you're on a folder then you should be able to bulk-upload images (and other files as well) without much trouble.
If you create an image item manually make sure you choose the "Image" type and not the File type, which you seem to have chosen judging from the screendump above.
The property alias of the Upload field (umbracoFile) is the same for "File" and "Image", which I suspect is the cause of some confusion perhaps?
Jan, I have a gallery, too, but my issue is slightly different.
When I click the upload button, I would like the images that are created to be of the "GalleryImage" type, but everywhere else that the upload button is used I would like the images created to be of the default image type.
Do you know how to do that? Or, at least where to look?
mediatype problem in gallery
Hi
I'm trying to create a gallery where for each image there must be some text.
I changed the media type called "File". I put in an extra text-field. It looks like this.
My first problem is that when I want to upload images to a folder in the media, it does not show the text field.
When i Richt-click to create an images and choose the Media Type "File" it works fine.
The easiest for the user will be if they can upload multiple images at once and then afterwards write some text for each image. Is it possible?
My next problem is in the xslt file.
When I fetch the pictures from a folder then it only show the images that do not have text field with. So it fails to retrieve the images with a text field. Why is that?
Here is my xslt:
Hope you can help me :-)
Thanks
Hi Kate
If you choose to click on the green upload icon, when you're on a folder then you should be able to bulk-upload images (and other files as well) without much trouble.
If you create an image item manually make sure you choose the "Image" type and not the File type, which you seem to have chosen judging from the screendump above.
The property alias of the Upload field (umbracoFile) is the same for "File" and "Image", which I suspect is the cause of some confusion perhaps?
Hope this helps.
/Jan
Hi Jan
Thanks for your help. It works :-)
/Kate
Jan, I have a gallery, too, but my issue is slightly different.
When I click the upload button, I would like the images that are created to be of the "GalleryImage" type, but everywhere else that the upload button is used I would like the images created to be of the default image type.
Do you know how to do that? Or, at least where to look?
is working on a reply...