drupal-views

How to just show NodeQueue block on included nodes?

可紊 提交于 2019-12-23 02:03:20
问题 On my blog I have a series of posts on a common subject that I'd like to link together with a common navigation block, so that readers can easily jump forwards or backwards through the series. I've used NodeQueue to collect all the blog entries together in sequence. Putting the associated block in my sidebar gives me the navigation that I want BUT the block appears on every page of my site. What I want to do is limit the visibility of the block so that it only appears on pages that are

Drupal Views display newest content per taxonomy limit to one node

巧了我就是萌 提交于 2019-12-21 22:29:50
问题 I want to create a view where all 5 of my taxonomy terms are displayed and it then displays the latest node published but this is limited by 1. For Example: Tax Term 1 Latest node published Tax Term 2 Latest node published etc etc Currently I'm grouping by taxonomy term so it's displaying all nodes published then sorted by published date desc. I can't quite figure out how to limit the nodes to only show one item per taxonomy term. Any help would be greatly appreciated. 回答1: This is possible

Fundamental understanding of how Views and Pathauto work together

好久不见. 提交于 2019-12-21 09:17:08
问题 I am having fundamental problems understanding when to use a pathauto rule, and when to use a views page path. I have several custom content types, and I am using blocks to display certain parts of nodes on certain paths. Then I use a views page to display the main node on a path. When I do this, I can't use pathauto, as it overrides the paths I set in views. Eg.. If I set up a views page path of "location/%", and set a pathauto rule for Location content types of "location/[title-raw]", when

Drupal 7 views filter by dynamic taxonomy term

有些话、适合烂在心里 提交于 2019-12-21 06:22:14
问题 I have a few pages (services), each with it's own taxonomy term. I would like to add a view to the bottom. It should contain all nodes (references) with the same term as the main node (service). Could it be done by views? Read something about and tried contextual filter with no success. Image is bellow 回答1: I think you are on the right track. Try changing your validator to "Term Id" instead of "Term Name". I created a block view with the settings you have (with "Term Id" as the validator) and

How to update my view in Drupal 8 without going back to the first page?

别等时光非礼了梦想. 提交于 2019-12-20 04:30:32
问题 I'm trying to refresh my View in Drupal 8 without reloading the page with this code : (function ($, Drupal) { 'use strict'; setInterval(function() { $('.view-message-activity-stream-timeline-public').trigger('RefreshView'); }, 10000); })(jQuery, Drupal); My module : <?php /** * @file * Holds hook implementation for the Message Activity Stream module. */ use Drupal\Core\Entity\ContentEntityBase; use Drupal\group\Entity\Group; use Drupal\node\Entity\Node; use Drupal\comment\Entity\Comment; use

Drupal Views2 Exposed Form how to change

僤鯓⒐⒋嵵緔 提交于 2019-12-19 10:09:05
问题 I have a View with an exposed form . I am trying to a few things on it. Ideally I would like to have a dropdown that fires the form with no button. If that is not possible then I would like to have the button text something different than apply. I hacked it for now and change views_form in views.module but that does not seem like the right way to do it. I only have one exposed form right now, but what if I add more? Please see http://www.wiredvillage.ca/News for my example. I am poking around

How to change the label of the default value (-Any-) of an exposed filter in Drupal Views?

ε祈祈猫儿з 提交于 2019-12-18 12:55:24
问题 I created a view which has three exposed filters. Everything works fine except the fact that I can neither translate or change the default string (-Any-) for the dropdowns. Is there a way to change this string to something more meaningful like "Please Select" and make it translatable so the German version displays "Bitte wählen"? I have two screen captures that may be helpful: and A further improvement would be the ability to change the text "any" to something like "please select a (field

Creating list of similar nodes in Drupal 7/Views 3

[亡魂溺海] 提交于 2019-12-17 21:26:58
问题 Copy from drupal.stackexchange.com hoping to get more answers here: I face a rather common problem of displaying a list of nodes similar to current one. Similar node is defined as one having at least one taxonomy term that current node has. There are few solutions available as modules, however the modules I've found (specifically Similar By Terms) are in beta stage (as in "not working properly") for Drupal 7. I've also found a couple of solutions based on Views and contextual filters (such as

Behance-like content filter possible in drupal?

谁说胖子不能爱 提交于 2019-12-14 04:04:50
问题 Asked the same question here but got no answer, so I'm trying here instead :) Hey, I'm working on a site somewhat similar to Behance. To make you understand what I'm talking about, I'll explain a little bit; I got a content type called say... "Content", which can go into three different categories, "Category 1", "Category 2" and "Category 3". Then, I got a page called "Content filter" where I can see all the content in the different categories. On this page I'm able to filter what should be

Drupal 6, Views 2: Is it possible to have a filter that only applies to registered users?

夙愿已清 提交于 2019-12-14 03:47:44
问题 Is it possible to create a filter in a Drupal 6 View that is only applied for registered users? For one filter I need I'm using the user vote (With fivestar and votingapi) to know if they user already voted this node or not, and when the user is annonymous, is working as if all the votes from all the annonymous users where from the same. This is why I need to add this filter, but ignore it in case the user is annonymous. Thanks a lot in advance for the help! 回答1: If you're comfortable with