Copied to clipboard

Flag this post as spam?

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


  • Dominic Brown 91 posts 111 karma points
    Jul 04, 2011 @ 16:26
    Dominic Brown
    0

    Hi,

    I am trying to build a products page, the end users wants stacked images with related text next to each image (simple enough, i think) however, they want to be able to add new enteries themselves via the contents area.

    Is this possible?

    Thanks

  • Matt Bliss 176 posts 234 karma points c-trib
    Jul 04, 2011 @ 16:33
    Matt Bliss
    0

    Hi Dominic,

    If I have understood what you want to do correctly. You could do following:

    1. Add a Multi Node Tree Picker to your document type from the uComponents package. This would allow the user to select multiple images from the media section on a single document node.
    2. Add a property to the Image media item to contain your image description.
    3. Pull the media image and description into the product page using an XSLT macro.
    Matt
  • Dominic Brown 91 posts 111 karma points
    Jul 04, 2011 @ 16:38
    Dominic Brown
    0

    I'll give this a try thanks!

    Will it give the end user the means to enter more products themselves?

  • Dominic Brown 91 posts 111 karma points
    Jul 04, 2011 @ 16:51
    Dominic Brown
    0

    i've very caveman esk just madea page with rich text editor and put a table in, inserted pics and text adn then insert row for new products hehe

  • Matt Bliss 176 posts 234 karma points c-trib
    Jul 04, 2011 @ 16:56
    Matt Bliss
    0

    Hi,

    Maybe I've not understood correctly, did you want...

    1) multiple image/text pairs on a single product page, or

    2) multiple product pages each with their own image and a index page showing a list of product images/text pairs?

    My suggestion above was for 1) and on reading your reply I'm not sure now if you wanted to acheive 2)

    Matt

  • Dominic Brown 91 posts 111 karma points
    Jul 04, 2011 @ 17:06
    Dominic Brown
    0

    its on a single page, mulit images/text pairs. then i need to make it editable in the content area for the end user with the ablity to add more images/text pairs at will

  • Matt Bliss 176 posts 234 karma points c-trib
    Jul 04, 2011 @ 17:39
    Matt Bliss
    0

    Hi Dominic

    In that case my original suggestion should work.

    Here is a snippet of XSLT that should get you going on the right lines for the image

      <xsl:if test="$currentPage/portfolioImages/MultiNodePicker/nodeId">
        <xsl:for-each select="$currentPage/portfolioImages/MultiNodePicker/nodeId">
          <xsl:variable name="node" select="umbraco.library:GetMedia(.,false)" />
          <img src="{$node/umbracoFile}"/>

        </xsl:for-each>
      </xsl:if>

    In the example 'portfolioImages' is the alias of the Multi Node Picker which has been set to 'Media' and to store the data in XML format.

    Just add a "select" statement in for the new text field you have added into to the Image media type using $node/youraliasname

    Matt

  • Dominic Brown 91 posts 111 karma points
    Jul 04, 2011 @ 18:00
    Dominic Brown
    0

    thanks i'll give that ago, i should point out am a noob, so some of that went right over my head lol

Please Sign in or register to post replies

Write your reply to:

Draft