This group exists as a place for people interested in the group to talk about Views development; all development talk is encouraged here, from people who want to work on Views core to people who are interested in Views' API for their own modules. This is a good place to:
1) ask questions
2) talk about problems
3) propose ideas.
4) talk about views related projects.
This group is now unmoderated, and anyone can join at any time. Public posting of ideas is encouraged.
What I want most out of this is to keep track of what views related projects are going on and their status, and proposals for what people would like to see as Views moves forward.
Note: This is a working group. Do not post jobs here, you will lose your posting privileges entirely. Do not post support requests here; they will be deleted.
help with views 2 working pro-grammatically sorting & filters not working as expected
Hi,
Im using custom module to handle this view.I did many try(find inside the code) but nothing works and also sorting too. Only arguments code works charm. Guide me to right way / help me with solutions.
and here is the exported view link http://pastebin.com/YzzzLEbW
function custom_module(){
views_include("view");
$view = new view();
$display = 'default';
$display_id = 'page_1';
$view = views_get_view('master');
// ensure view exists
if (!$view)
print("Not real");
// set display_id
Read more how to pass argument to exported views code?
Hey people,
I'm working with drupal views and im new to drupal. I did exported the views and creating a widget with that exported views. I have no idea how to pass argument to that exported views.
i just want to pass url args and filter the views result accordingly and also pagination too.
if i pass ?page=0,1 in url it wont reflect any change.please help me with this.
if you like to contact mgobi.php AT gmail.com
Thanks,
Gobi.
Views 3 UI, Review of Concepts
I spent some time reviewing UI design work on Views 3 (And Acquia Gardens "Data pages") UI concepts:
- "Views 3 UX Season is open", February 2010, Yoroy
- "Views 3 UX workflows and ideas, round 1", April 2010, Rasskull
- "View3 UI explorations, part 2", July 2010, Yoroy
- Acquia Gardens "Data Page" concept mockups, Jeff Noyes?
- "More Views 3 concepts", July 2010, Jeff Noyes
NOTE: I have not read all of (or even very much of) the related discussion, so am likely missing important developments.
There are some great "sky-high" ideas in most of these. However I think it's likely that all of them will run into issues as or more significant than the current UI, in that either;
- They will be be too restrictive upon advanced functionality and features and make them difficult or hacky to include in the (in the case of Gardens, that is likely intentional, as advanced features are probably not supported);
- They will have similar types of unforeseen issues to the current UI. Subtle and seemingly minor nuances or even features that actually make a big impact on the UX.
Adding extra operators in arguments
Hello all,
I am currently building a new module that will change the type of operator used in Views queries.
For example, if I add an argument of type: Node:Title, when I add something in the url after the view name, Views will try to find a node which the corresponding Node:Title.
It's doing a equal operator.
My module will help change this behavior and add some other operators like:
<
ul>
Trying to get blog archive block showing on blog archive pages
Im using the archive block that comes with views as a blog archive for my users by setting it to only show blog nodes and to take an extra argument of uid. So that that each user will have their own blog archive block
I've given the page display for the view this path: blog_archive. I want to show blog archive block on all users blog pages - blog/* and on the blog_archive pages - blog_archive/*
However the block only shows on the blog/* pages. It fails on the blog_archive/* pages due to arguments.
Read moreMatching taxanomy terms using Arguments in Views
Hello,
I'm making a slideshows that appear on specific pages for a website, and I want the client to be able to upload images for different slideshows on this website. I have created a content type to upload photos, and add taxonomy terms to assign pictures to a specific program (taxonomy term), and a CCK file field to upload the images. Also, for each page I added the same taxonomy terms so they can assign a specific program(taxonomy terms) to that page.
Read moreEfficient dumping of a view
I've been struggling with this for a while so I thought I'd put it out there to see if anyone had any suggestions—I'm not too experienced with the guts of views.
Read moreDisplaying nodes except the last one
Can't solve one simple problem - trying to list nodes of certain content type excluding the last one. By last one I mean last added. Which, of course have last nid, that I could pass as argument to exclude from views. However, trying different things can't find how to do this.
Read moreModify views filters programatically
Hello.
I have a question and don't know exactly where to ask it. I've been reading some documentation but everything looks a little scattered.
I have a view with a Content Taxonomy field as a filter. It displays a nice drowpdown (force single is selected) and all works fine.
I like how a dropdown is displayed but sometimes I may need to allow selecting multiple terms.
What I did was to uncheck the force single which rendered a multiselect list and then I rendered my own dropdown widget on hook_preprocess_views_exposed_form.
Custom PHP code within a View
I need to run custom PHP code within a view of node type. It is currently posible to only include Global:Custom text field, but it allows including only HTML. It is also possible to run PHP in header or footer sections, but I badly need to run PHP-code in the body of the view in between fields. Is this possible at all?
Read moreMark item as read views column/button
Hi,
I'd like to create a view to replace the default 'tracker'.
This replacement ideally would show only unread posts for the logged in user (it would be unavailable to anonymous), previews of the posts and also a 'mark read' column with a large red 'X' or similar. When the 'mark read' 'X' is pressed, that row should be removed with AJAX, and the server should be contacted to mark that content as being seen by this user.
Now, I know how to do the first two parts of this (show only unread and show previews) but the last part ('mark read') is the sticking point.
Read moreView3 UI explorations, part 2
I'm gonna use comments to post seperate screens so they can be commented on individually and because I like seeing my own picture so much…
- Tried to start from scratch and only add the things needed to get up and running.
- Using D7 core patterns as much as possible. Combining, extending, abusing where needed.
- Not to forget how much we can win by rewriting form field labels and descriptions: http://skitch.com/yoroy/dg8ii/copy
Views Filter Plugin: Wrapping Taxonomy tid
I am trying to dive into Views Plugin writing, and I suspect I've hit the deep end. Not sure where to post this, so I wandered in here.
I'm working on a module I've been calling OG Vocabulary Purpose. The idea is that in every group, an OG Vocabulary can be assigned a particular role. E.g., such and such vocabulary is for project release tagging.
Read moreProblems with custom preprocessing function and template file from the views module
hi,
I know the title doesn't say clearly what this discussion is all about but it's not easy to explain what I'm trying now for more than 5 hours (!!!) without any useful result :-(
Ok, let me explain:
I'm building a community-page. On each user-profile people will see - among other things - a view called "list_groups" (created with the views module) which lists all groups a user has joined. It's a normal HTML list which contains the node titles as links.
Read moreNeed your help to modify the Search Terms SQL query.
I’m using "Search Terms" in my view. but I need it to use LIKE in the SQL and not “=”
How do I change the query from:
where (search_index.word = 'XXX')
To:
(search_index.word = LIKE ('%XXX%')
??
10X,
Daniel
Hooking into views, but skipping the SQL generation step
I have an SQL statement that it seems cannot be replicated in views. It shows the latest blog post for each user, sortable by username, post title or post date. It provides the same functionality as this blog listing page - http://www.cardrunners.com/blog/featured/
I want to make a module based on this statement that will make the /blog homepage look like the one in the site posted above. It is the perfect solution for a community site with alot of users.
Here is the SQL statement -
SELECT node.title, node.created, users.name
FROM node, users
Difference between query for admin vs other users
I'm working with Views (Drupal 6.x) and having a problem. The view works great when run as the admin user, but mysql blows up when it is run as any other user. I can reproduce it directly in mysql if I copy the query into mysql and run it directly. What has me baffled is that I don't get a problem when I run as the admin user. (user 1). I don't have any permissions set that might change the query, but there is obviously something different in the two queries. Any idea how I can see the difference and then make Views use the same query regardless of the user?
Thanks,
Doug
Views slideshow with ContentFlow javascript library
Hi at all,
this is my first post in a group. This is my first module developed and I haven't a clear vision on how publish a release into CVS (or Git). So, if someone can help me to publish the first stable release, contact me. Thanks! :D
This modules use [[http://www.jacksasylum.eu/ContentFlow/|ContentFlow] similar to ImageFlow (but with a MIT license) and extend views_slideshow module to present a slideshow.
This library don't use jQuery but, I have tested with jQuery Lighbox2, seems that should not be in conflict. So, I hope to publish soon a first release.
Combining results from node reference fields with multiple values
I have view that uses fields and grabs node titles - all deltas - from a node reference field via a relationship. Is there a way to get views not to generate a new row for every title that is being returned?
I have a feeling this is getting into hook_views_pre_render() or views_query_alter() territory...
All thoughts and advice appreciated.
Read moreViews block - how to keep the current selected page active between page reloads?
Hi
I have a simple list of node references, which has been been produced via Views - and is being displayed as a block.
When the list is full, it's spans multiple pages. I've enabled the pager which allows the user to navigate between these pages. I'm also making use of the ajax feature to allow each page to be loaded without a page refresh.
My question is, how would it be possible to keep the current selected page active between page reloads?
Read more