Duplicate home page to another page and publish a module

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 Sep 12, 2015 11:57 am
Reply with quote
Report this post
Hi, i am trying to duplicate the looks of home page to another page and insert another module in mainbody position, but despite that I have being using imagebg (as the documentation says) and also followed the nomainbody suffix instructions as written here: https://www.gavick.com/documentation/jo ... omla-pages

I am not able to load the module in the mainbody position instead i am seeing a small white empty area as there is no article to display in the same position.

Any help appreciated.

Thanks
User avatar
Senior Boarder

GK User
Mon Sep 14, 2015 7:36 am
Reply with quote
Report this post
Could you please post an url to your site - to a sample page where the change should be made?
User avatar
Moderator

GK User
Mon Sep 14, 2015 2:43 pm
Reply with quote
Report this post
Hi Cyberek, i have sent you a pm with the url of the front page and the sample page that does not load module in mainbody position
User avatar
Senior Boarder

GK User
Wed Sep 16, 2015 4:36 pm
Reply with quote
Report this post
Hi, did you find time to look at it.

Thanks
User avatar
Senior Boarder

GK User
Mon Sep 21, 2015 1:18 pm
Reply with quote
Report this post
Yes. The main difference is "noMainbody" page suffix on one of them. I guess it might cause the issue.
User avatar
Moderator

GK User
Tue Sep 22, 2015 3:44 pm
Reply with quote
Report this post
Hi Cyberek, unfortunately i have tried both with and without noMainbody suffix but that did not help.
User avatar
Senior Boarder

GK User
Fri Sep 25, 2015 8:48 pm
Reply with quote
Report this post
But could you please set it on both pages and leave it this way, then write me back?
User avatar
Moderator

GK User
Sat Sep 26, 2015 8:41 am
Reply with quote
Report this post
Hi, i have just set it on both pages as you suggested and the result is now that there is no module on front page neither. But remember that if i remove it in front page everything will be fine but not in the inner page where there won't load the module either way
User avatar
Senior Boarder

GK User
Mon Sep 28, 2015 8:21 pm
Reply with quote
Report this post
I guess you are doing something wrong with page suffixes. Could you please create a screenshot of its settings and post it here?
User avatar
Moderator

GK User
Tue Oct 06, 2015 5:19 pm
Reply with quote
Report this post
Hi cyberek, thanks for answering back. Here is the screenshot you asked for.
User avatar
Senior Boarder

GK User
Mon Oct 12, 2015 11:16 am
Reply with quote
Report this post
I have take look at our code, and there is a problem with this statement:
Code: Select all
            <section 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; ?>
            </section>

which displays module only if this is a homepage and there is a module posted in mainbody position.
Please change this line:
Code: Select all
<?php if(($this->layout->isFrontpage() && !$this->API->modules('mainbody')) || !$this->layout->isFrontpage()) : ?>

to:
Code: Select all
<?php if(!$this->API->modules('mainbody')) : ?>

and check if it helps.
User avatar
Moderator

GK User
Mon Oct 12, 2015 12:18 pm
Reply with quote
Report this post
Alright Cyberek, that was it, it's fixed. Thank you.

Just to help somebody else with the same problem, i must say that i did what you said in the default.php which is located in gk_simplicity/layouts and i removed "noMainbody" page suffix from both pages in templates > features in joomla backend.

Thanks again.
User avatar
Senior Boarder

GK User
Mon Oct 12, 2015 5:04 pm
Reply with quote
Report this post
Oh, sorry, I forgot to provide exact file but you have found it quite fast.
If you have any additional questions regarding this topic, please let me know.
User avatar
Moderator


cron