How can I get a Views block to query information from the page it's assigned to and filter it's output?
Please see graphic below to see what I'm trying to accomplish. (Open in new tab to enlarge)
views relationship http://reubenlara.com/blog/views-relationship.jpg
I found a similar use case here and it solved it.
https://drupal.stackexchange.com/questions/12388/making-a-view-with-a-node-reference-argument
R
Related
I am following the Magnolia CMS documentation -
Creating Page Template. https://documentation.magnolia-cms.com/display/DOCS/Creating+a+page+template
How can I see the properties listed on one-pager-module/dialogs/pages/main.yaml ?
Thanks
How can I see the properties listed on one-pager-module/dialogs/pages/main.yaml ?
Those are dialog fields. For list of possible types of dialog fields see https://documentation.magnolia-cms.com/display/DOCS/List+of+fields
If what you want to see are actual properties with values in a page created by that dialog, log into AdminCentral, go to Tools menu and open JCR Browser in there, select "website" workspace and in the displayed tree of pages expand one you have created. It will list all the properties with their values.
HTH,
Jan
I assume you are looking for all possible options of main.yaml, therefore since its a template definition, one can find the relevant information from: https://documentation.magnolia-cms.com/display/DOCS/Template+definition
Cheers,
I am new to Drupal. I am working on a site that requires me to display the number of nodes (content) in a group/tag. Similar to the way the number of modules and themes currently available for Drupal are shown on the homepage of Drupal.org.
Can anyone help me on this, or point me to the right module(s)?
I seem to understand that this question is a variation of what the purpose is of one of the Out-of-the-box examples that you get by simply installing (and enabling) the charts module, and without any additional configuration.
By doing so, and assuming you have the views module installed/enabled also, a new view is added to your site. Here are some more details about it, quoted from the linked page above (to which I added some formatting here):
You can see the charts created via this new view in your own site by
navigating to charts/examples or by using a menu link with a title
like Charts examples. After doing so, a page is shown with 2 sub-menu
tabs:
the first tab is titled Built-in examples (this example is used to
showcase Using the Charts API).
the second tab is titled Views
example, and is what is created from the new view created during the
installation of the charts module. As an alternative to using this
tab, just navigate to charts/examples/views in your site. You should
then see a column chart and a pie chart, which are followed by a
tabular display also. Both charts and the table display contain data
about the total number of nodes for each of the available content
types.
Since you're new to Drupal, this might be a good starting point to get you going with some of the basic stuff of the Views module. You can use these views to further tune/clone these samples to make them fit your exact needs.
Disclosure: I'm the maintainer of this module,
I hope this does not violate the site's policy on self-promotion.
So, I'm working on a site right now in Drupal that has a block designed to allow a visitor to jump to different "projects" (just a term). Most of the projects have content associated with them. However, some projects become empty from time to time as content is moved around and projects are restructured.
I currently have a view in place that shows an exposed form listing all of these projects as a dropdown and displaying it in a block. Is there a way for me to customize this view to only show projects that have content associated with them?
This would preferably be done entirely with the view. However, I would love to see any solutions you all can come up with. Also, please excuse my terminology if any is incorrect. I'm very new to Drupal and still getting used to the labels and structure of the whole CMS.
Any help would be greatly appreciated. Thx S/O!
Try this:
Edit the view. Under the Advanced section => Relationships, click add.
Add the relationship "Taxonomy term: content with term", and make sure to check "Require this relationship".
If this makes your view full of duplicates, try this answer to a question at drupal.stackexchange.com.
Hope that helps!
I am starting out with views and I wrote an extremely simple view which really just filters if the node is published and if it is of type banner. In preview and when I try to print the view I get no results. When I search through my content and filter by type banner and published, I get 3 results (in /content/node/overview). I must be doing something basic and stupid, any suggestions for how I can figure out what I have done wrong?
I am starting out with views and I wrote an extremely simple view which really just filters if the node is published and if it is of type banner. In preview and when I try to print the view I get no results. When I search through my content and filter by type banner and published, I get 3 results (in /content/node/overview). I must be doing something basic and stupid, any suggestions for how I can figure out what I have done wrong?
View:
http://www.randomcrapilike.com/test/view_capture.jpg
Have you tried creating a block view and then seeing if it outputs properly in the block region on the front end?
A few troubleshooting steps based on your screenshot...
Try including the node ID in the fields section to make sure the issue isn't with your CCK fields.
Try a different display type than 'slideshow' to make sure the issue isn't with that (non-standard) display type.
Try taking the preview query and running it directly against your database. Do you get any results or error messages?
I've a View page with all the content of my website (the node headers). When I click on one of these header I would like to load the complete node without refreshing the page and display it on the left.
Can I do this with Views (I mean.. does it have a functionality to load a complete node and add it to the current page ?
thanks
I think it is possible using Views. Views is much more than just SQL generator.
Views can work with Fields, or with full node. Set it to full node.
Views can work with Ajax - set it to "yes" (I think it is Yes by default).
It is hard from your description to understand the whole picture, so I can't lead you any further. All I can say is that I use Exposed Filter with Ajax and load full node properly, chaning the content of the page.
Hope I helped,
You are welcome to ask me directly for further support.
Regards,
Shushu
No. Views is basically an SQL query generator. You can do what you describe with javascript, but I don't know what modules might be helpful.
Check out Modal Frame - http://drupal.org/project/modalframe
Basically, your view displays just the title, and you have "link title to node" enabled. Rather than jumping to node page, u want to display node content in modal frame pop up.