change the displayed order in edit mode

A place for users and developers of the Xataface to discuss and receive support.

change the displayed order in edit mode

Postby kevinwen » Mon Dec 28, 2009 4:46 pm

Hi,

the following is part of the fields.ini I'm working on. I want the Authentication group shown before Login group, but it doesn't work. However, when I commented the orders out for both [user_name] and [user_id], it does show authentication group first. Can somebody tell me why? Thanks a lot.

[user_name]
widget:label = "Name"
group=authentication
order = 1
filter=2

[user_id]
widget:label = "UserID"
group=login_info
order = 2
filter=1

[user_password]
widget:label = "Password"
visibility:list = hidden
visibility:browse = hidden
group=login_info
order = 3

[user_role]
widget:label = "Role"
widget:type = select
vocabulary = Role
group=authentication
order = 4
filter=3

[user_type]
widget:label = "Type"
validators:required = true
validators:required:message = "User Type is required."
widget:type = select
vocabulary = Type
group=authentication
order = 4.5
filter=4

[user_email_address]
widget:label = "Email Address"
order = 5


[fieldgroup: authentication]
label="Authentication Information"

[fieldgroup: login_info]
label="Login Information"
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm

Re: change the displayed order in edit mode

Postby shannah » Wed Dec 30, 2009 11:12 am

Using the order directive in the fieldgroup sections should set the order appropriately.

E.g.
Code: Select all
[fieldgroup: authentication]
label="Authentication Information"
order=-10

[fieldgroup: login_info]
label="Login Information"
order=-9
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: change the displayed order in edit mode

Postby kevinwen » Wed Dec 30, 2009 4:18 pm

Thanks a lot.
kevinwen
 
Posts: 109
Joined: Mon Dec 28, 2009 3:44 pm


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved