how to override the message "You are not allowed to create content." ?
sarabjitsingh - March 6, 2007 - 06:28
Thanks in advance..
Can anybody help me, i've set the "create content" link for anonymous users too. all i want is that when an anonymous user clicks on the link then a message "please click here to sign in or register to view this page" instead of drupal's default message "You are not allowed to create content."
Any help regarding this issue will be greatly appreciated.
Many thanks!!!

Module recipe
Solution #1:
Use the LoginToboggan module.
Solution #2:
Disable the Navigation block and maintain your own "create content" links in a different block. Alternatively, you can configure the Navigation block so that it's only visible for users who are logged in. If you use Drupal 4.7, you can use the following PHP code in the Navigation block's configuration settings:
<?phpglobal $user;
return (bool) $user->uid;
?>
Solution #3:
I've never liked the default "create content" page at
node/add, especially when modules like minutes and usernode put their descriptions in there and clicking the links return an error.What I do is alias the
node/addpath to a custom page (you'll need to enable the path module for this). I also use the Global Redirect module to redirect the user to the custom page and away fromnode/add. In the custom page, I usually include a nice HTML dashboard with a custom image for each content type, along with a custom description. This is what I do, but I think anything other than the default page is an improvement.Anonymous user can see the dashboard, but when LoginToboggan is enabled, clicking any of the links will invite them to log in or create an account first.
Thanks!!
Thanks christefano for your help.
...@beginner