Support » Plugin: Lazy Blocks - Gutenberg Blocks Constructor » Using Label from select in tmplate

  • I’m using a select like:

    
    kerstin : Kerstin
    stephan : Stephan
    thomas : Thomas
    

    What I want to archive is a Template like:

    
    
    <a href="{{mail_to_link.value}}">{{mail_to_link.label}}</a>
    
    

    I couldn’t find any way to do so. Seems only {{mail_to_link}} (the value) is available. Is that possible? What did I miss?

    • This topic was modified 8 months, 2 weeks ago by digitaldonkey.
Viewing 3 replies - 1 through 3 (of 3 total)
  • temporal solution

    
    1 : Kerstin
    2 : Stephan
    3 : Thomas
    

    template…

    
    {{#compare mail_to_link '==' 1}}
        <a href="@kerstin">Kerstin</a>
    {{/compare}}
    {{#compare mail_to_link '==' 2}}
        <a href="@stephan">Stephan</a>
    {{/compare}}
    {{#compare mail_to_link '==' 3}}
        <a href="@thomas">Thomas</a>
    {{/compare}}
    

    Not really charming solution, but solves the problem 😀

    Thank you very for this great Plugin!!

    Plugin Author nK

    (@nko)

    Thank you @devllc for a solution.

    @digitaldonkey I think we can add custom return format option in the next update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Using Label from select in tmplate’ is closed to new replies.