Requesting a clue or document for the following:

I can create a content type and I can display an added node with that content
by the node number. I can also create a view to show nodes of that content type in different ways.

Say I create a view of showing a content type that displays one item per page

Say I want to have a link/URL that specifically goes to the views page and lands showing
the content for a node of interest.
( I don't want to display the node managed by content type, I want to use views )

How would I go about composing a URL that would go to that view page showing that particular
content type(node) ?

Do I reference nid, or do I pass variables in the URL that are related to the filter/sort criteria,
or the only practical way is to know the pager 'count' and just do it that way like this
if it is the fourth item by filter/sort:
http://mywebsite.com/myviewpath?page=3

Do I have to add more 'things' to my view likely in advanced settings to be able to have the URL
go to a specific bit of information?

Comments

webengr’s picture

http://drupal.org/node/54455

The clue word for what to research was "arguments" for views 2, but for views 3 "Arguments" are now called "Contextual Filters" and can be found under the "Advanced" fieldset of the new UI.

So the answer for the above in Drupal 7 with Views 3, is to drop down "advanced" in the views edit
and add a Contextual Filter for "Content:Nid"
WHEN THE FILTER VALUE IS NOT IN THE URL
Display all results for the specified field
WHEN THE FILTER VALUE IS IN THE URL OR A DEFAULT IS PROVIDED
(nothing checked)

Now the URL is something like this if the content node was 65:

http://mywebsite/myviewpath/65
------------

another thought...
With this knowledge, we may can change rewrite results in other views to make links
to other views and so on....

[ note - seems like if we do it this way... the views pager does not show anymore
- perhaps because I just selected on one thing to view! - arrggghhh ]

spovlot’s picture

Are you using Pathauto (http://drupal.org/project/pathauto)?

Pathauto generates URL path aliases - See http://drupal.org/documentation/modules/pathauto

webengr’s picture

thanks but...
I don't think that is what I wanted.
on this site I did not have path auto setup,,, most of the pages are views generated and the view
is determining the path.

I wanted a URL that would jump into a middle of a view, possible even into a middle of a slide show.

What I described above - contextual filters - almost did what I wanted... It did allow me to
go to a specific page in a view - HOWEVER the "pager" did not display when I did this.
That may be because I am using display suite... may have to sandbox a simpler site to say.

hmmm....

webengr’s picture

since this is more of a support request or other... for project "VIEWS"

I started this page and set to "support request" under VIEWS ISSUES: http://drupal.org/node/1533608