[support] Can I Use a Slightly Modified Theme on Only One Page???

Big Brother ignorance.is.strength at gmail.com
Mon Jun 16 01:28:25 UTC 2008


Victor -- thanks again, I've got it working as I wish  now.

I wanted to thank everyone who responded with their advice. I really
appreciate your efforts to help me out.

Thank you all so much!

To see what you all helped me make (it still needs some touching-up):

http://www.narconews.com/thefield/

Sincerely,
David Briones

On Sat, Jun 14, 2008 at 12:56 PM, Victor Kane <victorkane at gmail.com> wrote:
> What is "thefield2" ?
>
> If it is a node type, the node template would be node-thefield2.tpl.php.
>
> If you want to make a page template based on url, see
> http://drupal.org/node/139766
>
> Depending on what you want to do, you might have to create support for a
> custom template with a php callback function; see excellent tutorial at
> http://www.chapterthree.com/blog/zirafa/different_node_templates_node_variables_nid_type_view
>
> Victor
>
> On Sat, Jun 14, 2008 at 2:20 PM, Big Brother
> <ignorance.is.strength at gmail.com> wrote:
>>
>> Thanks Victor!
>>
>> I ended up doing what you suggested. I disabled the elements of the
>> right sidebar that I didn't need for the new subsite. It seemed to
>> have worked!
>>
>> I have another problem now. I am using the PHPtemplate method,
>> provided by Matt above, but it doesn't seem to work for the nodes
>> contained within "thefield2/"
>>
>> Here's what the design should look like:
>>
>> http://narcosphere.narconews.com/thefield2/
>>
>> but look what happens when I do this:
>>
>> http://narcosphere.narconews.com/thefield2/test-4
>>
>> The PHPtemplate engine should look for page-thefield2-test-4.tpl.php,
>> then page-thefield2-test.tpl.php, then page-thefield2.tpl.php (which I
>> have in the template folder I am using.
>>
>> Why isn't it picking up the right template file?
>>
>> Thanks!
>>
>> On Sat, Jun 14, 2008 at 4:22 AM, Victor Kane <victorkane at gmail.com> wrote:
>> > For the right sidebar, you can configure certain blocks to only appear /
>> > not
>> > appear on certain paths, for certain roles, etc., by clicking on the
>> > configuration link.
>> >
>> > Another approach would be to take a look at Panels 2 (there is good
>> > documentation on the Drupal site), which is a whole other way of solving
>> > your problem (making a different page content type, and then a node/%
>> > panel
>> > can be set to have a different layout on a content type basis.
>> >
>> > Victor Kane
>> > http://awebfactory.com.ar
>> >
>> > On Sat, Jun 14, 2008 at 2:21 AM, Big Brother
>> > <ignorance.is.strength at gmail.com> wrote:
>> >>
>> >> Hi Matt,
>> >>
>> >> Thanks for the suggestion. I fooled around with it for a bit today and
>> >> got some decent results. However, the problem I ran into is that I
>> >> need to change the right sidebar as well, and I can't figure out to do
>> >> that with your suggestion.
>> >>
>> >> Above, the suggestion by Brett seemed like it would solve this, but
>> >> when I applied his solution the CSS of the new subtheme I made
>> >> broke... sorta. Now:
>> >>
>> >> http://narcosphere.narconews.com/thefield2/
>> >>
>> >> You notice that there is no sidebar at all, though I have set blocks
>> >> up for the new subtheme, and the body are is black instead of white.
>> >> Otherwise the logo looks fine... hehe.
>> >>
>> >> If your way provides a method for me to be able to manipulate the
>> >> right sidebar as well then I will just go ahead and use your method.
>> >> I'm not sure if it's possible, though.
>> >>
>> >> Thanks again!
>> >>
>> >> David
>> >>
>> >> On Fri, Jun 13, 2008 at 2:58 PM, Matt Galvin
>> >> <mgalvin at simplifiedcomplexity.org> wrote:
>> >> > Hi David,
>> >> >
>> >> > You might want to try:
>> >> >
>> >> > http://drupal.org/node/104316 - Using different page templates
>> >> > depending on the current path
>> >> >
>> >> > Hope this helps.
>> >> >
>> >> > Best,
>> >> >
>> >> > Matt Galvin
>> >> > http://www.simplifiedcomplexity.org/
>> >> >
>> >> >
>> >> > On Fri, Jun 13, 2008 at 3:17 PM, Big Brother
>> >> > <ignorance.is.strength at gmail.com> wrote:
>> >> >> Hi Everyone,
>> >> >>
>> >> >> My boss has a special request of me. We want to make a "sub-site" of
>> >> >> the current site we are running, which is:
>> >> >>
>> >> >> http://narcosphere.narconews.com
>> >> >>
>> >> >> I need to build a sub-site which will use most of the current theme
>> >> >> but with about 15-20% of changes. For instance, I am going to need
>> >> >> to
>> >> >> change the banner for this "sub-site", get rid of the left column,
>> >> >> and
>> >> >> change what's on the right-sidebar.
>> >> >>
>> >> >> Is there an easy way to do this without having to make a whole new
>> >> >> drupal installation just for this sub-site?
>> >> >>
>> >> >> If this isn't clear enough, please let me know and I can further
>> >> >> explain what I'm trying to do.
>> >> >>
>> >> >> Thanks!
>> >> >>
>> >> >> David B.
>> >> >> --
>> >> >> [ Drupal support list | http://lists.drupal.org/ ]
>> >> >>
>> >> > --
>> >> > [ Drupal support list | http://lists.drupal.org/ ]
>> >> >
>> >> --
>> >> [ Drupal support list | http://lists.drupal.org/ ]
>> >
>> >
>> > --
>> > [ Drupal support list | http://lists.drupal.org/ ]
>> >
>> --
>> [ Drupal support list | http://lists.drupal.org/ ]
>
>
> --
> [ Drupal support list | http://lists.drupal.org/ ]
>


More information about the support mailing list