Copied to clipboard

Flag this post as spam?

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


  • Alik 2 posts 22 karma points
    Apr 03, 2014 @ 11:01
    Alik
    0

    Using XLST

    Hello I'm beginner in work with Umbarco, so don't judge strictly .

    The situation is as follows.

    - There is a type of data homepage. He has a type field (Media Picker, alias: bannerImage) and (Add link, alias: bannerLink).

    - Then there is a macro and XSLT-file. The essence in the box in the page banner with the link.

    - In XSLT-file an appeal to the fields is as follows: $currentPage/bannerImage and $currentPage/bannerLink.

    Has the following structure:

    - $currentPage/bottomBannerLink/url-picker/url

    - $currentPage/bottomBannerLink/url-picker/node-id

    - $currentPage/bottomBannerLink/url-picker/new-window [.='True']

    - umbraco.library: GetMedia ($currentPage/bottomBannerImage, 0)

    I need to insert another banner, but the other picture / link.

    I'm the type of data homepage add field (Media Picker, alias: bannerNewImage) and (Add link, alias: bannerNewLink).

    Create an identity XSLT-file (copy text from the preceding). automatically creates a macro that is identical to that in the first embodiment.

    Inserted into the template macro call to the right place. If this leave everything as is (ie, XSLT-file $currentPage/bannerImage), all works and inserted a banner with the image as the first banner, everything is OK. As soon as I replace $currentPage/bannerImage at $currentPage/bannerNewImage, banner is not displayed.

    What's the problem? Something else to do with the fields? Or the problem of access to them?

  • Alik 2 posts 22 karma points
    Apr 04, 2014 @ 10:24
    Alik
    0

    Who know? Help me please solve my problem.

  • Hudhaifa Yoosuf 28 posts 97 karma points
    Apr 17, 2014 @ 13:43
    Hudhaifa Yoosuf
    0

    can u just summerise what you want to do ?

     

  • Alik 2 posts 22 karma points
    Apr 17, 2014 @ 13:46
    Alik
    0

    I slove this problem already. I'm republish it doc. Thanks.

Please Sign in or register to post replies

Write your reply to:

Draft