Skip to content

Replace Custom Labels ? #3

Open

Description

@Hendy

continue to use macros for custom labels ? (lots of clicking to setup, but can use cshtml)

or add/replace with a 'template field' (for client side only) in the property editor configuration ?

Activity

  1. greystate commented on Feb 28, 2019

    @greystate

    I would love something that could leverage convention over configuration, e.g. look for a partial named with a pre-/postfix combined with the picked item's DocumentTypeAlias (or whatever the v8 equivalent is in code).

    Kind of the way themes in UmbracoForms lets you override just a single FieldType's rendering.

  2. Hendy commented on Feb 28, 2019

    @Hendy
    ContributorAuthor

    (nice, a macro type setup without the clicks) so have file naming convention for a server side razor option and a textarea (save in property editor) for a client side option, or would that be better as file convention too ?

    (dropping support for macros = no XSLT !)

  3. greystate commented on Feb 28, 2019

    @greystate

    (dropping support for macros = no XSLT !)

    I think everything XSLT has been ripped from the guts of v8 anyway :)

    Didn't even think of the client-side option, actually...

  4. dawoe commented on May 2, 2019

    @dawoe

    I think a client side label can't be done easily, because the datasource only returns the key and the label. So I don't see a real benefit from this.

    I like greystates suggestion about a convention based partial location. That saves setting up the macro.

    Dave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedAll and any feedback welcome

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions