Posts

Showing posts from 2014

Features - Issues

1. Features and field collection has some issues. When you upgrade field collection from field_collection 7.x-1.0-beta7 to field_collection 7.x-1.0-beta8, field collection add index to field collection fields.So feature will show overridden state. Line 88 Line 88 'cardinality' => -1, 'cardinality' => -1, 'field_name' => 'field_sit_test', 'field_name' => 'field_sit_test', + 'indexes' => array( + 'revision_id' => array( + 0 => 'revision_id', + ), + ), 'module' => 'field_collection', 'module' => 'field_collection', 'settings' => array( 'settings' => array( Solution: Recreate the feature and update. https://www.drupal.org/node/2248943 htt...

Drupal services

http://localhost:81/drupal30/article/node/1.xml http://localhost:81/drupal30/article/node/1.json article => end point node => resource 1=> argument .xml => response format .json => response format example response: {"vid":"1","uid":"1","title":"Test article","log":"","status":"1","comment":"2","promote":"1","sticky":"0","nid":"1","type":"article","language":"und","created":"1406884421","changed":"1406898936","tnid":"0","translate":"0","revision_timestamp":"1406898936","revision_uid":"1","body":{"und":[{"value":"Test article","summary":"","format":"filt...

Global redirect

Global Redirect searches for an alias of the current URL and does a 301 redirects to it if found. This prevents content from being displayed on multiple urls when the path module is enabled. Displaying duplicate content at multiple url's can cause a loss of search engine site ranking Checks the current URL for an alias and does a 301 redirect to it if it is not being used. Checks the current URL for a trailing slash, removes it if present and repeats check 1 with the new request. Checks if the current URL is the same as the site_frontpage and redirects to the frontpage if there is a match. Checks if the Clean URLs feature is enabled and then checks the current URL is being accessed using the clean method rather than the 'unclean' method. Checks access to the URL. If the user does not have access to the path, then no redirects are done. This helps avoid exposing private aliased node's. Make sure the case of the URL being accessed is the same as the one ...