First of all: This is definitely one of the modules that I needed most.

Great work !!!

Everything works fine for me but I get an error when I go to the settings ==> LinkToContent Page.
There I can select which extensions should be used.
The default is activated.
Beneath that I have furthermore the choice of selecting:
-categories
-taxonomy
-taxonomy content

I would liket to enable the categories.
If I do so, my drupal gets me the error-message:
"Validation error, please try again. If this error persists, please contact the site administrator."

As I'm the administrator...

So, perhaps I made somethign wrong within the categories module (also just installed, but this works as far as i see stable).

I dont know if this is a bug. I think not.
Seems that my drupal is doing something wired.

Perhaps somebody has an idea???

Thanks everybody in advance.

gb5256

CommentFileSizeAuthor
#15 linktonode_default.patch1.3 KBstborchert
#12 shot3.jpg40.9 KBgb5256
#6 shot1.jpg122.67 KBgb5256
#5 shot2.jpg74.77 KBgb5256

Comments

stborchert’s picture

Assigned: Unassigned » stborchert

The default is activated.
Beneath that I have furthermore the choice of selecting:
-categories
-taxonomy
-taxonomy content

Ok, this is not the latest version (should include "forum" as well). But that doesn't matter.

I would like to enable the categories.
If I do so, my drupal gets me the error-message:
"Validation error, please try again. If this error persists, please contact the site administrator."

Hm. I never saw this message before.
Which drupal version do you use?
Perhaps 4.7.4?

Ah, I got it: v4.7.4 requires a new form-tag ("form_token"). If it is not present, validation will fail.
I'll will fix this.

Thanks for your feedback.

stborchert’s picture

Status: Active » Needs review

Updated linktocontent.module as descriped in the converting guide.

I suggest you download the latest package and replace linktocontent.module (v1.8) with the newest version (v1.9; see above) if it isn't already in.

Please reply if it is working.

gb5256’s picture

Hi, so that fix works. I do not receive any more errors on that page.
But:
If I create a new node, and I click on the LinkToNode in the TinyMCE it opens the popup correctly.
There my Containers and Categories are displayed (correctly).
But no nodes are shown.

I do have nodes in all my categories and containers.
Do I miss something or did I setup my categories and/or containers wrong?

gb5256

stborchert’s picture

But no nodes are shown.
Do you have selected some node types in the node-type-fieldset?

gb5256’s picture

StatusFileSize
new74.77 KB

I added a screenshot.

What is your script normally supposed to do?
Am I right, that in the screenshot, all the nodes which are not in containers/categories should be displayed?
Furthermore, If I select a container and a category, also nothing is displayed?

Yes, I'm using Drupal 4.7.4.

gb5256’s picture

StatusFileSize
new122.67 KB

here is another screenshot, which shows my types

stborchert’s picture

Ok, lets try something.
Guess you have the following structure:

+ vocabulary #11 (vid: 62; no nodes)
  - term #13 (tid: 63; has some nodes)
    - term #16 (tid: 64)
  - term #9

Please got to "http://[your_drupal_path]/?q=ltc/linktonode/".
There you should see something like this:

{ 
   "category": [ { "vid": "62", "tid": "62", "title": "vocabulary #11" } ], 
   "node": { } 
}

Then enter "http://[your_drupal_path]/?q=ltc/linktonode/62" (replace the number by the displayed "vid").
You should see something similar:

{ 
  "category": [ { "vid": "62", "tid": "63", "title": "term #13" }, 
                { "vid": "62", "tid": "68", "title": "term #9" } ], 
  "node": { } 
}

Result of "http://[your_drupal_path]/?q=ltc/linktonode/62/63":

{ 
  "category": [ { "vid": "62", "tid": "64", "title": "term #16" } ], 
  "node": { "node/48": { "nid": "48", 
                         "title": "node #48 (page)", 
                         "date": "2006-09-01 18:27", 
                         "author": "", 
                         "type": "page", 
                         "href": "/node/48", 
                         "orig_href": "node/48" 
                        } 
               } 
}

(To go to a deeper level just replace the last number by the terms tid.)

If you see some nodes in the results (try to take a vocabulary where you've got a story/page in one of the first terms) everything works fine.
I assume your browser uses a cached version of the javascript files. Please call them (unctions.js, dropdown.js, nodelist.js) directly in your browser and try again to call the plugin.

Hopefully it will work now.

gb5256’s picture

So, it looks like I did something wrong with my nodes.

If I do: http:/ ... /cms2/?q=ltc/linktonode/49
this happens:
{ "category": [ { "vid": "49", "tid": "50", "title": "Links to Multimedia-Sites" } ], "node": { } }

After that I point at: http://.../cms2/?q=ltc/linktonode/49/50
this happens:
{ "category": false, "node": { } }

Inside this Category I created three nodes. They are visible in my menu-Structure within this.

stborchert’s picture

Hm, tricky. "category": false tells, that there are no sub-categories.
I've created two screenshots:
with and without "container" and "category" enabled as content type.
Could you please check if you get similar results in the plugins node listing.

gb5256’s picture

Now we are getting closer (well, actually you are...):

So, if I enable the types Container and Category they do show up when I create a new linktonode as is shown in your first screenshot.
(so: Perfect!)
But, If I not enable them, nothing is shown.
(In your second screenshot I see the nodes that are not in categories or containers, right?)

Do I have to set up something with this non-categorized nodes?

stborchert’s picture

So, if I enable the types Container and Category they do show up when I create a new linktonode as is shown in your first screenshot.
Sounds good.

In your second screenshot I see the nodes that are not in categories or containers, right?
Ähm, not really. The dropdown shows the two sub-categories of "vocabulary #11".
Because no nodes are stored in "vocabulary #11" the node list is empty.
In the first screenshot the two categories are listed (because you've checked the type "category" in settings").
If their are nodes in the category (see screenshot) they are listed additionally to the categories (highlighted).

gb5256’s picture

StatusFileSize
new40.9 KB

I think i dont see what is wrong (stehe auf dem Schlauch...).
Please take a look at the attached screenshot.

If I understand you module right, i should see in that case all the nodes that are in the Container "Links" and in the Category "Links to Multimedia".
But there is nothing.
In my Menu-Structure everything shows up (if I click on "links" and "Links to Multimedia" my three nodes appear.

???
I'm so sorry that you have to struggle with me.
Let us discuss my following statement:
"Your module gives me the ability to link to EVERY node that I have created within my Drupal. They dont need to be inside a container or category"

True or Not?

stborchert’s picture

I think i dont see what is wrong (stehe auf dem Schlauch...).
Ich auch ;-)
[By the way, do you have skype or something similar, then we can talk faster and nail down this pronlem (you could mail me).
I am away for the next 6 hours so we can proceed tomorrow.]

If I understand you module right, i should see in that case all the nodes that are in the Container "Links" and in the Category "Links to Multimedia".
Right.

I'm so sorry that you have to struggle with me.
No problem. I would have wondered if there where no more problems.

"Your module gives me the ability to link to EVERY node that I have created within my Drupal. They dont need to be inside a container or category"
Unfortunately: false.
You will only see nodes that are "stored" inside a container/category and which type is one of the selected.
I will change the module so that nodes that do not belong to a container are listed on "the first page".
For other types (for example: event; I do not now know whether events are listed or not) I will add an extension from time to time.

stborchert’s picture

I'm back again.
Please skype ("st._.borchert" without both dots) or contact me so we can fix the problem.

stborchert’s picture

StatusFileSize
new1.3 KB

I added a patch to display uncategorized nodes in the "first" listing.
Do you have a positive result?

gb5256’s picture

YOU CAN CLOSE THIS ISSUE.
YOUR PATCH WORKED PERFECT.

(ich werde heute abend mal skypen um mich noch persönlich zu bedanken...)

gb5256

stborchert’s picture

Status: Needs review » Reviewed & tested by the community

Nice to hear.
I will commit the patched file.

stborchert’s picture

Status: Reviewed & tested by the community » Closed (fixed)