Would be great that instead of insert the view, you can select a formater to show the link and not insert the view in the node.

CommentFileSizeAuthor
#12 shot2.gif3.23 KBgavin_o
#12 shot3.gif2.31 KBgavin_o
#10 shot.gif2.03 KBgavin_o

Comments

danielb’s picture

Yes that would be great, I will add this on the next update.

danielb’s picture

Status: Active » Fixed

I have added this. Of course it will only work if you have an active path for the view - otherwise it will just spit out the title with no link.

nadid’s picture

Great! , thanks :)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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

gavin_o’s picture

Hi. I'm just setting this up - had a few other issues with the module, as detailed in http://drupal.org/node/325157, but I would really like to do exactly what this post proposes (just link to the view rather than embed it).

I have updated to version 6.x-2.18 but the trouble is I can see no option to set this anywhere - it's still just embedding the views. I do have a path set up for the view I'm trying to link to (under Page display type).

My ultimate aim is to have your module output a link just as the "Node Reference" CCK field does.

Maybe I have missed something obvious?

-----------
Running Apache 2.2.11 Win 32 Vista, PHP Version 5.2.9-2, MySQL 5.1.35, Drupal 6.13, Module 6.x-2.18

danielb’s picture

Well it should be there under the 'display fields' tab when you manage fields in the content type.

gavin_o’s picture

You got it :) I guess that was the one place I hadn't yet looked! There sure are a lot of places you can alter options in Drupal.

I got this result having altered the option:

user warning: BLOB/TEXT column 'field_view_ref_arguments' can't have a default value query: ALTER TABLE content_type_menu_item ADD `field_view_ref_arguments` LONGTEXT DEFAULT '' in ... \includes\database.mysql-common.inc on line 298.

There is no such column in the specified table. Should I just manually add it with the ability to be NULL? Thanks (for the very quick response also).

danielb’s picture

I got this result having altered the option:

user warning: BLOB/TEXT column 'field_view_ref_arguments' can't have a default value query: ALTER TABLE content_type_menu_item ADD `field_view_ref_arguments` LONGTEXT DEFAULT '' in ... \includes\database.mysql-common.inc on line 298.

There is no such column in the specified table. Should I just manually add it with the ability to be NULL? Thanks (for the very quick response also).

See here where you brought it up #325157: Hmm - strange error - and can't uninstall module and go back to working

gavin_o’s picture

OK - it's just that the column isn't even in the table this time. I'll add it and set it to accept NULL. Thanks.

gavin_o’s picture

StatusFileSize
new2.03 KB

Ok, just to let you know, I changed the display properties to be as per the screenshot, and saved the content type. I've found the title of the View comes out (just as with Node Ref) but it is not hyperlinked. This for existing items and new ones (not sure if the link is added on the way in, or on the way out of the DB? Guess on the way out).

There is a working path defined for this view, in its Page display type.

Is this an error my end which I can correct, or shall I wait for the next module version? Thanks.

danielb’s picture

You saved the content type - ok. You do not mention saving the actual node though?

gavin_o’s picture

StatusFileSize
new2.31 KB
new3.23 KB

Yep, I saved the node. Hope the attached screenshots help - they show the edit mode for the node then the view mode for it - also show Node Ref working as expected.

Again, perhaps I'm missing something, just not sure what it could be.

danielb’s picture

Yeah sorry there was another bug. I'm really shocked.

gavin_o’s picture

No problem - I'm grateful people make these modules at all!

Let us know what you'll do..

I notice it also outputs "Entertainment Page" as the title - wonder if it could output the just the title of the Page instead? As far as I can gather, it seems to be getting the link text from the View name (which can't be changed) then the Display type (Page).

On a totally different issue, my signature doesn't seem to be showing up here. Weird!

danielb’s picture

The link should work in the new version of the module. If there are other issues please do not post them here, this is a closed issue, you're lucky I even saw your post here in the first place. Start a new issue per each topic. This makes it a lot easier to track down things in the future and avoid further problems just like this one.

gavin_o’s picture

OK - will do. I just thought continuing the thread would re-open it and didn't want to create superflous thread - just getting used to the system here..

Will look out for your updated release.