Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Leszek 8 posts 28 karma points
    Mar 13, 2012 @ 21:23
    Leszek
    0

    Optional email field

    Hi,

    I'm using Runway.Blog as my blog engine. I'd like to make the email field optional (it is mandatory by default). I found the following code snippet in AjaxCommentForm.ascx but it seems it does not have any switch to make the email field optional:

    <div class="form-label">
        <label for="email" class="fieldLabel">
            <%= Runway.Blog.BlogLibrary.Dictionary("#Email","Email address") %>:
        </label>
    </div>
    <div class="form-input">
        <input type="text" id="email" name="email" class="input-text required email" />
    </div>

    Thanks,
    Leszek

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Mar 14, 2012 @ 09:01
    Dirk De Grave
    0

    Leszek,

    Have you checked the document type used for blogging... is there a mail field? If so, that one probably needs changed to be optional instead of mandatory (it's just a checkbox that needs unchecked). And probably need to change class names on fields that are no longer mandatory (2nd input box which is now marked with 'required')

     

    Cheers,

    /Dirk

  • Leszek 8 posts 28 karma points
    Mar 16, 2012 @ 02:40
    Leszek
    0

    Thanks Dirk for your response.

    I've checked the document type for blogging (Settings > Document Types). There are two document types related to the blog:

    - Blog
    - Blog Post

    Unfortunately none of them has an email field. They only have Allowed Templates, Allowed Child Nodetypes, Generic Properties, and Tabs (e.g. Content, Settings, Blogroll etc.)

    Maybe I'm looking at the wrong place. Please, could you provide a step-by-step instruction how to get to the email field?

    Thanks,

    Leszek

     

  • Leszek 8 posts 28 karma points
    Mar 21, 2012 @ 15:32
    Leszek
    0

    As I don't see any standard method of making the email address field optional, I created a workaround by modifying AjaxCommentForm.ascx: I removed the email field altogether and substituted a dummy email address when submitting data to Runway.Blog - an ugly solution but at least it works.

    Thanks,

    Leszek


Please Sign in or register to post replies

Write your reply to:

Draft