All Questions
135 questions
0
votes
1
answer
478
views
What configuration is required to use date_views with a field?
I have a custom entity "referral" which is available for views:
function mymodule_entity_info() {
return array(
'referral' => array(
'label' => t('Referral'),
'controller ...
0
votes
1
answer
548
views
Sorting Views by Day and Month only
For a Birthday field using the Date module, Views sorts it by year. This puts the dates in basically random order once you format it to display only the month and the day. Could it sort by day and ...
0
votes
2
answers
873
views
Show all events that are active between two dates chosen from exposed date filter
I have a problem in showing views results with an exposed date filter in D7 views 3.x.
problem
We have several events with a date field. It is required to fill in a start and end date.
We want a ...
5
votes
2
answers
2k
views
Views not showing date field in proper time zone
I created a node type with a date field (from the date module). I list nodes of this type in a view. The problem I have is that the date values being shown by the view are in UTC (ie as they are ...
1
vote
1
answer
536
views
Change the default timezone variable_get from views
What I want is to change the way drupal views get the site's timezone setting. I want to set it manually in code.
Searching through the files I noticed that the function "views_get_timezone()" in ...
2
votes
1
answer
671
views
Multiple Date Argument Values with One Contextual Filter
I have a pretty simple view in D7:
Fields
nid
title
Contextual Filters
nid
date (from date, monthly granularity)
Now I'd like to fetch some results for a specific node, but across multiple months....
3
votes
2
answers
900
views
Expose Date Filter instead of Start & End Dates
I have a content type event with start and end dates marked. I have create a view with exposed filter, where in users can choose a date and see the event on those days. Right now, view is only ...
5
votes
2
answers
2k
views
Passing dates or date ranges into a view as arguments
Drupal 7, Views and Date modules installed.
I have a view on a content type with a date field (timestamp, but I can change it if necessary)
When I use it in filter criteria, I have no problem to use ...
1
vote
1
answer
589
views
How to make a chart in Views with date as x-axis (using the charts module)?
I want to make a simple view using the Charts module.
The x-axis will be a custom field of type Date that I want to show in Y-m-d format and grouped by the same date. The y-axis will be NID with ...
5
votes
1
answer
2k
views
jquery date picker in views exposed filter changes the date values
I have a node type "tasks" and created a view so that current logged in user can see his/her assigned tasks. I have used a "time ago" formatter in the field "deadline" which shows the remaining time ...
3
votes
1
answer
1k
views
Filter date from current date to upcoming 7 days?
I have a week type calendar view. It currently displays form SUN to SAT of the current week.
But I need to display it starting from current date to current date + 7 days
How can I achieve this?. ...
0
votes
1
answer
2k
views
How to give default today date value in exposed filter?
I am using exposed filter condition for date field in views.
I want to see the data in view by current date as default ..for that i am trying to give date field should be default by today date and ...
0
votes
0
answers
74
views
Relative date filter views block is cached for anonymous users
Drupal 7.74, views 3.24 (latest)
I have a view which uses a date field to filter and shows on: less than or equal to "now"
I display the view in a block.
With caching for anonymous enabled, (...
0
votes
2
answers
122
views
Display multiple timezone values from a single date/time entry
In Drupal 7 Views Date/Time field, is there a way to generate multiple timezone values from a single event date, with start and end values?
For example, if an event is entered into the start/end Time ...
1
vote
1
answer
3k
views
Views date exposed filter by year in checkboxes
I have date field. In views I want to add the a date exposed filter.
This filter will only display year and we can select multiple years.
Just like this
I have checked the better exposed filter ...
1
vote
2
answers
717
views
Views date filter by year - only one select list for the year
I have a content type "news" and a views page to list the news. The views contains a exposed filter (category and year).
How can I realize the select list "Year" with the follwing options as exposed ...
0
votes
0
answers
80
views
Date iCal Date & Time Not Passed on Correctly
I'm having an issue with the Date iCal module where the specific time is incorrect. The date is correct, the title and body are correct, but the time itself is incorrect.
It just defaults at noon ...
3
votes
5
answers
3k
views
Views and how to get calendar taxonomy legend
In the below image example, the person has a taxonomy legend (lower right hand corner):
How did this person get the legend? From his blog:
After [adding taxonomy term fields] let's hop back to ...
1
vote
1
answer
631
views
Compare two same fields with time difference in Views, using node revisions
I'm trying to build a view containing two columns: first is the actual value of a (integer) field, second is the same field with its old value from two weeks before, using the revision. I suppose I ...
0
votes
1
answer
28
views
Rotate Specified # of Views Results on a Time Based Schedule
I have 1000 results in a View Block. It contains a title and a teaser body. I want to be able to show 10 different results every week. How can this be done using Views? Or is there additional modules ...
0
votes
1
answer
180
views
Show content with a date after the current one on a view
I'm creating a calendar of events with Drupal 7 using views. At the moment the elements are shown in order of the date of each one (I have a date field where I put the date of the event). Now I need ...
1
vote
1
answer
98
views
Calendar module translation
I have installed the Calendar module and would like to translate a few fields:
At the above screenshot, I'm looking for the day strings ("Sun", "Mon", "Tue", Wed",...). I've been searching everywhere,...
0
votes
1
answer
2k
views
How to add month and year dropdown to calendar month view
I want to add a month and a year dropdown to the month view of calendar so a user can jump to any month from the dropdown and can jump to the year, if selected. (Users can pick month OR year and will ...
0
votes
0
answers
107
views
Error 500 when adding contextual filter in a view
I am working on a site for a radio.
I need to show the programmes in a schedule table.
People in the radio used to do it with an Excell document saved in html, I displayed in an iframe. Now I want the ...
1
vote
1
answer
1k
views
Views Contextual Filter by current day
I am using the Date Repeat Entity module for generating a checklist for users. I am able to use Views to display the list in chronological order for tasks relevant for the current user using a ...
6
votes
3
answers
804
views
How to mass update recurring date rules?
I would like users to be able to mass update recurring date rules possibly using VBO and Rule sets.
For example: user would like to add "exclude date = 01/01/2012" recurring date rule for all ...
0
votes
2
answers
643
views
Is there a date / time format that only shows minutes if they are non-zero?
I want a time/date format in a View that renders like this when a time ends in :00
Sep. 16, 2017 - 2pm
BUT, renders like this only if minutes are present:
Sep. 16, 2017 - 2:30pm
Currently, I use ...
0
votes
1
answer
93
views
How to show event calendar with active links and event details underneath
I wanna show a page with calendar by month and all the upcoming events that fall within that month underneath.
So, on the page, I'd have this calendar that shows the current month:
Underneath I want ...
0
votes
1
answer
107
views
Change Created Date to date from field_post_date
I am changing a large amount of news content types 'Created' dates. I figured out to use VBO with execute php and this code...
$entity -> created = strtotime($entity->field_post_date[...
0
votes
1
answer
118
views
Calendar View Remove Duplicate Items
I'm using Calendar module to display a list of nodes with fields related to that specific days. I am handling multiple date fields using contextual filters.
For example, if an item has a Preview Date ...
0
votes
1
answer
253
views
Multiple date fields
I have a customized Calendar view. When I created the view using the template, it allowed me to select one field to be used as the date.
Is it possible to have multiple date fields, for example Due ...
3
votes
5
answers
3k
views
Is it possible to have placeholder text on a view filter with type date_text?
I've got an exposed filter on my view that allows users to specify a date, and I want to specify a placeholder for this text field.
I've tried doing this using the following code in a hook:
$form['...
3
votes
4
answers
7k
views
Which hook or tpl file controls the output of a view (to manipulate the results)?
I am creating a recurring events views page, but currently the output of my view is displaying multiple references of the same date event. I am also not using Fields as an output, I am using content|...
2
votes
0
answers
357
views
Date filter GRANULARITY for Search API VIEWS
I am working on Search API view. There is a Date Exposed filter. The requirement is we have to filter based on Month-Year instead of Day-Month-Year. But there is no Granularity option to select for ...
2
votes
1
answer
52
views
How do I change the date format of a single result?
I have a view that gives me a list of nodes titles and when it was last updated.
I want to display the changed date with only time if it is today, otherwise I just want the date, e.g. 17.00 or 15 ...
0
votes
0
answers
30
views
How to make my date field show up in a view?
I have a content type "Appointment" that has a date field. I collect end dates in that field as well. I have to create a view that lists the appointments in the system. When I add the "appointment ...
0
votes
1
answer
17
views
Grouping content by Years (For eg Archive 2014-2015 or Archive 2014-16)
I want to group my content type to group by years in views, for example Archive 2014-2015 or Archive 2014-16. How can I get this groupings?
Archive 2013-2014
-COntent 1
-Content 2
-Content 3
Archive ...
0
votes
2
answers
50
views
Node post date in views exposed filter as a select list
I want to add a node post date exposed filter to the views in the following format.
The date exposed filter will be a select list with the following options:
All
Today
Yesterday
Past Week
Past Month
...
1
vote
0
answers
18
views
show only empty available times
I am using the Calendar and Services Views modules.
What I am trying to achieve is a service view (JSON) that only lists available times for that day (hours list). It would be nice if, when a new ...
-1
votes
1
answer
241
views
How To render calendar view header programmatically
I am using Page calendar and I want to print calendar view header in a different block. How can I achieve this?
0
votes
2
answers
472
views
View filtered by a Date field's value being in "last month" shows July content on July 31
A View is filtered by a Date field's value. The Date field's month must be last month in order to match the filter.
On every day except July 31 it would return results from last month. It should ...
3
votes
1
answer
2k
views
Group repeating dates in Views
I have this scenario:
The contenttype "event" has a date-field (with repeat-options). All repeating events are repeated for a certain timespan once a week.
I want to achieve this views-block:
Show ...
0
votes
1
answer
305
views
Views - Filter Dates/Years
I'm stuck on a necessary component for a website I'm working on.
I've got a content type called "Photograph" which has a variety of fields including one for "Date", which includes a variety of ...
0
votes
1
answer
291
views
Display Count of associated nodes as "more" in Calendar View?
I'm using the Drupal Calendar module to create a monthly calendar view. As is default behavior the monthly calendar shows a list of the days events on each day. I have the Format Settings set to only ...
2
votes
3
answers
518
views
How to customise calendar week view's day title?
For example, how can I show Jul 4 (Mon) instead of the default Mon as day title?
3
votes
1
answer
83
views
Date math in View table
Sorry for any incorrect terminology; I'm new to Drupal so it's possible that I'll mess up the Drupal-specific vocabulary.
I'm putting together a View->Page with a Table Format.
I've got a field in ...
2
votes
1
answer
663
views
How to use hook_views_query_alter to catch last DELTA of a multivalue date field?
I need a View that should list only past events.
Events have multivalue date fields, so an event can have multiple "start" and "end" dates.
Date's API assign a DELTA value to every group of "start" ...
2
votes
2
answers
1k
views
How to show event title and time in calendar block?
I have create a view based on the template. The events are shown up properly as a link in the calendar block:
How to I add also the event name and time (similar to the month page)? i.e.:
1
vote
1
answer
245
views
Scroll Calendar View so that it Centers (vertically) on page
I've designed a calendar of events. It uses a Next and Previous pager. With the theme I am using, the top of the calendar displays part way down the screen when first viewed. The user typically ...
1
vote
1
answer
865
views
Views to display events with single date events and events with date range
I have a views view that displays a list of events. These events have a start-date and an end-date. I have two exposed filters, one for the start-date and one for the end-date, so that users can ...