Copied to clipboard

Flag this post as spam?

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


  • wolulcmit 357 posts 693 karma points
    May 04, 2011 @ 00:10
    wolulcmit
    0

    best way to build a simple portfolio using multinode tree picker

    Hey there, 

    trying to seek some advice about how to best build a simple portfolio using the multinode tree picker. Multinode Tree pickers are such a great asset to Umbraco and when used in conjunction with Desktop Media Uploader, you can really piece together a portfolio site pretty quickly.

    I currently have:

     

    1. a MultiNode Tree Picker datatype which lets a user make an image collection from the media section, in theory so a user can create as many portfolio or portfolio sections as possible
    2. Two xslt's that render that out a navigation and one big 'selected' image
    3. Trouble is: I'd like to be able to hit these portfolio images by url, can sort of achieve this by using umbraco.library:RequestQueryString('mediaItemId')  to grab a media id from the URL which looks something like this for example: yoursite.com/portfolio?mediaId=1040. Which could then be taken further by using an IIS7 rewrite to make something slightly friendlier: yoursite.com/portfolio/1040 
    4. Trouble is, I'd love to have something even friendlier like /portfolio/Giraffe-mum-and-baby (for example)

     

  • wolulcmit 357 posts 693 karma points
    May 04, 2011 @ 00:20
    wolulcmit
    0

    Sorry if that post is a bit mish-mashed.

    I guess what I'm really asking is the best way to have friendlier urls for media nodes, in the case where you want to render a content node (multinodeTreePicker which contains a collection of images) at the same time as a media node by nameName or other field name rather than just by ID

    Hope that makes sense

    - Tim

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 04, 2011 @ 01:09
    Lee Kelleher
    0

    Hi Tim,

    Sounds like we need a GetMediaByName function in our XSLT extensions...

    We'll see what we can come up with.  Should be doable, as uQuery can do an XML instance of all media items.

    Cheers, Lee.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    May 04, 2011 @ 01:58
    Lee Kelleher
    0

    Hi Tim,

    Had a look at uQuery, there is already a method in there for "GetMediaByName" - it just wasn't in the XSLT extension for Media - which I've now added!

    If you want the latest bleeding-edge version, drop me an email tomorrow - I'll fire over an ad-hoc package.

    Cheers, Lee.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 04, 2011 @ 14:00
    Jeroen Breuer
    0

    Hello,

    Did you also have a look at the Digibiz Advanced Media Picker? You can do the same thing as with MNTP, but it has more options. Here is a quick video on how to use it: http://www.screenr.com/TEY

    Jeroen

  • wolulcmit 357 posts 693 karma points
    May 04, 2011 @ 18:49
    wolulcmit
    0

    Hey Jeroen,

    I'll definitley be using the DigiBiz picker whenever I use image crops, because of the fix you put in to avoid the double-save issue.
    as this was a simple example without any of that I wanted to use the uComponents treepicker... also in this situation it's a bit quicker to choose a whole bunch of media items with a few clicks.

    here's the code I ended up with for my selected image xslt:

    <xsl:param name="currentPage"/>
    <xsl:variable name="mediaName" select="umbraco.library:RequestQueryString('mediaItem')" />
    <xsl:variable name="mediaXML" select="ucomponents.media:GetMediaByName($mediaName)" />
        
    <xsl:template match="/">
    <img id="selected-image">
    <xsl:choose>
        <xsl:when test="$mediaXML/umbracoWidth &lt; $mediaXML/umbracoHeight">
            <xsl:attribute name="src">/ImageGen.ashx?image=<xsl:value-of select="$mediaXML/umbracoFile" />&amp;height=663&amp;format=jpeg&amp;compression=90</xsl:attribute>
        </xsl:when>
        <xsl:otherwise>
            <xsl:attribute name="src">/ImageGen.ashx?image=<xsl:value-of select="$mediaXML/umbracoFile" />&amp;width=663&amp;format=jpeg&amp;compression=90</xsl:attribute>
        </xsl:otherwise>
    </xsl:choose>
    <xsl:attribute name="alt"><xsl:value-of select="$mediaXML/@nodeName" /></xsl:attribute>
    </img>
    </xsl:template>
  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 08:46
    Jatin Gadhiya
    0

    hello there, I want to create a filterable portfolio/Gallery...can you please help me......???

    and i was some try like...(http://www.diplo.co.uk/blog/2011/4/8/creating-a-simple-image-gallery-in-umbraco.aspx)

    first of all create Document type(e.g.. Name:-Album) and also create album master page.... second one create XSLT file and added some code... and after added macro and import macro in album master page... and after added some images in media folder.... and after create content... choose the folder... and now display all images proper...

    but i want to not display all images...i want to filterable like a portfolio...

    thanks in advance..

    I hope your reponse....

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 08, 2014 @ 09:02
    Jeroen Breuer
    0

    Hello,

    Have a look at the following examples:

    DAMP Gallery

    Hybrid Framework

    Jeroen

  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 11:35
    Jatin Gadhiya
    0

    hello jeroen give me examples of filterable portfolio/gallery using macro(XLST Code)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 08, 2014 @ 11:40
    Jeroen Breuer
    0

    If you use DAMP you can try the DAMP 2.5 samples package. That has an xslt example: http://www.screenr.com/gz0s

    Jeroen

  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 11:59
    Jatin Gadhiya
    0

    hello jeroen

    i want to same as type filtering........

    http://umbraco.com/why-umbraco/case-studies#all

    http://www.bluegrassdigital.com/portfolio/

    see this link.....

    thank for reply asap

  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 12:17
    Jatin Gadhiya
    0

    and i was load your DAMP package...this error gave me..

    Could not load file or assembly 'DigibizAdvancedMediaPicker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 08, 2014 @ 12:38
    Jeroen Breuer
    0

    Hello,

    What version of Umbraco are you using?

    Sorry I don't have an example with type filtering.

    Jeroen

  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 12:42
    Jatin Gadhiya
    0

    my is Umbraco v6.1.6 (Assembly version: 1.0.5021.24867)

  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 12:51
    Jatin Gadhiya
    0

    ok dont mine but one thing is a:-

    my tree is media part

    Media --php(image of php) --asp.net(iamge of asp.net) --css(image of css) --javascript(image of javascript)

    this four type of catagries in my umbraco project.. then i want to not display all images in portfolio section..but include in filter section.. like

    below all are the link then i click on all link so display all images and i click on php so only display me php images but remind disply in same page....

    all php asp.net css javascritpt


    -------------------this section----------------------- ---------------------display-------------------------- ---------------------images---------------------------

    so what about this work can be complete in umbarco...because i am new in this CMS

  • Jatin Gadhiya 11 posts 31 karma points
    Jan 08, 2014 @ 13:34
    Jatin Gadhiya
    0

    hello sir give me logic of filter gallary images in Umbraco

Please Sign in or register to post replies

Write your reply to:

Draft