Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

how to add another detail and remove birthday

This discussion is related to the MyProfile addon.

how to add another detail and remove birthday ?

Answers

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP

    so I would comment out with # like so

    # DoB: 
    #  name: Date of Birth
    #  type: date
    #  validate: Date
    

    in mymeta.yml

    what do you want to add?

    As simple text field would be like so

     FieldName:   
      name: Name of field
      type: text
    

    Note the format is very strict, the indentation the spaces after the colons, etc.

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

  • i could remove birthday. no problems

    but i cant add another.. i want to add school and facebook url

  • x00x00 Don't PM about development, I'm not currently taking on clients MVP

    It depends what you want to do if you just a want a raw url you could do something like

     Facebook:
      name: Facebook
      type: text
      validate: WebAddress
      params:
       - WebSite
      labeldefault: "%3$s"
    

    You could make sure it is a facebook url

     Facebook:
      name: Facebook
      type: text
      validateregex: "http://(www\.)?facebook\.com/.*"
      params:
       - WebSite
      labeldefault: "%3$s"
      hint: http://facebook.com/#!/profile.php?id=123456789
    

    Don't PM about development, I'm not currently taking on clients.

    grep is your friend.

Sign In or Register to comment.