What is the easiest way to create a different looking layout for a home page for anonymous users vs every other user? I don't need the theme to be different, I want it to look basically the same. But I need to restrict access to certain areas and hide blocks from anonymous users and I want there to be some addition blocks that anonymous users see that logged-in members do not see. (An intro video, a purchase membership button, an overview of what's "inside" if they join, etc.)
I have the content_access module installed and it works quiet well, but it doesn't allow adjusting access for menus and blocks. (only content types and nodes). So I believe I will need something else to accomplish this, but I could be wrong.
Edited by: VM; Moved to appropriate forum
Comments
=-=
panels.module (dependant on ctools.module) and the views.module
one can also create a custom page-front.tpl.php file for the theme and hack away it at. More information on template suggestions in the theme developers handbook in the documentation area.
Configure Blocks
or you can click on 'Configure' beside any of the blocks in Admin >> Site Building >> Blocks and set them to only show up for anonymous users.
============
Drupal Core Maintainer for "Out of the Box" Initiative.
Thanks Mark, I hadn't
Thanks Mark, I hadn't stumbled on that configure option for blocks yet. I think that's probably the simplest solution for me right now. I do need to spend some time learning views and panels too, so thanks for that advise.
I think hacking away at php
I think hacking away at php files is not my first choice. I'll look into the panels/ctools/views option, but can you give me an idea how those modules would work together to structure a different front page layout?
=-=
Actually it's as simple as copying page.tpl.php to page-front.tpl.php and adjusting as one sees fit. removing and adding the HTML that you want to add or remove.
With reference to panel/ctools/views module there is a plethora of documentation on these modules. Tutorials found with google and here on d.o. If you have a specific question after you install them on a test site and read through some of the documentation feel free to ask it, otherwise you're asking others to regurgitate information that is already available.