Drupal - how to remove static node names

Discussion in 'Web Design & Coding' started by ray_gillespie, May 14, 2008.

  1. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Hi guys,

    Is anyone here any good with Drupal? I just installed the new 6.2 version (I've not used it since 5.x a while ago) to create a website for my soon-to-be inlaws and I can't work out how to remove the node titles from each page, in particular the front page.

    Here's the site at the moment:

    http://www.countryholidayhome.com/

    See the word "Welcome"? How do I remove that?

    Thanks in advance!
     
  2. Mizzle

    Mizzle Oh, now I know...!

    Messages:
    347
    Location:
    Denmark
    Can you edit the index file?

    If so, simply remove the marked part in the header div;

    Code:
    <div id="center"><div id="squeeze"><div class="right-corner"><div class="left-corner">
    [B]<h2>Welcome</h2>[/B]
    <div class="clear-block"> <div id="node-1" class="node">
    
     
  3. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Oh if only it were that simple! :) I don't think there's any way of editing pages like that as they are essentially generated on-the-fly.

    Thanks for the help anyway! I'll have to keep looking into it. Perhaps the PHP/CSS of the theme could be tampered with...
     
  4. Mizzle

    Mizzle Oh, now I know...!

    Messages:
    347
    Location:
    Denmark
    I doubt it can be solved by editing the stylesheet. There's no way of actually editing the source codes? :(
     
    ray_gillespie likes this.
  5. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Not really as it's a CMS - I can edit the themes themselves or perhaps there is a module I can install that will give me some flexibility, but either way I don't know what to do! I'll have to keep messing around until I break it hehe.
     
  6. Mizzle

    Mizzle Oh, now I know...!

    Messages:
    347
    Location:
    Denmark
    If so, then I'm guessing it's PHP based? How about editing the index.php file?
     
  7. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Not likely - have a look for yourself lol:

    Code:
    <?php
    // $Id: index.php,v 1.94 2007/12/26 08:46:48 dries Exp $
    /**
     * @file
     * The PHP page that serves all page requests on a Drupal installation.
     *
     * The routines here dispatch control to the appropriate handler, which then
     * prints the appropriate page.
     *
     * All Drupal code is released under the GNU General Public License.
     * See COPYRIGHT.txt and LICENSE.txt.
     */
    require_once './includes/bootstrap.inc';
    drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
    $return = menu_execute_active_handler();
    // Menu status constants are integers; page content is a string.
    if (is_int($return)) {
      switch ($return) {
        case MENU_NOT_FOUND:
          drupal_not_found();
          break;
        case MENU_ACCESS_DENIED:
          drupal_access_denied();
          break;
        case MENU_SITE_OFFLINE:
          drupal_site_offline();
          break;
      }
    }
    elseif (isset($return)) {
      // Print any value (including an empty string) except NULL or undefined:
      print theme('page', $return);
    }
    drupal_page_footer();
    
     
  8. Dark Atheist

    Dark Atheist Moderator Political User Folding Team

    Messages:
    6,376
    Location:
    In The Void
  9. Mizzle

    Mizzle Oh, now I know...!

    Messages:
    347
    Location:
    Denmark
    I think you just solved the problem for him :)
     
  10. ray_gillespie

    ray_gillespie Moderator Staff Member Political User

    Messages:
    1,692
    Location:
    Birmingham, UK
    Cheers Carpo, I've not had chance to look into your solution yet but I'll give it a go soon.

    Reps to you my good man!