When displaying the list of nodes in the selection box, the number of nodes is limited to the "Number of posts on main page" defined at admin/settings/node. This setting doesn't make sense in this situation.

CommentFileSizeAuthor
#5 linktonode3.png6.74 KBstborchert

Comments

stborchert’s picture

It's because of invoking taxonomy_select_nodes. There is no way to retrieve all nodes in a term by using this function.
I will take the code and insert it into the extensions so all nodes will be displayed.

stborchert’s picture

Fixed and updated cvs/4.7:
linktonode_category.inc
linktonode_default.inc

Does it work as you would expect it to?

stborchert’s picture

Assigned: Unassigned » stborchert
Status: Active » Needs review
ssteinem’s picture

The effects of the two inc files are:
- no doc is selected, no category drop down appears
- under admin/settings/linktonode -> the inc files is displayed in plain text

stborchert’s picture

StatusFileSize
new6.74 KB

Hi.
Could you please try the newest version.
The screenshot shows how it should look like (node list has changed).

no doc is selected, no category drop down appears
Output of .../?q=ltc/linktonode? Javascript errors?
Someone recently found a special case where parseJson did not work. results = eval('(' + req.responseText + ');'); did instead (should be line 163).

under admin/settings/linktonode -> the inc files is displayed in plain text
Huh? Do you have a screenshot of this?

ssteinem’s picture

OK, IE looks fine> a long and complet list with date and author.
Firefox, though, shows the turning wheel - forever (it's nice to look at it, of course, but...)
The error message in the java console:

Error: select.options has no properties
Source File: http://www.kirchestettlen.ch/cgi-bin/drupal1/modules/tinymce/tinymce/jscripts/tiny_mce/plugins/linktonode/jscripts/functions.js
Line: 298
ssteinem’s picture

Oh, I forgot: the wheel starts turning as soon as a push the plugin botton. I can select the categories (while the wheel is still turning) but no nodes are displayed, ever.

stborchert’s picture

Hm, line 298? It is this function:

function clearOptions(select) {
  select.options.length = 0;
}

But its not called anymore. Could you remove these lines and try again? I saw you got the newest verion of functions.js, so it should work now.

ssteinem’s picture

Thank's very much, everything works (without further change, I guess it was a caching problem even though I tried to eliminate these).

stborchert’s picture

Status: Needs review » Fixed

Puh, nice to hear. I was nearly despairing as I read your previous post :-).
Caching is really annoying sometimes, especially if you modify functions.js and nothing happens.

stborchert’s picture

Status: Fixed » Closed (fixed)