Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dmitriy 168 posts 588 karma points
    Mar 15, 2018 @ 08:31
    Dmitriy
    0

    How to change output string in Iconic?

    Hello, Mario and others.

    Very like your package! Hope it will be a part of core someday =)

    I'am using Iconic with Material Icons and there is a problem. Here my settings: enter image description here

    Looks like "Template" renders icon only in backoffice, because changing value of this field does't matter to Razor output. I just want to render only an icon name.

    How to change the output string?

  • Mario Lopez 168 posts 958 karma points MVP 4x c-trib
    Mar 15, 2018 @ 10:03
    Mario Lopez
    0

    Hi Dmitriy,

    The template is used on the frontend as well but once you have selected an icon in your page, it will save the template you have configured. If you change the template later, you will have to reselect your icon to get the new value.

    I didn't realise that behaviour is causing troubles, I'll work on a fix.

  • Dmitriy 168 posts 588 karma points
    Mar 15, 2018 @ 11:29
    Dmitriy
    0

    once you have selected an icon in your page, it will save the template you have configured

    Oh, that is a real problem! :( For example, in my case, I put icons in a different enviroments and nearest css classes may affect to them. And if I change template for my needs in frontend it would crash my backoffice like that:

    enter image description here

    It would be perfect if developer can chouse separately what render in Backoffice and what in view.

    And i have found another issue:

    If change Template to simpliest {icon} it renders a string with space in front like " iconname" and it become a space in frontend :(

    And...that thing :) Appears after saving of icon set enter image description here

    Thank you, Mario.

  • Mario Lopez 168 posts 958 karma points MVP 4x c-trib
    Mar 19, 2018 @ 21:30
    Mario Lopez
    100

    I have released a new version that addresses that issue:

    https://t.co/szTvss6IdP

  • Dmitriy 168 posts 588 karma points
    Apr 28, 2018 @ 13:43
    Dmitriy
    0

    Works great, thank you, Mario =)

Please Sign in or register to post replies

Write your reply to:

Draft