Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Creating a unique home page template, Drupal 7 theme

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 101
    Comment on it

    Drupal Provides you lot of option to creat a unique home page or say site front page. This could be achieved by number ways bdefined below.


    1. Firstly Access the /sites/all/theme[active theme], copy a page.tpl.php page and paste it in same directory but you need to rename it as page--front.tpl.php, Now save the file and clear the drupal cache. Drupal will now automatically display the new template `page--front.tpl.php` file as a site's home page
    2. Using views you can easliy ass ign a view page as a site home page. With use og Panels you can easily mmake complex page layout


    list of suggestions you can employ to theme various pages in the Drupal system:

    1. page--aggregator.tpl.php /*Aggregator pages. Used for group of pages*/ 
    2. page--blog.tpl.php /*Blog pages (but not the individual node pages). Used for group of pages*/
    3. page--book.tpl.php /*Book pages (but not the individual node pages). Used for group of pages*/
    4. page--contact.tpl.php /*Contact form (but not the form content). Used for group of pages*/
    5. page--forum.tpl.php /*Forum pages (but not the individual node pages). Used for group of pages*/
    6. page--poll.tpl.php /*Poll pages. Used for group of pages*/
    7. page--user.tpl.php /*User pages (This affects both the user pages and the login pages).  Used for group of pages*/ 
    8. http://www.demosite.com/node/2 /* assigning a specific template to a specific page, we can use  page--node--2.tpl.php , this will only affect the node/2 display page*/
    9. page--user.tpl.php /*Will affect entire group of users*/
    10. page--user--1.tpl.php /* wil affect individual nodes*/
    11. page--user--%.tpl.php. /*This new template page--user--%.tpl.php will now affect all the individual user pages without affecting the login pages.
    12. page -user--1.tpl. /*Designating a specific template for a specific user, when the user with ID=1 logs into the site, they will be presented with this template*/


    Thanks

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: