Hi,

This is a great module, thank you.

I'm using 4.7.4 and I just upgraded to the latest, 10/23, linktocontent. The content types are not getting displayed on the setting page. I see the text, "Select which content types do you want to display in the plugins node listing.

By selecting a content type all nodes of this type will be displayed in the plugins node listing. For example, if you enable 'story' but not 'page', only nodes of type 'story' are listed." But, there are no content types to select.

Jim

Comments

stborchert’s picture

Assigned: Unassigned » stborchert
StatusFileSize
new5.28 KB

This is a great module, thank you.

Nice to hear :-)

Don't you see something like in the screenshot?
Do you have at least one extension enabled?

Could you please do the following query on your database:
select * from variable where name = 'linktonode_extensions'\G
It should display sonething like this (I have formatted it a little):

value: a:2:{s:18:"linktonode_default";
                a:3:{s:6:"status";i:1;
                       s:6:"weight";s:3:"-10";
                       s:4:"name";s:18:"linktonode_default";
                      }
                s:19:"linktonode_category";
                a:3:{s:6:"status";i:0;
                       s:6:"weight";s:1:"0";
                       s:4:"name";s:19:"linktonode_category";
                      }
                }

Marker to myself:
I have to remove the content-types-fieldset if no extension is enabled.

jwilde’s picture

Hi stBorchert,

Thanks so much for getting back to me.

I ran the query. here's what I got:

a:4:{s:19:"linktonode_taxonomy";s:19:"
linktonode_taxonomy";s:18:"
linktonode_default";i:0;s:19:"
linktonode_category";i:0;s:27:"
linktonode_taxonomy_context";i:0;}

Jim

stborchert’s picture

Looks like no extension is enabled. Please check (at least) one checkbox (for example: "default") and submit the settings form. Then you should see "page" and "story" in the node-types-fieldset (it is collapsed).

jwilde’s picture

Hi,

Thanks for the help. I updated to v1.9 and most stuff is working. The only thing I have a problem with is the "submit button" on the buttom of the popup does not fully display. I can barely see the edge of it.

Also, I changed the content type in linknode.inc and default to use blog content type instead of strory. It seems to be working great. I'll probably add more content types since I use several. Thank you for all of your help.

Jim

stborchert’s picture

The only thing I have a problem with is the "submit button" on the buttom of the popup does not fully display. I can barely see the edge of it.
Hm, would you please make a screenshot and attach it (please open a new bug report on Component = UI).

stborchert’s picture

Status: Active » Fixed

The only thing I have a problem with is the "submit button" on the buttom of the popup does not fully display. I can barely see the edge of it.
Hm, would you please make a screenshot and attach it (please open a new bug report on Component = UI).

stborchert’s picture

Status: Fixed » Closed (fixed)
dafeder’s picture

Yeah by editing the arrays there you can add as many content types as you want. In plugins/linktonode/linktonode.inc line 36:

variable_set('linktonode_node_types', array('story' => 'story', 'page' => 'page', 'blog' => 'blog'));

in plugins/linktonode/extensions/linktonode_default.inc line 46:

function settings() {
return array('story' => t('story'),
'page' => t('page'),
'blog' => t('blog'));
}

It would be nice if there were some way to do this from inside drupal, or if it could detect all the avaliable content types on its own.