Can't insert a view into a Contemplate
rry - January 14, 2009 - 05:13
| Project: | Insert View |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
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?

#1
Can 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
#2
I'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.)
#3
Hi 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
#4
Yeah, they don't. Attempting to add the code to the contemplate crashes the entire module. I'm not entirely certain why.