Wednesday, 23 September 2015

drupal 7 how to add exposed form view to pages

Go to the view you want to use the Form from . 

In advanced you can add ‘Exposed form in a block ‘ 

SAVE - Clear Cache. 

Once you do this then go the Page you are changing in Pages

Add content to a Panel 

> in the tab Views you will now see the form . starting with ‘exposed : ‘

Thursday, 17 September 2015

To Add a New Display in Drupal 7 Display Suite.

> Navigate to ‘ Structure > Display suite > View modes > add a view mode

drupal 7 display suite mode not showing

Then go to the Display of the Article Type etc

> structure/types/manage/ARTICLE TYPE /display

> scroll down and find 'Custom display Setting' 

> select your display suite mode from here and save. 

Monday, 14 September 2015

Drupal 7 Feed Importer Notes.

Just a couple of notes I've made regarding the Feed Importer.

Using Views and Feeds to Import. 

Tips -

  1. Save as ‘Windows Comma Separated Value’  
  2. Just Import New nodes
  3. We can expire nodes here. 
  4. FEED TAMPER - use if you want to make modifications to any fields. i.e. many php functions like rewrite, regex etc.  

Whats comes with Feeds. 

  1. Feed import
  2. Feed Import Base
  3. Feeds
  4. Feeds Admin Ui
  5. Feeds News
  6. Feeds Xpath Parser 

Twitter API working locally but not Live.

I had this issue recently and could not find and resolutions for it online.

After checking in Firebug > Dom >  I could see this issue

2015-08-25 10:03:24PHP errorPHP Fatal error: Cannot redeclare class OAuthException in jquery-social-stream/twitter.php on line 0 request_id="v-863a6920-4b10-11e5-bfa3-22000a22a668”

The solution for me here was to in the JQuery Social Stream JS file.  There is a class call for OAuthException  .  By wrapping that in an argument that checks whether it exists fixed my issue.

// redclare issue fixed by if statement

if (!class_exists('OAuthException')) {

  class OAuthException extends Exception {

    // pass




Thursday, 10 September 2015

error: unable to unlink old 'sites/default/settings.php' (Permission denied)

Here's and easy one I keep forgetting.

Not only do you need to change the permission on the file but the folder too.

Tuesday, 8 September 2015

Write the Compass sprite configuration that assembles a sprite sheet by placing each image in the "ui" sprite map where it best fits.

Write the Compass sprite configuration that assembles a sprite sheet by placing each image in the "ui" sprite map where it best fits. 

The answer for this is 

$ui-layout: smart;

What can catch you out here from the examples is the UI value ; which was ICONS in the video example will need to change depending on the map/folder being used.  

Friday, 4 September 2015

Error : Errno::EACCES on line * Permission denied

The answer for me was to delete all my .css files that where being created.