Using different widgets. Dead link

A place to discuss and receive support for the Web Auction application.

Using different widgets. Dead link

Postby wow » Fri Apr 02, 2010 8:04 pm

While learning xataface tutorial, auction is an application I'm playing with.
2 questions.

1)Page address
http://xataface.com/documentation/tutor ... ustomizing

"...You can change the widget that is used to edit a field by specifying a "widget:type" attribute for the field in the fields.ini file.
more information about the available widgets, see the widget:type manual page..."
link http://xataface.com/documentation/manua ... _type/view goes nowhere

2)index.php?-action=new&-table=users
Users/details/new record

Edit Details

(fields)
Username
Password
Firstname
Lastname
Title
Department
Phone
Email
Role Please Select ... USER ADMIN
Receive output notifications
Receive notifications by email when you are outbid on items
Timezone Please Select ...
Submit

According to tutorials I suppose to see all that in
tables/users/fields.ini
but this is what I see

[prefs_receive_outbid_notifications]
widget:type=checkbox
widget:label = "Receive output notifications"
widget:description = "Receive notifications by email when you are outbid on items"

[password]
encryption=md5

[timezone]
widget:type=select
vocabulary=timezones
wow
 

Re: Using different widgets. Dead link

Postby shannah » Thu Apr 08, 2010 10:43 am

link http://xataface.com/documentation/manua ... _type/view goes nowhere

Thanks... fixed.

...
According to tutorials I suppose to see all that in
tables/users/fields.ini
but this is what I see
...


The fields.ini may or may not already contain entries for the fields of a table (there's no law that says the fields.ini file has to be there at all). If no entry yet exists for a field in the fields.ini file, Xataface will just use the default settings for that field. You are free to customize fields by adding a section to the fields.ini file for that field.

-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm

Re: Using different widgets. Dead link

Postby wow » Thu Apr 08, 2010 11:42 am

Thank you, Steve.
I may didn't explain myself very clear.
I understand that I'm free to create/change anything I need in fields.ini.
The question is how to take out or change fields
1)I can see on the page,
2)but not presented in fields.ini at all.
Where those fields comming from.
That's a pazzle for me.
Thank you.
wow
 

Re: Using different widgets. Dead link

Postby shannah » Thu Apr 08, 2010 1:12 pm

The fields show up because they are defined in the database. You can remove them by any of the following methods:

1. Remove the column from the database (careful with this one to make sure that the field is not needed and hard coded anywhere in the program).

2. Add a section to the fields.ini file for that field, and set all applicable things to hidden:
Code: Select all
[my_field]
    visibility:list=hidden
    visibility:browse=hidden
    visibility:find=hidden
    widget:type=hidden


3. Set the permission on the field to no access in the delegate class:
Code: Select all
function myfield__permissions(&$record){
    return Dataface_PermissionsTool::NO_ACCESS();
}


-Steve
shannah
 
Posts: 4457
Joined: Wed Dec 31, 1969 5:00 pm


Return to Web Auction Discussion

Who is online

Users browsing this forum: No registered users and 24 guests

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