How will I remove the welcome to your new drupal site message that appears in the front page where there is no 'promote to frontpage' content? You see I will be displaying all the contents of my site using my own custom views. But as it turns out the welcome message seems not to disappear.

Comments

silverwing’s picture

you can create a page-front.tpl.php file and remove the $content call.

~silverwing

_____________________________________________
Land of Midnight | MisguidedThoughts | showcaseCMS

-Anti-’s picture

Other options:

I think you could also go to: Admin > site information > Default front page
and instead of 'node', put the url of your default view that you want
to display when users click 'home' or go to www.yourDomain.com

This means that the 'welcome' page would only be shown if someone
purposely put www.yourdomain.com/node into their browser bar.

If that bothers you, you could create an htaccess 301 redirect for
www.yourdomain.com/node to www.yourdomain.com
Or alternatively, create one page saying 'you appear to be lost, please
use the menus to choose your content', and promote only that one
page to the front.

Daniel Norton’s picture

Dr. DOT’s picture

I am having the same problem trying to get rid of the "Welcome to your new Drupal website" and replacing it with page copy that my content managers can edit. But I am running 6.15 and I don't have an Admin > site information my version is worded as Administer and then either "Content management", "Site building", "Site configuration", or "Affiliated content". Which path do I go down which will allow me create my page copy?

Dr. DOT’s picture

I checked the "Send to all affiliates" box and the content appeared

s¤fia’s picture

Hi

I am no at all used to this topic ( I mean creating websites or not ven used to filling them with info) so I don't understand really how I can create this page-front.tpl.php file and remove the $content call........

I have created a new page with a new welcome but I have no clue how to get it to appear on the front page instead of the "Welcome to Drupal"

As for the second option I found the "node" part but I don't really understand whcih URL I have to put in instead. Do I have to create a whole new site somewhere else or can I somehow use the page I have already created just by pressing "Create content" --> page when I am logged in???

As I always say, please explain as if I was 4 years old..... :-)

Thanks!!!

¤

cog.rusty’s picture

If you have created a page by pressing "Create content" --> page, then look at its URL and use it.

If for example your page is http://www.example.com/node/10 and you want to use it as your front page, then go to admin/settings/site-information, "Default front page", and replace node with node/10. That page is what the visitors will always see in your front page.

If that is not what you want, but you only want the home page to show any content you have added recently and not a Welcome message, then simply select "published" and "promoted" in the "Publishing options" when you are editing any content.

Daniel Norton’s picture

cog.rusty’s picture

Or you can go to admin/settings/site-information and change default front page to node/1 (a node which you have created) instead of node. Or use the URL of a page view.of yours.

halloffame’s picture

Ok folks! Thanks thanks! Much appreciated.

Regarding method no. 1 will it be alright to create a page-front.tpl.php identical/exactly as the original and the only thing removed was the $content call and replaced with my custom region say $contentfrontpage?

Is it possible to encounter any problem/error by doing so? Cuz this is what I plan to do and I don't intend to do it the wrong way.

silverwing’s picture

on my showcasecms.com site (link below) I removed the $content from the page-front.tpl file and added regions. The top 'welcome' block is just a block, editable in the block configuration page. And everything works fine (the sidebar is the default sidebar).

~silverwing

_____________________________________________
Land of Midnight | MisguidedThoughts | showcaseCMS

-Anti-’s picture

> Is it possible to encounter any problem/error by doing so?

Personally I'd count blank content as an unwanted error.

However, you could argue that if a user wanted to arbitrarily add '/node'
to the end of your url, then they get what they deserve!
:)

chissy’s picture

I didn't want to change my home page and it ~node/1/edit took me to another page I had created so I downloaded & enabled the unwelcome module, simple solution :)

http://drupal.org/project/unwelcome

appmux’s picture

There was an update on the Unwelcome module, which now enables promoted content to show up on the home page when available. Now it works even better!

mcferren’s picture

For Drupal 7

1. create a page--front.tpl.php and put into your theme's template directory

2. copy and paste everything from page.tpl.php then delete these lines:

if ($title):

print $title;

endif;

After that you should be set

sumaiyajaved’s picture

just create any page and publish to the frontpage.
Then css write the following:
#node-1 {
display: none;
}

where node-1 is the id of your page.

Regards,

Sumaiya Javed
Web Developer
www.sumaiyajaved.com
www.phpjavascript.com