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?
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?
Who know? Help me please solve my problem.
can u just summerise what you want to do ?
I slove this problem already. I'm republish it doc. Thanks.
is working on a reply...