Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am trying to show the link title field on the block list label.
Right now I am doing this
{{ 'Link Item' + $index }}
to show Link 1 Link 2 but would like to show the link title instead
Can someone tell me what I would put on my label field? I tried doing Link.Name and linkItem.Name but neither worked.
Hi Yaco
Would it be something like this...
{{link[0][\"name\"]}}
Where 'link' is the alias of the multi url picker on the block list item...
(essentially even if you have it configured to pick a single link, the angular JS template still stores as an array... So the 0 makes it be the first (and only) links name!
Regards
Marc
Thank you mark, I will test this out and see if it works
Hi Yaco,
Joe has made a nice cheatsheet for these:
https://joe.gl/ombek/blog/umbraco-angularjs-filter-cheat-sheet
Which also confirms Marc's suggestion to use {{ link[0].name }} for a MultiUrlPicker property.
{{ link[0].name }}
/Chriztian
Thank you Chriztian for adding the link to the cheat sheet, it is very helpful
using {{ link[0].name }} worked perfectly.
I've used the below fall back just so if it's a Content or Media selected from the Media, I can still overwrite the title without it being blanked
{{ link[0].name == null ? link[0].nodeName : link[0].name }}
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How do I show a Image/File title on a Blocklist label?
I am trying to show the link title field on the block list label.
Right now I am doing this
{{ 'Link Item' + $index }}
to show Link 1 Link 2 but would like to show the link title instead
Can someone tell me what I would put on my label field? I tried doing Link.Name and linkItem.Name but neither worked.
Hi Yaco
Would it be something like this...
{{link[0][\"name\"]}}
Where 'link' is the alias of the multi url picker on the block list item...
(essentially even if you have it configured to pick a single link, the angular JS template still stores as an array... So the 0 makes it be the first (and only) links name!
Regards
Marc
Thank you mark, I will test this out and see if it works
Hi Yaco,
Joe has made a nice cheatsheet for these:
https://joe.gl/ombek/blog/umbraco-angularjs-filter-cheat-sheet
Which also confirms Marc's suggestion to use
{{ link[0].name }}
for a MultiUrlPicker property./Chriztian
Thank you Chriztian for adding the link to the cheat sheet, it is very helpful
using {{ link[0].name }} worked perfectly.
I've used the below fall back just so if it's a Content or Media selected from the Media, I can still overwrite the title without it being blanked
is working on a reply...