Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • woekerzee Friend
    #199230

    Dear support,

    I would like to add placeholders to my com_users login menu type. Something like this: http://prntscr.com/3xb9ta
    How would I able to do this?

    Thanks

    Saguaros Moderator
    #540808

    Hi,

    Do you mean that you want to remove the first part in this login page: http://prntscr.com/3ybotb?

    It’s SLogin module in social-login position, you just need to disable this module if you don’t want it to show.

    woekerzee Friend
    #540996

    No, I would like to add the placeholders ‘Email address’ and ‘Password’ to the fields as you can see in the screenshot! 🙂

    Saguaros Moderator
    #541017

    Hi

    These input fields (usename/password) are generated from the login.xml file located here: components/com_users/models/forms/login.xml

    You can open this file and look for these fields:


    <field name="username" type="text"
    class="validate-username"
    filter="username"
    label="COM_USERS_LOGIN_USERNAME_LABEL"
    size="25"
    required="true"
    validate="username"
    />

    <field name="password" type="password"
    class="validate-password"
    required="true"
    filter="raw"
    label="JGLOBAL_PASSWORD"
    size="25"
    />

    change it to:


    <field name="username" type="text"
    class="validate-username"
    filter="username"
    label="COM_USERS_LOGIN_USERNAME_LABEL"
    size="25"
    required="true"
    validate="username"
    hint="COM_USERS_LOGIN_USERNAME_LABEL"
    />

    <field name="password" type="password"
    class="validate-password"
    required="true"
    filter="raw"
    label="JGLOBAL_PASSWORD"
    size="25"
    hint="JGLOBAL_PASSWORD"
    />

    woekerzee Friend
    #541055

    Thank you very much! 🙂

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

This topic contains 5 replies, has 2 voices, and was last updated by  woekerzee 10 years, 4 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum