Can you make the One Page work under 3 different subpages

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jul 20, 2013 7:29 pm
Reply with quote
Report this post
Hi :o)

Is it possible to make 3 sub categories/pages with 3 One Page frontpage.

So you have the Homepage, that links to 3 sub categories/pages with the One Page front template.

Homepage(One Page design) -> New Sub Homepage(One Page design)


Right now we have a site with a Frontpage that links to subpages with the different content and menus.

http://www.hadbergs.dk

If yes - how :o)
User avatar
Senior Boarder

GK User
Mon Jul 22, 2013 2:29 pm
Reply with quote
Report this post
Hi,

Unfortunately there will be a problem with it, because only on frontpage you can use the mainbody as a module position.
User avatar
Administrator

GK User
Mon Jul 22, 2013 6:39 pm
Reply with quote
Report this post
Ok

So that means the only solution will be to install Joomla/Creativity in 3 sub folders with 3 databases.

Damn...:)
User avatar
Senior Boarder

GK User
Mon Jul 22, 2013 8:44 pm
Reply with quote
Report this post
Now I've found another solution - in the layouts/default.php you can change this code:

Code: Select all
 <div id="gkMainbody">
                                                <?php if(($this->layout->isFrontpage() && !$this->API->modules('mainbody')) || !$this->layout->isFrontpage()) : ?>
                                                <jdoc:include type="component" />
                                                <?php else : ?>
                                                <jdoc:include type="modules" name="mainbody" style="<?php echo $this->module_styles['mainbody']; ?>" />
                                                <?php endif; ?>
                                        </div>


to:

Code: Select all
                                     <div id="gkMainbody">
                                                <?php if(!$this->API->modules('mainbody')) : ?>
                                                <jdoc:include type="component" />
                                                <?php else : ?>
                                                <jdoc:include type="modules" name="mainbody" style="<?php echo $this->module_styles['mainbody']; ?>" />
                                                <?php endif; ?>
                                       </div>


But please be really careful with the mainbody modules assignment!
User avatar
Administrator


cron