Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Thanks for the suggestion, and sorry for the late response. But if you’re still interested, the latest version, 1.9.2, have some basic support for setting default values for variables.

    Cheers,
    Johan

    This feature is not working for me.

    I created an HTML snippet called Callout, the variables are: width=750,float=center

    and the snippet is <div class=”cta” style=”width:{width}px;float:{float};margin:0px auto;”>Text Goes Here</div>

    When I press the icon to insert the snippet it shows the default value, but when I press insert what gets inserted is: <div style=”width: {width}px; float: {float}; margin: 0px auto;” class=”cta”>Text Goes Here</div>

    Any ideas? am I doing something wrong?
    Thanks for the great plugin anyway πŸ™‚

    No, you are not doing anything wrong.
    I made a mistake that slipped through that made variables with default values not working properly on insert. I’ve just corrected that, and an update (v1.9.3) will be checked in today. That should take care of the problem you have. πŸ™‚

    Otherwise let me know.

    Cheers,
    Johan

    Cool, thanks.

    As a suggestion it might also be nice to be able to specify variable data as an array instead of just a default. For example I have a number of button classes setup with colors. So instead of just color=white it might be nice to have the ability to do something like, color=white,green,red,black and have that create a drop down selector.

    Anyway thanks for all the work, your plugin saves me tons of time.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: Post Snippets] Feature Suggestions: Default values in fields and Dropdown boxes’ is closed to new replies.