Hi, was hoping someone could help with my issue..
Home page:
(I have 3 posts, for simplicity sake)
-- The titles link to http://www.abc.com/drupal/myview
Title: Sample title1
Title: Sample title2
Title: Sample title3
In Views:
- myview --> outputs Body of posts
-- This path goes to http://www.abc.com/drupal/myview/%
Problem:
When I click on one of the titles on the home page,
I would like to go to the view I created (myview).
Well, it goes there, but it displays all 3 posts,
instead of the one I clicked on.
I've been working with Arguments and cannot figure out how to isolate what is chosen.
My best guess is that I need to do this:
Views -> Arguments -> Node: Nid -> Provide Default Argument -> Php Code ->
if (arg(0) == 'node' && ($nid = arg(1)) {
$nid = arg(1);
}
Am I on the right track? If not, some advice would be much appreciated.