Store Locator Plus for WordPress Forums Third Party Add-ons by Debaat Extended Data: Adding a value to a boolean field?

This topic contains 1 reply, has 2 voices, and was last updated by  DeBAAT 11 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #45529


    I am not sure this is is even possible with Extended Data Manager, but I thought I’d ask to be sure…

    I would like to add a checkbox (boolean) field to my locations.  As I understand it, the boolean field can pass a 0|1 argument. If selected I would like to pass the words “inline-block” as a css value into the map bubble next to “display:”. What I am not sure of is how to get from the 1|0 to “inline-block”.

    Use Case:

    <img src="[slp_location data.non_stop_banner]" width="auto" height="24" style="display:[slp_location non_stop_banner_display]” />


    I am able to accomplish the above using Text Line fields and just adding the CSS variable into it, but I thought a checkbox would be a more elegant solution for my users. If I am way off here, please set me on the right path.





    Hai Ratputin,

    Interesting question.
    I’m not sure whether this is possible with the current set of functionality.
    However, there may be a solution using the special features of managing the results layout.
    On the results-layout-shortcodes-and-attributes documentation page, I read:

    ifset <fieldname>
    If the specified location data field is empty or evaluates to false as a JavaScript expression then NOTHING will be output. Otherwise output the text. Useful for turning off specific output when a field is blank.

    You might try this for your request.
    Hope this helps.


Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.