Using Views Attach 6.x-2.1 and Views 6x-2.6, I've created a Node Content version (display) of a Page view which uses a node ID argument. Both the Page and Node Content view displays work wonderfully (thanks for a great module).

My issue is this: I was hoping to be able to automatically provide a "more" link on my attached Node Content display to automatically link to the relevant Page view (essentially adding "/jobs" to the URL of the node which has the Node Content display attached).

Path of the Page view (display): person/%/jobs
Path of the nodes which have the Node Content view (display) attached: person/%

% is the nid of a node type called "person" - so the Page view displays all of Mr %'s jobs and the attached view displays Mr %'s latest 3 jobs.

So when I'm at "person/123" I want to be able to click an auto-generated link in the attached view to take me to "person/123/jobs" to see more of Mr 123's jobs.

I had assumed the "More" link setting in the Default view's basic settings would apply, but it doesn't appear in the Node Content display's basic setting options.

I can code in a link separate from the view using a tokenised Link CCK field, but the above scenario would be easier and more elegant.

(BTW, before using the Views Attach module to do this I tried creating a Block of the argumented view, but I couldn't get the argument to work in the Block, so I tried Views Attach, with great success, apart from this "more" issue).

Apologies if I'm missing something obvious (and I did search the issues queue first).

Comments

no2e’s picture

I'm interested in this, too.

Crell’s picture

It took me a while to figure out what you meant. :-) I believe the way "more" links work in Views is that they point to another display in the same view. I guess that requires per-display support, but I've not tried to implement that before. I would definitely be open to a patch to support that. Anyone up to writing one? :-) (I suspect you can borrow code or at least inspiration from the block display.)

Crell’s picture

Component: User interface » Code
Status: Active » Fixed

OK! So I looked into the code and after taking far longer than it should have determined that adding support for "more" links was quite easy... Just change "use more" => FALSE to TRUE in the definition hook. :-)

I've committed that change to 2.x-dev. Give it a try and see if it works. Note: It is inheriting virtually all of its behavior from the default views behavior, which means it follows the same logic as blocks. So the "more" link only shows up if there are more available results than are currently displayed, etc. Be aware of that when testing.

Status: Fixed » Closed (fixed)

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

asb’s picture

Version: 6.x-2.1 » 6.x-2.2

I'm running 'Views Attach' 6.x-2.2 from 2009-Oct-08 and couldn't get the "more" link to work. After locating this issue, I was afraid that I'd have to update to (another) dev release to get support for the "more" link since the date of this issue closely correlates with the last release more than two years ago.

However, this wasn't necessary; it seems to be required to check the "Always show more link" in the View's basic settings. Only with this setting the "more" links shows up for me.