Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-3.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
2 May 2008 at 08:55 UTC
Updated:
2 Jan 2014 at 23:45 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
merlinofchaos commentedSee http://views.doc.logrus.comf
Comment #2
merlinofchaos commentedErr, http://views.doc.logrus.com -- dunno where that f came from. :P
Comment #3
moshe weitzman commentedAlso see http://groups.drupal.org/node/10129.
@merlin - consider adding an Embed link like you did for 'Theme: information'. It would have some example embed code.
Comment #4
merlinofchaos commentedI'm not sure I want to put embed code as part of the view information stuff; but more documentation on the topic could be valuable, I suppose.
Comment #5
merlinofchaos commentedOh, there's also the very helpful function views_embed_view() -- meant ot make it very easy to embed a view using the preview() functionality.
Comment #6
merlinofchaos commentedChanging title to reflect what needs to happen here.
Comment #7
brad.bulger commentedIt would be very helpful to have some documentation somewhere about how to convert calls to views_build_view() to views 2.x. Specifically, how to achieve the same effects as using the old $use_pager, $limit, $page, $offset, $filters arguments. If this is already written, then maybe including a link in the documentation for views_embed_view()? Or some kind of "Upgrading embedded view calls" or suchlike? I cannot find anything like this. Thanks.
Comment #8
dawehnerAdd tag
Comment #9
esmerel commentedComment #10
iamjon commentedThere is a an advanced help page for this already:
http://views-help.doc.logrus.com/help/views/embed
If it is not sufficient I created a patch that borrows heavily from here:
http://thedrupalblog.com/embedding-view-drupal-6-using-views-embed-view
And expands the existing example...
I'm not too sure it's necessary though.
Comment #11
dawehnerOh this example code is sadly wrong. It should be
Comment #12
iamjon commentedThanks dereine,
So the arguments must be passed as strings not an array?
Patch attached.
Comment #13
iamjon commentedChange status
Comment #14
dawehnerThis is better.
Comment #15
esmerel commentedThis appears to already have been committed in 6.x-3.x