Hello,
I am trying to integrate phpBB forum into my Drupal page. I use phpbbforum module to achieve this task. The forum is displayed inside Drupal page, not in separate iframe or window. After some time, I have successfully reduced number of colisions in CSS, so the forum looks quite normally.
I would like to use different page template when the forum is displayed. The whole website uses two-column template (the left columnt contains menu, the right one displays content). The left column is not desirable to be shown when the forum is displayed because it does not bring any valuable information. So, I tried to create custom page template for that. And it proved to be a problem.
I read somewhere that when you need to use custom page templates for some URLs, you should create a file named page-path.tpl.php (or page--path.tpl.php) in your theme directory. Because the path that displays the forum in my website is "phpbbforum", I created a file named page-phpbbforum.tpl.php. However, it did not work. I also tried the name with "--" but with no success either.
Does anybody know about any simple solution to the problem? I am quite new to Drupal, especially when talking about module development. On the other hand, I am able of programming in PHP, so I should have no problem with solutions that require little of coding.
Best regards
Martin Drab
Comments
You need to specify the
You need to specify the template in your template.php, in this case it will look for page-forum.tpl.php in your theme folder.
RE: You need to specify...
Hello,
thank you very much for the information. I tried to modify themename_preprocess_page function but it did not work as expected. Acutally, it seemed to have no effect. So I decided to modify page.tpl.php directly and use arg function to determine the URL. This worked perfectly!
Thanks again.
Martin Drab
Same problem
Could you give an example of what you did as I have been trying to solve this issue myself without success.
Thanks