I have been trying to get this working for some time and I just want to make sure I am not missing something silly. A quick look just to make sure there's nothing obviously wrong would be much appreciated.
I have a cck type "article", I wish to reference the same datatype (articles) in the node explorer. I am not trying to explore using thumbnails.
here is my article type:
Title/Node module form.
Taxonomy/Taxonomy module form.
Menu settings/Menu module form.
Teaser/field_all_teaser/Text
Full Text/field_all_fulltext/Text
related node/field_related_node/Node reference
for "related node":
Widget type is "explorer"
Referencing node field name for thumbnail generation: blank
Thumbnail preset: default
not a required field
number of values is 1
no view specified
Content types that can be referenced: Article
In the display field tab, for "related node":
Label - above
Teaser - Teaser (content only), not excluded
Full node - Teaser (content only), not excluded
http://localhost/nodereference_explorer/service_node_data/field_related_...
{ "page": 1, "total": "15", "rows": [ { "id": "129", "cell": [ "129", "article", "Fri, 06 Feb 2009 15:55:40 -0500", "Check Out Story Time at the HPL!", "1" ] }, { "id": "132", "cell": [ "132", "article", "Tue, 03 Feb 2009 12:52:06 -0500", "Author created this in teen blog", "1" ] }, { "id": "131", "cell": [ "131", "article", "Mon, 02 Feb 2009 16:13:47 -0500", "My First Article", "1" ] }, { "id": "130", "cell": [ "130", "article", "Mon, 02 Feb 2009 13:53:35 -0500", "gen test", "1" ] }, { "id": "128", "cell": [ "128", "article", "Mon, 02 Feb 2009 11:11:57 -0500", "my family history", "1" ] } ] }
-I have fixed the jquery compression issues from the threads in other issues
-firebug and/or console are not throwing any errors
When i click the "browse" button for related node the "Image Gallery" dialog is empty.
Any thoughts?
Comments
Comment #1
gnindl commentedStrange, everything looks good. Maybe you could try this:
Have a look in the firebug console if the POST request to 'http://localhost/nodereference_explorer/service_node_data/field_related_...' is correclty sent when you press the browse button. Currently there's some ugly cookie caching used for setting the options for the client-side JavaScript request. Maybe the cookies get somehow screwed up due to your Cookie policy?
What OS and Browsers do you use?
Comment #2
druth commentedThank you for taking a look at my post. I am on windows XP sp3, and am testing in ff 3.0.6 and ie build 7.0.5730.11
I will check to see if the post is sent and let you know. ( it might take me a few minutes to figure out how to check that :P )
Comment #3
druth commentedNot certain if this is the answer to your question or not, but in the firebug console, when i click the browse button I see 3 entries appear:
GET http://localhost/nodereference_explorer/service_domain_name
http://localhost/nodereference_explorer/service_domain_name
200 OK 1.42s jquery.js?2 (line 13)
GET http://localhost/nodereference_explorer/service_taxonomy
http://localhost/nodereference_explorer/service_taxonomy
200 OK 1.03s jquery.js?2 (line 13)
GET http://localhost/nodereference_explorer/service_domain_name
http://localhost/nodereference_explorer/service_domain_name
200 OK 2.22s
The response to the service_taxonomy call is:
"\x3cdiv class=\"form-item\" id=\"taxonomy_terms-wrapper\"\x3e\n \x3cselect name=\"\" class=\"form-select
\" id=\"taxonomy_terms\" \x3e\x3coption value=\"0\"\x3eAll\x3c/option\x3e\x3coptgroup label=\"Image Galleries
\"\x3e\x3coption value=\"20\"\x3emyhamilton\x3c/option\x3e\x3c/optgroup\x3e\x3coptgroup label=\"navigation
\"\x3e\x3coption value=\"3\"\x3eSite Root\x3c/option\x3e\x3coption value=\"4\"\x3e-About Hamilton\x3c
/option\x3e\x3coption value=\"21\"\x3e--Events\x3c/option\x3e\x3coption value=\"11\"\x3e--Genealogy\x3c
/option\x3e\x3coption value=\"15\"\x3e---Ancestors\x3c/option\x3e\x3coption value=\"14\"\x3e---Family
History\x3c/option\x3e\x3coption value=\"16\"\x3e---Lineage\x3c/option\x3e\x3coption value=\"9\"\x3e--Local
History and Archives\x3c/option\x3e\x3coption value=\"10\"\x3e-Library\x3c/option\x3e\x3coption value
=\"5\"\x3e-Business\x3c/option\x3e\x3coption value=\"8\"\x3e-Jobs and Learning\x3c/option\x3e\x3coption
value=\"6\"\x3eTeens\x3c/option\x3e\x3coption value=\"7\"\x3e-Teen Blog\x3c/option\x3e\x3coption value
=\"1\"\x3eKids\x3c/option\x3e\x3coption value=\"2\"\x3e-Kids Programs\x3c/option\x3e\x3coption value
=\"19\"\x3e--Family Fun Time\x3c/option\x3e\x3coption value=\"18\"\x3e--Homework Help\x3c/option\x3e
\x3coption value=\"17\"\x3e--Story Time\x3c/option\x3e\x3c/optgroup\x3e\x3coptgroup label=\"subject\"
\x3e\x3coption value=\"12\"\x3etest\x3c/option\x3e\x3c/optgroup\x3e\x3c/select\x3e\n\x3c/div\x3e\n"
Comment #4
druth commentedand the response to the service_domain_name is 'localhost' which i assume is correct.
Comment #5
gnindl commentedThere's is a request missing, the request for
http://localhost/nodereference_explorer/service_node_data
which populates the nodes.
I could reproduce your failure. The url and the parameters for this request are set via cookie by the aqCookie js library. Apparently the cookies are not correctly set, ie. setting 'undefined' values, resulting in an invalid request. I don't know why this doesn't work in certain cases. In the next release the cookie dependency will disappear anyway.
Cheers,
Gottfried
Comment #6
druth commentedThank you for investigating this and responding! Much appreciated.
Comment #7
gnindl commentedTry version 1.1 beta 1. Any JSON request has been discarded