Is it possible to put a module in template menu position?

Responsive, suitable for any type of business, built for any needs elegant one-page Joomla template.
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
Tue May 06, 2014 6:36 pm
Reply with quote
Report this post
What I would like to do is put a custom html menu in the template menu position with the same 'scroll-reveal' functionality the template menu has. Is this possible?

By the way, excellent template!
User avatar
Junior Boarder

GK User
Tue May 06, 2014 6:49 pm
Reply with quote
Report this post
You would need to create custom HTML module inside #gkTop element.
Please check this tutorial:
http://www.gavick.com/documentation/joo ... -position/
User avatar
Moderator

GK User
Tue May 06, 2014 7:15 pm
Reply with quote
Report this post
Thanks!

Just so I'm following, I'll need to make a new position (all three steps in the link you posted) named "gkTop" and use that position for the new module?
User avatar
Junior Boarder

GK User
Tue May 06, 2014 8:15 pm
Reply with quote
Report this post
No, you need to create new, custom named module position inside default.php layout file - inside <div id="gkTop"> element.
User avatar
Moderator

GK User
Tue May 06, 2014 8:50 pm
Reply with quote
Report this post
Sorry, I must be missing something. Here is my default.php code insertion:
Image

Do I have a syntax error?

I've triple checked steps one and two (gk.const.php and templateDetails.xml) and the new position I created, "custom-menu", is showing up in the module admin correctly.

Here is the (early) site development url: http://64.191.152.84/mikeskidsfoundation/
User avatar
Junior Boarder

GK User
Tue May 06, 2014 8:55 pm
Reply with quote
Report this post
And where is the wrapping code that was provided in documentation:
Code: Select all
<?php if($this->API->modules('custom-menu')) : ?>
<div class="my-element">
<jdoc:include type="modules" name="custom-menu"
style="<?php echo $this->module_styles['custom-menu']; ?>" />
</div>
<?php endif; ?>
User avatar
Moderator

GK User
Tue May 06, 2014 9:27 pm
Reply with quote
Report this post
Ah, the documentation made that code sound optional, but I've added and still no go.

Image

Am I still missing something?
User avatar
Junior Boarder

GK User
Tue May 06, 2014 9:37 pm
Reply with quote
Report this post
Okay, got it! The documentation says:
During paste process please connect together second and third line, but must be small space between them.

It should say "third and fourth line."

That fixed it.

Thanks
User avatar
Junior Boarder

GK User
Wed May 07, 2014 6:12 pm
Reply with quote
Report this post
Ok, I'm glad You could solve it on your own.
If You will have any other questions (not relative to this thread), feel free to post new forum threads - it allows us to answer you faster.
User avatar
Moderator


cron