I'm new on drupal. I want to use it to create a normal company website which with a navigation bar including links like for example
about us
services
products
solutions
contact us
All contents of the about is only administrate and create by company's web adminisatrator therefore it's not necessary to show a "user login" for people to registeration.
Then I first create a "About us" but every time I access the site e.g. http://www.mycompany.com
It will display a "user login" block if browser session is not logged in.
How do I configure such that anonymous people just browse the website's contents I created without showing the "user login"block
I found some show cases developed using drupal, they don't present with a user login block
http://www.latuk.com/
http://www.tacticaltech.org/
how they did it ?
Comments
Go to admin/blocks and
Go to admin/blocks and de-select the enabled box for the "user login" block
Oh yes!!! The "user login"
Oh yes!!! The "user login" block can be disabled by this option.
But another question raise, without "user login" block , how do web administrator to login the maintain the contents ? My stupid method is to when I need to maintain the contents, I re-enable this block and disable it after I finished my work.
Is it the usual way ?
use this link
you can go to yoursite.com/user and it will display a login page
my company web site url is ,
my company web site url is , say
http://www.mycompany.com/drupal
and "admin" is the user id of web administrator to maintain the site
then as you said to login http://www.mycompany.com/drupal/admin
but it return "The page cannot be found........" error page
Go to
Go to http://www.mycompany.com/drupal/user/login to login as the admin.
Apart from disabling the login block, you should also disable user registration at administer>>settings>>users by choosing the 'Only site admins can create accounts'. Otherwise, even if you turn off the login block, people who know drupal can simple type www.yourdomain.com/user/register and add themselves as a registered user.
I still can't access
I still can't access http://www.mycompany.com/drupal/user/login to login
in my understanding, /user/ is a folder under baseurl of http://www.mycompany.com/drupal/
but I can't find such a folder under the drupal installation folder
Sounds like you don't have clean URL's enabled
In drupal the path after the base represents a callback and not a physical folder. So in the case of http://www.mycompany.com/drupal/user/login, user/login represents/determines the code called. The full version of this http://www.mycompany.com/drupal/index.php?q=user/login and it sounds like you need to use that form (the other only works if you have clean urls enabled).
I see, then how to enable
I see, then how to enable clean url ?
Enabling clean URL's
Goto administer -> settings and look under 'General settings', 'Clean URLs' will be the last setting in that section. By default it is disabled and the help message includes a test that if it passes will allow you to enable clean urls.
the clean url option is grey
the clean url option is grey out that's mean apache is not compiled with mod_rewrite enabled. But i remember that I enable mod_rewrite, following is my apache compile options
CC=gcc CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer" CXX=gcc CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer -felide-constructors -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local/httpd-2.0.58 --enable-module=so --enable-module=rewrite --enable-module=expires
the compilation is fine without errors. I executed httpd -l and can't see mod_rewrite
What's wrong ???
It will be greyed out until
It will be greyed out until you click on the link that performs the clean urls test. If the test succeeds, you will be able to choose the radio button option to enable clean urls.
I run the "Run the clean URL
I run the "Run the clean URL test" and return a "page not found" page
That's mean my apache is not support mod_rewrite.
In my last reply, I said I compiled apache with mod_rewrite module, but the httpd binary is show that there is no mod_rewrite compiled in.
Ask your hosting company to
Ask your hosting company to enable mod_rewrite for you. Much easier than doing it yourself.
the company website is
the company website is hosted on my own linux server. But anyway I got apache compile with mod_rewrite, I can see mod_rewrite.c in "httpd -l "
my apache binary supported module
Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
mod_proxy.c
proxy_connect.c
proxy_ftp.c
proxy_http.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_cgi.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_userdir.c
mod_alias.c
mod_rewrite.c
mod_so.c
Then I go to setting to run clean url test but still got a page not found error. Should I still have some settings was missed ?
Finally, I solved it. Thanks
Finally, I solved it. Thanks for all your help.
If disable the user login,
If disable the user login, all pages will not be able to see. But what we need for the user login to display in Home page, the rest we don't want to see.
How to do that? Some advise will be helpful thx
Some additional approaches
for building corporate sites can be found in this thread
http://drupal.org/node/31896
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide -|- Black Mountain
-Steven Peck
---------
Test site, always start with a test site.
Drupal Best Practices Guide