• Resolved najram

    (@najram)


    Hello,

    I’m trying to set some custom attributes and html tags to a custom block from its text/textarea fields. I’m using the default template builder, not php templates. But, my custom values are getting stripped. Only id, class and style attributes are getting displayed. Same for html tags, only the standard ones (div, section etc.) are getting trough.

    So, it seems that there is some field validation in place.
    Can this behaviour be disabled somehow, maybe with php filter/hook?

    Thank you!
    Cheers

    • This topic was modified 8 months, 3 weeks ago by najram.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter najram

    (@najram)

    UPDATE: if used with php template instead, it works as intended.

    However, it would be quite handy through, if it would work also with default template editor, within the {{...}} syntax. ??

    Plugin Contributor Ryan Kienstra

    (@ryankienstra)

    Hi @najram,

    Thanks for letting me know about that, you’re right that it’d be better if it’d work with the {{...}} syntax.

    Thread Starter najram

    (@najram)

    Hi @ryankienstra and thank you for your reply.

    Hopefully it will be implemented in the next update … right, right? ??

    Plugin Contributor Ryan Kienstra

    (@ryankienstra)

    Hi @najram,

    Sorry, we aren’t planning a change to this, though it definitely could be better.

    There has to be some escaping of the template for security reasons.

    We could loosen the escaping to help you.

    But to be honest, we’re not focusing on this plugin. So unfortunately, we won’t have the developer time for that.

    Sorry to not help you, as you raise a good point.

    Thread Starter najram

    (@najram)

    No problem, and actually, you have helped me. ??

    Thanks @ryankienstra

    Plugin Contributor Ryan Kienstra

    (@ryankienstra)

    Thanks so much! It’s a big compliment you’re using Genesis Custom Blocks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Field values getting stripped’ is closed to new replies.