Open dbtech/gallery/modules/gallery/actions/main.php
Find
PHP Code:
$category_main = vB_Template::create('dbtech_gallery_home');
Replace with
PHP Code:
if ($action == 'main')
{
$category_main = vB_Template::create('dbtech_gallery_home_2');
} else {
$category_main = vB_Template::create('dbtech_gallery_home');
}
That should take care of it.
Dylan
Quote:
Originally Posted by Rich
Is it possible to use a different template for the "main" page?
I would like to use "dbtech_gallery_home_2" (my template) as the main landing page and use the default "dbtech_gallery_home" for everything else. I attempted to use an if condition but it didn't work. I was trying:
Code:
<vb:if condition="$_REQUEST['do'] == main">Main<vb:else />Not Main</vb:if>
If the condition worked I would have just wrapped my code within the default template and had it use your info after the else statement.
I also tried:
Code:
<vb:if condition="$_GET['do'] == main">Main<vb:else />Not Main</vb:if>
Is there a condition I could use or perhaps a plugin to do this? I have no issues with editing files if it accomplishes my goal.
|