Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Jul 08, 2011 @ 01:14
    Bjarne Fyrstenborg
    0

    Umbraco 4.5.x and .NET 3.5

    Hi

    Seems to be a nice package.. is it possible to have a version which works with .NET 3.5 for 4.5x versions of Umbraco?

    Bjarne

  • aghy 129 posts 308 karma points
    Jul 08, 2011 @ 03:48
    aghy
    0

    Hi Bjarne,

    Check the project page, I've just uploaded a version for 4.5 .net3.5. I haven't fully tested this version I've just made it so any feedback would be fantastic.

    Hope you like it. Any questions just ask.
    Ben 

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Jul 08, 2011 @ 14:20
    Bjarne Fyrstenborg
    0

    Thanks for the version for .net 3.5 ... I've just installed it and will test the feature..

    I have noticed the package readme says: Once you have installed this datatype Create a new datatype of type ... I think it should be "Once you have installed this package.."

    Bjarne

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Jul 08, 2011 @ 15:52
    Bjarne Fyrstenborg
    0

    Is it possible to get the images in media picker with inline xslt?

    With a normal Media Picker as datatype I could get the image in my template with this code:

    <umbraco:Item runat="server" field="projectImage"
    xslt="concat('&lt;img src=&quot;', umbraco.library:GetMedia({0},'true')/umbracoFile, '&quot; /&gt;')" 
    xsltDisableEscaping="true" />

    Instead of adding multiple media pickers I like to use a package like this, which allow to add different numbers of images..

    Bjarne

  • aghy 129 posts 308 karma points
    Jul 08, 2011 @ 16:06
    aghy
    0

    Hi Bjarne,

    I'm sure it is possible to use inline xslt but it's probably much easier to create a new xslt file. You can loop through the Items with something like this: 

    <xsl:for-each select="$currentPage/cars/Items/Item">
      <xsl:sort select="./@sortId"/>
      <xsl:variable name="image" select="umbraco.library:GetMedia(./image, true)"/>
        <img src="{$image/umbracoFile}" alt="{./name}" />
    </xsl:for-each>

    In this example cars is the alias of the datatype on the document type. ./image is a property alias defined on the MultiType datatype.

     

    Ben

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Jul 08, 2011 @ 16:31
    Bjarne Fyrstenborg
    0

    Thanks.. it works great :)

    Sometime I think it's nice just to use inline xslt eg. just to insert an image, when it really doesn't need much xslt.. but with the xslt file there are more opportunities especielly, when you use the other properties too..

    I will probably use this package much more in the future :)

    Bjarne

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Jul 08, 2011 @ 16:41
    Bjarne Fyrstenborg
    0

    One more thing.

    Perhaps in some of the next versions of the package the Media Picker can be the Improved Media Picker, which is standard in the newer versions of Umbraco, where the user is allowed to upload images directly from the Media Picker datatype..

    Bjarne

  • aghy 129 posts 308 karma points
    Jul 08, 2011 @ 16:56
    aghy
    0

    Cool thanks,

    I have just done a simple test and it seems quite easy to do. Hopefully get something out over this weekend.

    Thanks
    Ben

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Jul 08, 2011 @ 23:49
    Bjarne Fyrstenborg
    0

    Sounds good :)

    Is it possible to translate the button: add, update, close ... to eg. Danish in the languages files?
    Would be more appropriate when using Danish in backend..

    Bjarne 

Please Sign in or register to post replies

Write your reply to:

Draft