Friday, October 26, 2012

Drupal login URL

If you have removed Login from home page , you can login to Admin by following link

http://sitename.com/user

OR

http://sitename.com/index/user

How to hide "No front page content has been created yet" in the Drupal Frontpage

And easier solution is to unset or to empty the proper theme variable either in hook_preprocess_page or in page.tpl.php
In hook_preprocess_page() ...
<?php
 
if($variables['is_front']){
   
$variables['title'] = ''; // This is optional ... it removes the default Welcome to @site-name
   
$variables['page']['content']['system_main']['default_message'] = array(); // This will remove the 'No front page content has been created yet.'
 
}?>
In page.tpl.php, put the following somewhere below the big commented section at the beginning of the file ...
<?php
 
if($is_front){
   
$title = ''; // This is optional ... it removes the default Welcome to @site-name
   
$page['content']['system_main']['default_message'] = array(); // This will remove the 'No front page content has been created yet.'
 
}?>

Set Front Page in Drupal

Publishing to the Front Page

Many articles of content you create may not qualify as 'good enough' to be the first thing your visitors see. However, when it is, Drupal provides a good solution for you.
When adding content, scroll down to the bottom of the page and select 'Publishing Options'. You will notice that you get a new set of check boxes. Now you can select 'Published to the Front Page' and Drupal will automatically 'tag' your post to display on the Default Front Page. Each article/blog-post/etc that has 'Published to the Front Page' selected will be displayed from newest to oldest.
PublishingToFP.png

Placing a Specific Piece of Content at the top of your Home Page

Many websites will choose to place a 'Welcome' message at the top of their front-page, or perhaps you as the designer have a certain piece of content you want everyone who visits your page to see every time.
When adding content, scroll down to the bottom of the page and select 'Publishing Options'. You will notice that you get a new set of check boxes. Now you can select 'Sticky at the top of Lists' and Drupal will automatically 'tag' your post to display at the top of the Default Front Page.
StickyAtTop.png

Selecting Your Own Default Front Page

After creating your content, you can make one of those items your home page. Go to the page you would like to use and note the URL (usually node/1 for your first content-page created).
The URL must be the system URL (eg "node/1"), not an alias such as that generated by another module or one you've assigned to a node yourself ("pretty-url-1.html").

How to manage site slogan

Drupal 6, these options are located at Administer > Site Building > Themes > Theme name > configure. In Drupal 7 they are at Appearance > Theme name > Settings. These options are:

Name: This shows up in the title bar of your browser when you visit the site, and optionally at the top of every page if you’ve turned on the “Site name” option. The Name can contain HTML entities (for example, &eacute; for é).

Slogan: A short blurb that shows up in the browser’s title bar on the site’s front page. If you’ve turned on the “Site slogan” option, it also shows up in the header region next to the name, in a similar (or complementary) style.
Drupal 6 allows for some additional things to be set on the Site information page:
Footer message: This appears at the very bottom of every page, below even the “footer” regions for blocks. It can be full HTML, and in fact many designers put links in this area. Drupal 7 has removed this section, but you can add it yourself this way