Skip to content
This repository has been archived by the owner on Mar 7, 2019. It is now read-only.

Label Template not working for UrlPicker #383

Closed
gordonsaxby opened this issue Jan 18, 2017 · 5 comments
Closed

Label Template not working for UrlPicker #383

gordonsaxby opened this issue Jan 18, 2017 · 5 comments
Assignees

Comments

@gordonsaxby
Copy link

Umbraco 7.5.6, Archetype 1.13.1, UrlPicker 0.16.1

I have created an Archetype with a UrlPicker and a Media Picker, with a Label Template of {{link}}. However, the label template does not work and I just get [Object Object].

This has worked on previous projects, albeit on previous versions of Umbraco / Archetype. E.g. it works with Umbraco 7.4.2, Archetype 1.12.4, UrlPicker 0.14.1

@kjac
Copy link
Contributor

kjac commented Feb 15, 2017

Hi @gordonsaxby,

You might try using the Multi Url Picker instead, it works really well with label templates.

@ELMDesign
Copy link

@kjac

I cannot find any documentation anywhere on accessing the Multi Url Picker data for a label template.

If I reference the {{propertyAlias}} pattern as in the regular Url Picker I still get the [object Object] error
I've tried {{meta.title}} {{name}} {{title}} and even concat with with the propertyalias and nothing works
Can you advise or share a link?

@kjac
Copy link
Contributor

kjac commented Apr 19, 2017

@ELMDesign it's been a while since I used this feature myself, but {{propertyAlias}} should work - or used to work, anyway. This piece of code handles the Multi Url Picker.

@kjac kjac self-assigned this Jun 7, 2017
@kjac
Copy link
Contributor

kjac commented Jun 8, 2017

The label template works latest version (2.0.1) of Multi Url Picker (tested on Umbraco 7.6 with the latest Archetype build).

image

@kjac
Copy link
Contributor

kjac commented Jun 13, 2017

Fixed in v1.14.1

@kjac kjac closed this as completed Jun 13, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants