hi,
I was in need of a requirement like the below.
1. A view listing a specific content type with some specific fields.
2. On clicking on the field it should show the full view of that node in the same page, where the listing also shown.
I guess it is possible by views attachments.So i followed the steps given in a book.
These are the steps.
1. I created the content type and also the contents for it.
2. Then created a view of node type as page display"/path/"as path and also filtering of that node type.
3. Selected "node:title" in fields
4. I checked the option "Output this field as link", in link path i gave "path/[title]".
5. Then i added an "Attachment" display to it.
Selected the fields to display in this attachment views.
6. Setting "Items to display" as "1" with no offset value.
7. Then i added "Node:title" as arguments.
8. In argument settings for "node:title" in
"title:" textbox i gave "%1".
"Action to take..." : "display empty text"
9. Enabled the checkbox "Transform spaces to dashes in URL".
10. I attached this view to the "page" display.
11. Finally i done some theming to achieve the display i required.
Now,
I got the page what i want.
It displays the list nodes titles.
So when i clicked on any node it taking me to the another display
of the node in the same page but the other links or the nodes
which are listed got hidden.
Please help me in this issue...
I followed this tutorial.
http://www.packtpub.com/article/drupal-6-attachment-views-page-views-the...
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | screenshots.tar_.gz | 106.68 KB | siva.thanush |
Comments
Comment #1
siva.thanush commentedComment #2
dawehnerDid you add the argument to both displays?
You only need the argument on the attachment view, with the single node view.
In general the node: nid as field/argument is a better way to do it, because there are no problems with spaces etc.
PS: you should upgrade to views 2.x-12, because 2.8 has security problems and in the meantime many bugs were fixed.
As always... an attachment would explain the first question.
Comment #3
siva.thanush commentedYa i use arguments for both the displays.
My problem is on clicking any of the item in the left is showing its content
to right side but the left side items are also got hidden.
i need the listing to be remain,So that if i want i can select the
second item and see its details.
Here is my view export.
and i have given the attachment.
Comment #4
dawehnerUpdate status.
Comment #5
siva.thanush commentedActive, and i m using the latest version of view as what you told.
Comment #6
suresh7787 commentedYa,
1. In views create a page display.
2. give the title for that display
3. Give the path name
4. Leave the arguments filed and relationship field.
5. When u r in fields tab press add button to add the fields
6. Add node->title into the fields
7.And then check the output this field as link
8. In that area we have link path field, in that link path field u have to enter your's view name/[title] ex:attach/[title]
9.click the update button to update the page display.
10.click the preview button.
11. Now u hav the list of node titles of a particular content
12. Next we need to give the details of each and every node title so that we are going to add an attachment display.
13. Add an attachment display.
14. Give the title of attachment display in basic settings field and leave others as it is.(if u want to change the style of display u can modify)
15.Come to attachment settings make
Inherit arguments: Yes
Inherit exposed filters: No
Inherit pager: No
Render pager: No
Position: After
Attach to: Page
16.Leave the relationship tab empty.
17. Arguments tab give arguments to node title. Give %1 in the title area,and mark display empty text,check the transform spaces to dashes in URL
18. Click Update
19. Add the fields whatever u need in the fields tab
20. Sort the content as ur wish.
21. Filter ur content as ur wish
22. Over.
Here is the sample attachment view:
Comment #7
_siva_ commentedYa thanks it works.