Archive for the ‘Drupal’ Category
Posted by on 08 Sep 2010 by
Rajeev Pillai in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/how-to-change-drupal-site-offline-mode-to-online’,size:’large’} Once you changed your site mode from online to offline via admin->Site Maintenance, you will not get a login page to login as admin and change the mode from offline to online. So you have to browse like following:
http://www.yourwebsite.com?q=user/login,
Then login as admin and click on “Site Maintenance” menu and [...]
Posted by on 06 Sep 2010 by
kavithags in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/drupal-image-gallery’,size:’large’}
Inoder to create an image gallery in drupal we have to first download two modules Images and Thick Box.
Then goto sites /all/create a folder there called “module” and copy the downloaded modules inside the folder.
Goto administer ->module->image and enable every check boxes
Also enable thickbox option and save the configuration
Goto permission->image [...]
Posted by on 06 Sep 2010 by
ashalekshmir in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/drupal-site-map’,size:’large’} SiteMap module provides a site map that gives visitors an overview of
your site. It can also display the RSS feeds for all blogs and
terms. Drupal generates the RSS feeds automatically but few seems
to be aware that they exist.
The site map can display the following items:
A message to be [...]
Posted by on 04 May 2010 by
Rajeev Pillai in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/inserting-page-break-in-drupal-printer-friendly-version’,size:’large’} Open sites/all/modules/print/print.css and add following lines in it:
@media screen {
.page-break { height:5px; border-top:1px dotted #cccccc; }
}
@media print {
.page-break { height:0; page-break-before:always; margin:0; border-top:none; }
}
after that, put the following code in your Drupal’s page, wherever you need page break :
<div class=”page-break”></div>
Test it and enjoy!
Posted by on 09 Mar 2010 by
gayatri.sa in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/drupal-site-migration’,size:’large’} Migrating Drupal from one folder (or one server) to another is not always as simple as just copying the files and database. All the file paths, configuration data, content, menus & structure are stored in the Drupal database. Hence, just a blind copy will break the new Drupal system.
Steps [...]
Posted by on 03 Mar 2010 by
Rajeev Pillai in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/how-to-get-the-full-url-of-the-current-drupal-page’,size:’large’} One of the easiest ways to get the full path of the current Drupal page is to call Drupal’s url function with following params:
url($_GET['q'], array(‘absolute’ => true));
The fist param $_GET['q'], will give the name of the actions with params and array(‘absolute’ => true) param will tell the url function [...]
Posted by on 02 Mar 2010 by
Rajeev Pillai in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/how-to-remove-links-appear-at-the-bottom-of-the-printer-friendly-send-by-e-mail-and-pdf-version-in-drupal’,size:’large’} Log in as Admin, click on Administer->Content management->Content, then open your page in edit mode, click on “Printer, e-mail and PDF versions” link, and uncheck the “Show Printer-friendly URLs list” check box. Thats all.
Posted by on 22 Feb 2010 by
Rajeev Pillai in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/how-to-include-your-custom-php-page-in-drupal’,size:’large’} Step1: Create a new action for your custom php file in the _menu function in the drupal module file, just like following:
$items['my_php_page'] = array(
‘title’ => ‘Custom PHP Page”,
‘page callback’ => ‘_my_php_pager’,
‘access arguments’ => array(‘access content’),
‘type’ => MENU_CALLBACK,
‘file’ => ‘my_php_page.inc.php’,
);
Step2: Create ‘my_php_page.inc.php file and create an empty function like following:
function [...]
Posted by on 19 Feb 2010 by
jolly in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/drupal-create-content’,size:’large’} To create a content in Drupal
step 1)Include cck and filefield to drupal
step 2)Enable cck
Admin->modules->then enable fields Content,filefield,Nodereference,Number,OptionWidget,Text,User referance->then save configuration
step 3)Admin->content management->add contenttype->type details for name,type & submission form settings->save content type
step 4)Admin->contentmanagement->edit->managefields->add new field->eg:Department and its type->save
step 5)if a field with type userreference then create user role
Admin->usermanagement->roles->addrole
Give permissions [...]
Posted by on 18 Feb 2010 by
jolly in
Drupal
var fbShare = {url: ‘http://sree.cc/drupal/drupal’,size:’large’} Drupal is a free and open source content management system (CMS) written in PHP.It is used as a back-end system for many different types of websites, ranging from small personal blogs to large corporate and political sites, including whitehouse.
The standard release of Drupal, known as Drupal core, contains basic [...]