I was wondering, after visiting http://www.moby.com, on how to do do two things:

1) The main page is an image.
2) Most of the links (journal, music, news) do not lead to nodes (ex: http://www.moby.com/journal)

Is there a way to do this?

Thanks for reading.

Comments

Bluey’s picture

After fiddling with Drupal I discovered paths. So scratch that. Instead I was wondering (along with number 2) on how to have the sidebar appear only when a user is logged in.

Thanks.

q0rban’s picture

In 4.7 you can configure which blocks are visible by using the page specific visibility settings... Click the Show if the following PHP code returns TRUE (PHP-mode, experts only). checkbox, and enter the following code (if you want blocks to be visible only when logged in):

<?php

  global $user;

  if ($user->uid) {
    return TRUE;
  }

?>

If you want blocks to be visible only for anonymous users, change it to the following:

<?php

  global $user;

  if (!$user->uid) {
    return TRUE;
  }

?>

cheers...

Bluey’s picture

I installed 4.6. Is there a way to do that in this version?

Thanks

heine’s picture

Make a block, set it to 'php'

  global $user;
  $output = '';
  if($user->uid) {
     $output .='content';
     $output .='even more content';
  }
  return $output;

--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

q0rban’s picture

check out PHP block snippets from the handbook...

cheers..

heine’s picture

Thanks for pointing out the page. I hope I will have some time this evening to edit it slightly.
--
Tips for posting to the forums.
When your problem is solved, please post a follow-up to the thread you started.

willem van straaten’s picture

if you hqave sidebar links and you want them to link anywhere say an external site, Iusually create a new block and put my links in there instead of adding them with admin>menu.

on disabling the sidebar for un-authenticated users you can just disable the menu items that displays for un-authenticated users - this way your side bar will only appear when you are logged in as admin

South Africa web design - http://www.econsultant.co.za

Bluey’s picture

Thanks for the suggestions! I'll try them out.

Thanks