• Resolved Axel Schaumann

    (@dq11u88an6uqscuhe4ot)


    I have three questions regarding categories and I am not sure, if I can post the questions here or in the events made easy frontend submit forum.

    (1) I have two categories: “Fest” and “Übernachtung / Urlaub”. Above these categories there are two lines with “–” Is it possible to delete them? If yes, where do I delete them?

    (2) Can I make one category standard? If a person does not click on the other category or does not even open the field, when planning a new event, the standard category will be selected automatically.

    (3) Is it possible to have radio buttons instead of a field with several options?

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Franky

    (@liedekef)

    This question should be in the events made easy frontend submit forum indeed.
    But it needs to be answered anyway, so here goes:

    1) the “–” can’t be changed, but I’ll change it to empty for the next version
    2) currently not, the next version will have this
    3) yes it is possible, use “EMEFS::field(‘event_category_ids’,’radio’);” in your template

    Thread Starter Axel Schaumann

    (@dq11u88an6uqscuhe4ot)

    Thank you very much.

    I tried to use the code from (3) in the template form.php.

    I changed <?php EMEFS::required_field(‘event_category_ids’); ?> into

    <?php EMEFS::field(‘event_category_ids’,’radio’); ?>

    But somehow it did not work. It changed the field into an empty text field.
    What did I miss?

    This is the whole code of the section:

    <?php
    if (get_option(’eme_categories_enabled’)) { ?>
    <div class=”input select”>
    <label for=”event_category_ids”><?php _e(‘Wenn du ein Fest planst, dann wähle “Fest”. Ansonsten überspringe diesen Punkt. ‘,’events-made-easy-frontend-submit’); ?> </label><br/>
    <?php EMEFS::field(‘event_category_ids’,’radio’); ?>
    <?php EMEFS::error(‘event_category_ids’); ?>
    </div>
    <?php } ?>

    Plugin Author Franky

    (@liedekef)

    Just tested it, works fine here.
    Make sure you have regular single quotes (‘), not the backticks (’)

    Thread Starter Axel Schaumann

    (@dq11u88an6uqscuhe4ot)

    OMG! That´s it. Now it works great and solves my problem. Wonderful. Thank you very much.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Categories’ is closed to new replies.