A new requirement from one of our clients was to create a 'custom view' tab in Drupal my account page. The tab should lead to a page that lists the user’s content in descending order by date of placement. We were all set to create it through code, but interestingly we came up with a different solution. All that was required was just a few minor admin configurations, and the tab was ready in a few minutes. Here are the steps to create a custom view tab in Drupal 7 my account page.
Drupal Views
One of our clients was trying to upload a pdf file on a node page in their Drupal website. The file was more than 25 MB in size and Drupal was not allowing them to upload the file as it had crossed the max file upload limit and they needed this to be done very quickly. As we were in charge they requested to come up with an easy way to do that. If you want to now the easiest way to set the max file upload size in a Drupal site read on to know more.
In Drupal, Heirarchical select list simply means the select list has child and parent terms in Select lists. Getting a search field inside a Drupal view is quite easy but how can we get a hierarchical select list inside the 'Filter criteria'? Read on to know how to get hierarchical select list inside a View in Drupal 7
Sometimes we use Drupal view_query_alter to add or modify the view's where clause. To add a new WHERE clause we may use add_where property. Whenever we use an add_where, it will create a WHERE clause along with an AND condition. There will be some cases were we need to use OR instead of AND. So if you want to know more about how to use OR clause in hook_view_query_alter, read on to know more.
When I was working on a website in Drupal 6 I wanted to theme the pager provided by views in a custom way. Finally I found a solution for the issue. If you also want to theme the pager in a View for your Drupal website you can follow the method below.
In this article we will be explaining how to use hook_views_query_alter() for Drupal views. While working on Views, I came across a problem. In my search option there is a drop-down menu listing taxonomy terms, what I have to do is instead of taxonomy terms I need to give two options and taxonomy terms comes as a subset of these two terms.
How to programitcally call a view using exposed filter was discussed earlier. But if you want to pass a date field to the view's exposed filter form, you have to change your code a little bit. If you want to know how, you may read on.
In one of our recent projects we had to show a slider for a price range. The slider was to be used to show all products with prices between a minimum and a maximum. If we set filters in they will be shown as text boxes. For our project the client requirement was to show a slider above these text-boxes. See the screenshot. The JQuery UI has a good slider widget which will gives the graphical version of these range. We can use this widget with our views 'in between' clause.
Drupal Views provides pagination options. However at a glance the number of items shown in a page seems to be limited. However there is a way to change the number of times shown in a Views page dynamically. If you want to know how to change the number of items displayed in a Drupal Views pager number dynamically then continue reading.
A few Drupal users who had changed one of their widely used Views in their Drupal site wanted to know how to redirect users coming to their old Views to the new one. If you wanted to know how to redirect old Views to a new one after it has been changed in your Drupal site then read on to find out more.
A Drupal user having a Drupal Views plugins wanted to know how to access View plugins options form within Drupal.behaviors. If you are facing the same question while using Views plugins in your Drupal site then read on to find out more.
A number of Drupal users were looking for a way to populate a taxonomy dropdown menu with the child terms of a selection made in another taxonomy drop down menu. If you are facing the same situation in your Drupal site and want to know how to populate a taxonomy dropdown menu with the child terms of a selection made in another taxonomy dropdown then continue reading to know more.
A number of Drupal users wanted to know how to hide the titles from Views panel output. If you are facing the same situation in your Drupal site and want to know how to hide the title from Views panel output the continue reading.
A large number of Drupal 7 users were looking for a way to create a View of related terms in a block in a Drupal 7 website. If you are facing the same situation in your Drupal site and want to know how to create a View of related terms in a block in a Drupal 7 website then continue reading to find out the steps.
A Drupal user expressed interest in wanting to know how to remove the descriptive text beneath the exposed filter in a View. If you are facing the same question with Drupal Views in your Drupal site and want to know how to remove the descriptive text beneath the exposed filter in a View then continue reading to know more.
A few Drupal users were looking to know how to enable contextual filters in Views to accept words instead of ID numbers. This is especially useful in filtering items in a View using a taxonomy term as at a glance, only taxonomy term ids seem to be accepted. If you are facing the same situation in your Drupal site and would like to know how to enable contextual filters in Views to accept words instead of ID numbers then continue reading.
Many Drupal users were looking for a way to limit the number of rows displayed in a Views grouping as Views currently does not provide a way to do that. If you are faced with the same situation in your Drupal site and want to know how to limit the number of rows in a Views group then continue reading for the solution.
A Drupal user was wanted to know How to add a dropdown list in Views in a Drupal 7 site. If you are facing a similar question in your Drupal site then continue reading to find out the answer to the question.
A Drupal user was encountering a Notice: unserialize() [function.unserialize]: Error at offset 1009 of 1036 bytes in views_db_object->load_row() in their Drupal site. If you are encountering a similar error message in your Drupal site then continue reading.
A Drupal user wanted to know how to pass variables from one View to another. The user wanted to pass a taxonomy term from the first View to the second view so that the second View could be filtered by the term from the first View. If you are facing the same situation in your Drupal site and want to know how to pass variables from one View to another then continue reading.