FUEL CMS Forum
Discussions
Activity
Home
›
FUEL CMS News
›
News & Announcements
Sign In
·
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
3.3K
All Categories
255
FUEL CMS News
112
News & Announcements
101
Share
273
Support
115
Bug Reports
90
Installation
242
Development
68
Feature Requests
117
Modules
CRITICAL SECURITY VERSION UPDATE:
https://github.com/daylightstudio/FUEL-CMS/releases/tag/1.4.13
Select another...
sid4it
November 2011
edited November 2011
in
News & Announcements
I am getting ids in the dropdowns on list page - how do I override to have some other column instead of Id in the dropdowns.
I also want to filter only those which belong to logged in user.
Comments
Lance
November 2011
edited 8:56AM
Method signature for options list is:
options_list($key = NULL, $val = NULL, $where = array(), $order = TRUE)
If you don't supply a key or val it'll use the first field after the id. I guess you have foriegn keys in this table?
try, options_list('id', 'your_name_field', array('id' => $your_logged_in_user), $order = TRUE).
Not sure what context you have this problem in. A good example of this is the form_fields() method of the blog_posts_model in the blog module.
sid4it
November 2011
edited 8:56AM
Thanks that worked.
Sign In
or
Register
to comment.
Forum Software Powered by Vanilla
Comments
options_list($key = NULL, $val = NULL, $where = array(), $order = TRUE)
If you don't supply a key or val it'll use the first field after the id. I guess you have foriegn keys in this table?
try, options_list('id', 'your_name_field', array('id' => $your_logged_in_user), $order = TRUE).
Not sure what context you have this problem in. A good example of this is the form_fields() method of the blog_posts_model in the blog module.