Closed (fixed)
Project:
Views (for Drupal 7)
Version:
4.6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
3 Jan 2006 at 21:12 UTC
Updated:
14 Jul 2006 at 18:30 UTC
Jump to comment: Most recent file
Comments
Comment #1
merlinofchaos commentedI have that capability in the 4.7 version, but it is somewhat lacking in the 4.6 version, I agree.
In the 4.7 version I have views_build_view() which has a few more options (all of which are important). If you would like to try to adapt that to the 4.6 version of Views, and can provide a working patch, I will commit it; I don't want to spend too much time adding features to the 4.6 version, though; the 4.7 version is significantly different at this point, and the future of Drupal is 4.7 and beyond (even though it'll be quite some time before 4.7 is really ready for people to use, given the module and theme updates that have to be done).
Comment #2
merlinofchaos commentedActually, using the 4.7 method will probably be a lot of work.
I'd be ok with the just a views_render_page() function.
Comment #3
bomarmonk commentedI'm not a coder, by any means, but I think this function is so simple it really doesn't need any review. Here's the render patch for Drupal 4.6.
Comment #4
merlinofchaos commentedThe patch didn't get attached. (Sometimes they get lost if you attach, then preview, then submit)
Comment #5
bomarmonk commentedOne more try? Hopefully!
Comment #6
bomarmonk commentedOh, one thing I've discovered: this added function only works if you allow the view to create a URL.
Comment #7
texas-bronius commentedThis is great. I couldn't apply the patch in the method described in Handbooks, but appending it by hand at the end of views.module, it appears to work as expected.
Comment #8
michaelangela commentedThis is a cool patch! I am only trying it out now, and I only added it manually appending it to the end as bcswebstudio mentioned. I modified it to work as a function call to be called within PHP type content sections so it can be in a story, page, etc. I am trying to see now about having it render without the links and other information though.
Thanks!
Comment #9
merlinofchaos commentedComment #10
dnorman commentedThis is cool. Any ideas on a way to enable users (not geeks) to embed Views, say through the WYSIWYG editor? We're rolling out Drupal on campus here, and some end users will want to set up "news" or "events" pages within their various content pages. Ideally, a TinyMCE "Insert View" component would provide them with a list of available views, and embed the code into their content.
Any ideas?
Comment #11
RayZ commented@dnorman: You mean like the Insert View module?
Comment #12
RayZ commentedComment #13
merlinofchaos commentedSounds like a TinyMCE feature request to me.
Comment #14
dnorman commentedYeah - I was looking for an "Embed View" module, and didn't find that particular module. That should totally do the trick. I'll see if I can whip up a TinyMCE plugin to help out the users...
Thanks for the pointer!
Comment #15
(not verified) commented