How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

I’d like to implement Views that conditionally show or hide item listings of content nodes to the current User based on: (1) value(s) in the current User’s profile and (2) value(s) in the profile of the author of each item and (3) value(s) in each content... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How to retrieve Apache Solr’s current search filters?

I’m using Apache Solr Search, Search API and Facet API. Is there a way to retrieve the current search filters being used when using Apache Solr on Drupal? For example: I have a website using facets which reference a taxonomy called colours. In this facet,... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Send mail once content approval of custom content types

I am creating one Like job posting custom content type.The permission for only posting the job for recruiter.After Post the job I need the approval for publishing permission from admin. My thought when recruiter post the job i want to send the mail like recruiter post... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Displaying the contents of a document file (doc, docx, etc.)

I’m looking for a way to display the contents of an uploaded document file such as a .docx file. In Drupal 6 I used the iPaper module which did the trick as all I needed was api code to connect with the service, and the documents were able to be kept private.... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

RDBMS-independent way to get table primary key?

Let’s assume we have Drupal instance with second database connection. Tables in that second database are shared between many systems and thus was not created using Drupal’s schema functionality. How do I get the name of the primary key, in a universal way... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How to create charts in Views using Google Analytics data?

I’m trying to generate charts in Views using Google Analytics data. I have the Google Analytics Reports module installed, but this module doesn’t allow aggregation of data which make charts very difficult to develop. Does anybody have a working solution to... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How do I removed the breadcrumb from the front page?

I am trying to remove the breadcrumb from the front page. I am using the Bartik theme. I have a page–front.tpl.php template file and I tried to removing the following code lines. <?php if ($logo): ?> <a href="<?php print $front_page; ?>"... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Average value of integer field using views

I set up a multi value cck integer field for rating purposes. It has values 1|good 2|bad 3|dont know Users voted like so: 3 votes for good 2 votes for bad 4 votes for dont know I want to make an average from all values. In views 3 I checked grouping and set group type... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How to programmatically create a custom panel pane

I created a custom panel layout with Panels 3 (following this excellent link) and my layout is ready. Now I have my static markup ready for a node (I can use it on the article or a custom content type) and I want to find out how to create a custom panel pane... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How can I get the machine name of a taxonomy term knowing its tid?

Is there any table in the database that shows the relationship between vocabulary and taxonomy, or is there any way to find out the vocabulary name of a particular taxonomy from its tid? read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How do you disable Cron on a staging / dev server?

I have a staging and dev setup, but I wonder if I can disable cron on these as I don’t want cron firing. It’s mainly because I have backup migrate module scheduled to backup my site everyday, but I don’t want this executing every time. read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How do I set the options for a programatically created content type?

For example, if I want to set ‘Publishing options – Promoted to front page’ to 0 in a .install file when creating a new content type. I’ve looked in the variable table, where I was expecting to see variables for these options, but it’s... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

exporting/importing nodes without losing disqus comments / social media stats

I’ve been working on a website and the live version there is still content being created while i develop the local site. Whats the best way for me to import the new nodes that have been created on the live site into the local site without losing the disqus... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How do I import product category based on taxonomy vocabulary?

I have a products catalog based on taxonomy vocabulary, as advised the term reference field is on the product content type. Products imports are working fine, but when I try to import product displays the mapping for term reference (Category vocabulary)does not appear... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Rate module and rule integration

I don’t fully understand how the rate module integrates with rules. Here’s my situation: 1) I created a widget of the type: Number up / down widget which allow users to vote in nodes of the Answer content type. 2) I created a rule which is fired in the... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Getting $head_title in my module

I am building a module that requires me to get the $head_title variable in the hook_node_view for some processing…I have found info about that variable in relation to themes and around core, but not getting it in a module…I have successfully used... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Redisplay Captcha on form error in Ajax form submit

I have a Fancybox form and the form is sent via Ajax. I know that there is the error about “reuse attack” for Captcha, but this is not my case. When I wrong the form (some required fields missing) I see the fieldset of Captcha, but no Captcha inside.... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Does Drupal modify folder permissions during runtime?

Does Drupal modify the permissions on folder within the sites folder? Is there an edge case where this is possible outside of install? I’ve been seeing an issue where a sites folder whether it be default or blah.com is getting it’s write permissions... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

How do I create a file download popup form?

I am new to drupal, and I want to create a popup form with with form fields for name and email, and a buttom to download and to close the popup. When users click on the download link, the popup form appears; users enter their name and email address; once the data have... read more
How to filter a view based for the current user based the value of custom fields in his profile and fields in the list of items viewed

Multipage registration form with Ctools

I’m trying to follow the tutorial on multipage user registrations at http://www.grasmash.com/article/building-multistep-registration-form-drupal-7-using-ctools, but I’m doing something wrong. As it’s written, if I put function... read more