-
AuthorPosts
-
April 20, 2016 at 4:45 pm #920567
Hi,
We have one sidebar activated (the right one) and so in the file one-side-bar-right.php I’ve tried to add a new module position underneath the main content component however the new module position isn’t appearing in the template. The strange this is that in the source code I can see the comment code (which is around the code I added), however the module that I have published there isn’t appearing. I have made sure that I’ve added the new module position to templateDetails.xml and also that I have published the module to the correct module position.
When I go to Layout > Module position I don’t see the new module position appearing anywhere. I attach a copy of what I’m trying to achieve.
I’d be very grateful for your help.
Thanks in advance.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 21, 2016 at 3:45 am #920744Hi
You can add new module position under the component section in the
tpls/blocks/mainbody/two-sidebar.php file<?php if ($this->countModules('new_position')) : ?> <div class=" ADDDYOURCLASS "> <jdoc:include type="modules" name="<?php $this->_p('new_position') ?>" style="T3Xhtml" /> </div> <?php endif ?>
http://prntscr.com/auvd52
And add you style class to give this position a style as per needs .Hope it helps .
April 25, 2016 at 12:04 pm #922514Hi,
Thanks for your reply.
When I add the code to tpls/blocks/mainbody/two-sidebar.php file the module position does not appear and the sidebar no longer appears in the right column as it should -it appears below the main content.
When I add the code to tpls/blocks/mainbody/one–sidebar-right.php the module does appear again the sidebar appears below the main content instead of in the right column.
Please advise.
Thanks
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
April 26, 2016 at 1:40 am #922721Hi
is it working for you ? could post a screenshot of issue you are getting on site with site super user details via private reply . So i can take a look on it .AuthorPostsViewing 4 posts - 1 through 4 (of 4 total)This topic contains 3 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 7 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Add module position under main content
Viewing 4 posts - 1 through 4 (of 4 total)