I followed your instruction in readme
1 set access permission
2 go to Administer -> Content management -> Dictionary to create an item,added english language.
however, when I went to Create content -> Dictionary term to create a node for my dictionary items, I coundn't find an item under Dictionary item reference list. Since the field is required, I couldn't save the node successfully either.

Could you help me figure it out, what are the possible reasons.

Thanks in advance.

Comments

Sara Adams’s picture

Could you please check the following:

1. The item is listed on the administration page (admin/content/dictionary/list_item)
2. The content type "dictionary_term" has a field "field_dictionary_term_iid" (admin/content/node-type/dictionary-term/fields)
3. The field has the following text for allowed values (PHP Code), excluding the opening and closing php tag: (admin/content/node-type/dictionary-term/fields/field_dictionary_term_iid)

 $result = db_query('SELECT * FROM {dictionary_item} ORDER BY name');
$iids = array();
while ($item = db_fetch_object($result)) {
  $iids[$item->iid] = $item->name;
}
return $iids;

Also, does your database have a prefix? Do you know a tiny bit of SQL, i.e. do you know how to get into the database and send queries?

I'll try to help once I know a bit more. First I want to check whether everything was set up correctly, though.

zqproject’s picture

Thank you, Sara.

I have copied the above php code just now. It does work. I can see your dictionary page now.

By the way, no prefix for my database, I have installed lots of modules though. I guess some conflicts occurred somewhere.
Thanks again.

Sara Adams’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.