Fork me on GitHub
Please upgrade to 2.1.x here. The 2.0 branch is no longer being updated.
Important security fix: 2.1.10, released 4 May.

how to add another detail and remove birthday

ChanuxChanux Admin of Geek.lk ✭✭
edited April 2012 in Vanilla 2.0 Help
This discussion is related to the MyProfile addon.

how to add another detail and remove birthday ?

Answers

  • x00x00 MVP
    edited April 2012

    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.

    grep is your friend.

  • ChanuxChanux Admin of Geek.lk ✭✭

    i could remove birthday. no problems

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

  • x00x00 MVP
    edited April 2012

    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
    

    grep is your friend.

Sign In or Register to comment.