(this was originally sent to development@ but its OT for that list, support@ was suggested as a more appropriate place)
Howdy,
We're working on a project using Drupal at its core and for one area of the website we would like to implement a section that is distinctly different from the rest of the website.
Basically, in simplest terms, what we'd like to achieve is to have one area of the site distinct from the rest with its own layout and blocks, possibly even the ability to have blocks anywhere including the center content section - however it would all need to be a single installation of drupal on the same domain if at all possible. I guess as a last resort it could be run under a different subdomain via the same installation (I think that is possible with Drupal?) something like http://myarea.thisdomain.com with the main site at http://www.thisdomain.com. I havent discussed that option with the project team though, just thinking out loud with that last point.
Can anyone point me in the right direction?
Cheers,
James
I haven't looked at it lately, but taxonomy theme module does this in terms of providing means for changing themes based on taxonomy term and/or path.
As for where blocks go, you can define your own regions for each theme in the template.php file.
No custom module needed, afaict. Hope this helps.
Laura
On Jun 21, 2007, at 6:37 PM, James McLean wrote:
(this was originally sent to development@ but its OT for that list, support@ was suggested as a more appropriate place)
Howdy,
We're working on a project using Drupal at its core and for one area of the website we would like to implement a section that is distinctly different from the rest of the website.
Basically, in simplest terms, what we'd like to achieve is to have one area of the site distinct from the rest with its own layout and blocks, possibly even the ability to have blocks anywhere including the center content section - however it would all need to be a single installation of drupal on the same domain if at all possible. I guess as a last resort it could be run under a different subdomain via the same installation (I think that is possible with Drupal?) something like http://myarea.thisdomain.com with the main site at http://www.thisdomain.com. I havent discussed that option with the project team though, just thinking out loud with that last point.
Can anyone point me in the right direction?
Cheers,
James
[ Drupal support list | http://lists.drupal.org/ ]
I'd start by looking at
* Sections (as was mentioned on the dev list to put a theme to a specific site section) * Panels (It will let you put blocks in content body of specific pages).
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of James McLean Sent: Thursday, June 21, 2007 5:38 PM To: support@drupal.org Subject: [support] Drupal module with different theme and layout
(this was originally sent to development@ but its OT for that list, support@ was suggested as a more appropriate place)
Howdy,
We're working on a project using Drupal at its core and for one area of the website we would like to implement a section that is distinctly different from the rest of the website.
Basically, in simplest terms, what we'd like to achieve is to have one area of the site distinct from the rest with its own layout and blocks, possibly even the ability to have blocks anywhere including the center content section - however it would all need to be a single installation of drupal on the same domain if at all possible. I guess as a last resort it could be run under a different subdomain via the same installation (I think that is possible with Drupal?) something like http://myarea.thisdomain.com with the main site at http://www.thisdomain.com. I havent discussed that option with the project team though, just thinking out loud with that last point.
Can anyone point me in the right direction?
Cheers,
James -- [ Drupal support list | http://lists.drupal.org/ ]
There's an option in the phptemplate engine that let's you specify the .tpl.php file to use for rendering. In the _phptemplate_variables function in the template.php file, set the value of $vars['template_files'] to the template you want for rendering. Your design will need a way to identify which template file to use, such as path. It's tersely documented here: http://drupal.org/node/104316.
Drupal 5 lets you define as many block regions as you'd need so you can create regions specifically for the alternate layout.
Basically, in simplest terms, what we'd like to achieve is to have one area of the site distinct from the rest with its own layout and blocks, possibly even the ability to have blocks anywhere including the center content section - however it would all need to be a single installation of drupal on the same domain if at all possible. I guess as a last resort it could be run under a different subdomain via the same installation (I think that is possible with Drupal?) something like http://myarea.thisdomain.com with the main site at http://www.thisdomain.com. I havent discussed that option with the project team though, just thinking out loud with that last point.
Can anyone point me in the right direction?
Thanks for the suggestions everyone, i'm looking through those suggested to determine which is most suitable.
I still have one question though, I'm not too familiar with the whole concept of taxonomies and how they relate to nodes - so this question could be answered with some more understanding in that area. Assuming all blocks are enabled, how would I make sure than only Blocks 'X, Y and Z' are shown in the custom area and are not shown in any other areas, and conversly how do I make sure Blocks 'A, B and C' are not shown in my custom area?
On 6/25/07, James McLean james.mclean@gmail.com wrote:
I still have one question though, I'm not too familiar with the whole concept of taxonomies and how they relate to nodes - so this question could be answered with some more understanding in that area. Assuming all blocks are enabled, how would I make sure than only Blocks 'X, Y and Z' are shown in the custom area and are not shown in any other areas, and conversly how do I make sure Blocks 'A, B and C' are not shown in my custom area?
Have done some more research in this area and decided custom regions in my theme might be the way to go. Still, I cant see how to enable some regions when one module only is accessed..
Has anyone got any tips in that area?