• Resolved TRILOS

    (@trilos)


    I′ve studied FAQ and documentation and found no solution…
    I want to add an extra text field for an internal e-mail address which should not be published anywhere, only on the event edit page to submit it from the public form to the editor. But adding

    <label for="kontakt">Kontakt-E-Mail:</label><br />
    <?php EMEFS::attribute('kontakt','text'); ?>

    will not submit until
    #_ATT{kontakt}{Kontakt-E-Mail}
    is used in the single event settings, i think, and this would lead to unwanted publishing of the field value.
    Am I on the right way and may be the solution?

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

    (@liedekef)

    Hi,

    just create a custom field of type “Event”, then it is only editable when creating an event (in the “Custom field” tab).
    Edit: I just realized this is a frontend question, and then currently you can only use the #_ATT trick.
    Indeed you then need to use it in a template somewhere, which is why I came up with the idea of custom fields of type event. I’m going to see how to be able to add custom fields to the frontend plugin too.

    • This reply was modified 4 years, 11 months ago by Franky.
    Thread Starter TRILOS

    (@trilos)

    I appreciate this and looking forward to an easy solution, hope to read from you soon. Meanwhile, this topic is somehow marked as “resolved”, but it isn′t… would you turn this back our should I open a new request?

    Plugin Author Franky

    (@liedekef)

    I marked it resolved since it was not a bug or support issue, but a feature request.
    And to be on the safe side: can you open a feature request for this on the forum at https://www.e-dynamics.be/wordpress ?

    Thread Starter TRILOS

    (@trilos)

    Thread Starter TRILOS

    (@trilos)

    Thank you for adding the new feature

    = 1.0.45 (2019/12/18) =
    * Add the method EMEFS::custom_field to be able to ask for EME defined custom fields of type Events or Locations

    Since it′s part of the plugin now, I′ll continue here instead of your forum.

    On /wp-admin/admin.php?page=eme-formfields I′ve added the custom field “kontakt” (type “text”, usage “event”).
    In form.php, I′ve changed the code mentioned first into

    <div class="input">
    	<label for="kontakt">Kontakt-E-Mail:</label><br />
    	<?php EMEFS::custom_field('kontakt'); ?>
    </div>

    Result and problem:
    I see the custom field in the tab of new events on /admin.php?page=eme-manager&eme_admin_action=edit_event&event_id=nnn – but it is empty.

    • This reply was modified 4 years, 10 months ago by TRILOS.
    • This reply was modified 4 years, 10 months ago by TRILOS.
    • This reply was modified 4 years, 10 months ago by TRILOS.
    Plugin Author Franky

    (@liedekef)

    There was indeed a bug. This is now fixed in 1.0.48 (being released now).

    Thread Starter TRILOS

    (@trilos)

    Thank you! Updated, tested… no change. I will write to you by mail with further informations.

    Plugin Author Franky

    (@liedekef)

    I just tested here again: works fine now.

    Thread Starter TRILOS

    (@trilos)

    I′m sorry to have bothered you. I′ve grabbed an outdated version of the form.php template – my fault. Thank you for your support and extending the plugin.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Extra internal field’ is closed to new replies.