Tutorials

Allowing Drupal 7.50 sites to be within an iframe

Following Drupal 7.50 upgrade, a security measure was introduced to avoid Drupal pages to be inserted in an iframe by default, causing the content not being displayed and having this error on the console:

Refused to display 'https://<site>.web.cern.ch/' in a frame because it set 'X-Frame-Options' to 'SameOrigin'.

Since we don't consider a good security measure revert back all the sites to previous configuration, this will be something up to site admins.In this tutorial we are going to see how it can be done properly.

CERN Search module - basic configuration

The goal of this tutorial is about learning how to index contents from a Drupal site in CERN Search. The intended scope is for users who never worked with the search module.

But before performing any action over configuration, it is needed to have the module installed. Log in to the Drupal site, and click on Modules. Enable the "CERN Search Index Tools" module. Once enabled, we can configure it.

 

Add a new role via e-groups to a Drupal site

Think: Is this a person, or is it a job that will continue after that person leaves? The latter: e.g. role = press officer.

First go to e-groups.cern.ch. Check if the group you want already exists before you create a new one. If it does, get the name. If it doesn’t, create new static group. e.g. press-office-editors

Back on your site, go to People>permissions>roles> add role Add the new name for the role, and THINK about which permissions that role needs.

How to show RSS icon for a views feed?

You want the RSS icon to appear automatically? You need to attach your FEED display to one of your page or block (etc) displays which are within the same view.

To do this:

In the FEED view, see Feed settingsand click on Attach to: Noneand select whichever of your previously created displays you want the icon to appear on (NB - you need to create other displays first if you haven't already done so).

Only then the RSS icon will be displayed on the page your feed is attached to.

 

Customised search page/block

An excellent views-based search page or block, free-text search, filters etc. Example at https://cathdev.web.cern.ch/extended-search

See http://nodeone.se/en/customized-search-page for screencast.

Note: to create a search block: in the View, click 'Advanced" and find 'Exposed Form". Select "yes" for "exposed form in block?". This then creates a block you can place anywhere, like a regular block.

Pages

Subscribe to Tutorials

You are here