[support] how can I hide left&right column on forum-pages?

Neil Coghlan neil at esl-lounge.com
Sat Mar 26 21:15:29 UTC 2011


there's an option on Path auto config page...something like "give these 
aliases to all nodes without alias" so it gives them to old content.

what I didn't understand in your initial question was that you seemed to 
want the entire left and right regions to not appear when viewing forum 
topics....disabling blocks in those regions, you'd still get the regions 
themselves appearing, so is that what you're after or not? The only way 
I can think of to get the regions themselves not being created, and thus 
allowing your design to stretch right across the screen, would be the 
second method I mentioned, altering your theme's page.tpl.php file and 
wrapping the code for left and right regions in conditional php based on 
the page URL.

something like

if URL != "/forum/..."
print $left_region

I have some similar stuff in my own page.tpl.php to print a region only 
in certain areas of the site and it works fine.

On 26/03/2011 18:00, Andre Durudas wrote:
> Maybe the Path Redirect module 
> (http://drupal.org/project/path_redirect) might be able to help you...
>
> Good luck! :)
>
>> ------------------------------------------------------------------------
>>
>> Ryan LeTulle <mailto:bayousoft at gmail.com>
>> March 26, 2011 11:35 AM
>>
>>
>> backup first! :)
>> *
>> *
>> *
>> Ryan LeTulle*
>>
>> > bayousoft <http://twitter.com/bayousoft> -twitter
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> Ryan LeTulle <mailto:bayousoft at gmail.com>
>> March 26, 2011 11:35 AM
>>
>>
>> You can delete and recreate aliases:
>>
>> http://example.com/admin/build/path
>> *
>> *
>> *
>> Ryan LeTulle*
>>
>> > bayousoft <http://twitter.com/bayousoft> -twitter
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> Jarry <mailto:mr.jarry at gmail.com>
>> March 26, 2011 11:15 AM
>>
>>
>>
>> Thanks, seems to be a good idea. But if I understand correctly,
>> it will change paths only for topics created from now, but not
>> the old one. How can I update aliases for old content? Do I have
>> to edit it manually? And if I do, is it sure I do not brake
>> old links, if I change path aliases of already created content?
>>
>> And one more thing: what about comments?
>> They have "comment/edit/[node]" and "comment/reply/[node]" links.
>> How can I change comment/edit & comment/reply links, but again
>> only for forum-topics? I did not find it in pathauto settings...
>>
>> Jarry
>>
>> ------------------------------------------------------------------------
>>
>> Neil Coghlan <mailto:neil at esl-lounge.com>
>> March 26, 2011 10:41 AM
>>
>>
>> There are different ways to do what you want. It sounds like the
>> simplest would be to use Path Auto module and make all your forum URLs
>> something like "forum/[nid]"
>>
>> that will allow you to better filter blocks using the page visibility
>> settings.
>>
>> another way is to get your hands dirty with the page.tpl.php file and
>> start putting some php conditional stuff in there so the entire sidebars
>> won't appear when there's a forum topic loaded...again, you'll probably
>> need to give all forum topics a "forum/xxx" type URL for that to work
>> Jarry <mailto:mr.jarry at gmail.com>
>> March 26, 2011 10:25 AM
>>
>>
>> Hi,
>>
>> I'd like to hide left and right column on all my forum-pages
>> and use the whole width for central column (displayin topics).
>> How could I do that?
>>
>> I know there is a "page specific visibility settings" for
>> each block, which I could use. But how can I filter all
>> forum-related content out, and nothing more?
>>
>> I left "show on every page except the listed pages" setting
>> activated, and in "page" I put:
>>
>> forum
>> forum/*
>>
>> It works well, but only for all forum listing-pages.
>> When I click on certain forum-topic, blocks are displayed
>> again, because url is "/content/<topic>".
>>
>> And that is the problem: if I add "content/*" to the above
>> mentioned settings, it will work, but for every content
>> on my web-page. And I do not want it for every content,
>> only for forum-content. But I do not know how to distinguish
>> between forum-content, and generally any content...
>>
>> Jarry
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20110326/f4f9c31f/attachment-0001.html 


More information about the support mailing list