Closed (fixed)
Project:
Insert View
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2009 at 05:13 UTC
Updated:
13 Jul 2011 at 19:51 UTC
Jump to comment: Most recent
I want to insert a view of a user's writings using Contemplate. However, the Insert View format doesn't work when it's inside a template. How can I insert the view when there's no specific input type specified?
Comments
Comment #1
Anonymous (not verified) commentedCan you elaborate on what your trying to do
Contemplate affects ALL nodes of a Content Type lets say "TYPE A"
So from what your saying you want to display a View containing all the nodes of a USER ( DIFFERENT Content Type to avoid recursion Say "TYPE B") on all pages of Content "Type A"
Which may lead to hundreds of pages with similar content, unless the inserted view to a specific user to which "TYPE A" node refers to
May i ask why as something seems to be missing?
If what you want to do is exactly what you state search for Views Embed , I ran across it the other day, but didnt keep a link
Comment #2
rory-- commentedI'm using the Content Profile module to create a node as a user's profile. I want their profile to list recent things they've created, styled in a particular way, and so I am inserting my custom view into the template for that node. I don't know how else I'd add a view directly to a profile. (I COULD technically use an iframe, but that would be incredibly ugly.)
Comment #3
Anonymous (not verified) commentedHi Rory
Unfortunately i have no experience of the Content Profile Module, which makes it a little harder to help.
As an initial thought could you not do it all with CCK and Views 2 ? http://drupal.org/node/357898, ( no answers yet , but an interesting question raised)
Now i will throw in a wild card. Rather than adding the view to the Profile could you include the profile in the header or footer of the view, using arguments to call the correct data?
Sorry i cant really help much further
Just had a thought check this , though it may need updating http://drupal.org/node/170921#comment-598355 or this http://drupal.org/node/327623, not sure if they will work in contemplate
Comment #4
rory-- commentedYeah, they don't. Attempting to add the code to the contemplate crashes the entire module. I'm not entirely certain why.
Comment #5
pasquallein template files you can use insert_view($view_name, $view_display, $view_args);
the tag syntax is only used with input formats..