Drupal 7 Views - How to show a global text message publicly but hidden for logged in users

How to show a global text message publicly but hidden for logged in users

Such a scenario might include cases when you need to show a public message intended for users to signup and register to avail restricted contents, such as:

Drupal 7 Views - How to restrict views page and contents by taxonomy term role, but provide a global text message publicly

How to restrict views page and contents by taxonomy term role, but provide a global text message publicly

In some instances, you may want to restrict your views page (in this case to permit only selected roles to view contents categorized in certain taxonomy terms). You also, however, will want some text available and viewable publicly on the same Views URL or page. To do this, you may follow these simple steps.

Drupal 7: How to insert or embed a webform and block into a node or content type

How to insert or embed a webform as a field display or block into a node or content type in Drupal 7

To insert or embed a webform, whether as a block, field display or another webform node in any content item node without any coding, any of the following options can work:

Media modules Fatal error: Call to undefined function media_include_browser_js() in

As of Drupal Media module version 2 and 3, there are a lot of modules, contributed or custom which have yet to upgrade its code to complement with Media's major overhaul. Notably, this error I kept encountering with Drupal 7 projects:

Fatal error: Call to undefined function media_include_browser_js() in

To troubleshoot and fix this:

Google map display, view or block using address or location from Taxonomy Terms

Use Taxonomy Term Google Maps module to get a Google Map from fields using Taxonomy Terms. It simply provides an option to select the terms defined under each vocabulary. This just uses Google APIs. The APIs return the geometry.location of term title and marking its position on Google map

Scenario / Useful if you have:

Responsive Grid Modules for Views in Drupal 7: Best Modules and How to Use

There are a lot of grid modules for Views in Drupal 7. Below are some of the views grid modules for Drupal 7 that works well out of the box, at with some configurations as required. Listed are some some challenges and best features for the following grid modules:

Taxonomy term (Content), without additional contextual filters and relationships, the View does not seem to output or work properly when using default formats

Use case: 

TVI to use customized View display generated from the Taxonomy term (Content) template

Issues: 

Off the box from the template Taxonomy term (Content), without additional contextual filters and relationships, the View does not seem to output or work properly when using any of the following:

BX Slideshow
FlexSlider
Grid
Jump menu
Slideshow
Superhero Portfolio
Table

Drupal user login page error and issue redirected to user/login?destination=user

On Drupal 7, you suddenly experience a login user page being redirected to a non-working or blank page at /user/login?destination=user. On below example, you notice the login form will not work as no form fields are being displayed. Even on source code, the same form fields are missing.

Drupal user login error, redirected page

How to insert and attach a webform per content item or node in Drupal 7

Attach a webform inside or per node content item in Drupal 7

For many instances, you will need to have a unique form for each of your webpage. For instance, a product page with an inquiry message for this item. You will find that the usual webform setup will not be ideal for such since a webform can only be used globally and not specific per node. As such, enabling Webform functionality per content type does not seem a straight forward solution either. Before trying to create a custom module or functions, try solution provided by the Webform Default Fields.

How to Subtheme, clone or duplicate an existing, base or parent theme for Joomla version 3

  1. Go to Extensions > Templates > Templates
    Sub-theming Joomla template
     
  2. Select default or parent template, then click on Copy Template
    Sub-theme or clone a Joomla template version 3
     
  3. Copy the default en-GB.tpl.ini file, normally en-GB.tpl_templatename.ini

Pages

Get reliable web hosting services

Recurring donation

Make Donation

  • Other: $

Donate now

Single donation

Make Donation

  • Other: $

Donate now