VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

menu on font resize position
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: menu on font resize position

menu on font resize position 04 May 2013 10:15 #2046

i created a menu and assigned "font resize" posizion to it.
can't see the menu.
i think it's all set up properly because if i assign "mainmenu" position i can see the menu.
so what's the problem? how to disable font resize and show my new menu?
thanks to anyone who want to help!

  • Posts:11
  • Marlowe
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: menu on font resize position 04 May 2013 17:12 #2047

anybody so gentle to post the file index.php of this template with the correction needed to make the fontresize position available like the mainmenu position for be assigned to a menu??? i'm not good in html and php, i've tried with comments tag and some cut-copy-paste but no results... please!

  • Posts:11
  • Marlowe
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: menu on font resize position 05 May 2013 11:40 #2054

The font-resize is not a module position, but a template parameter...
So if you want to change the font-resize to be a module position, you have to edit 2 files.
Let´s call the module "fontresize"

1) /templates/jf_vihrea/index.php
line 149

<?php if ($templateparams->get('fontresizer')) : ?>
<div id="fontsize"></div>
<?php endif; ?>

change to:

<?php if ($this->countModules( 'fontresize' )) : ?>
<div id="fontsize">
<jdoc:include type="modules" name="fontresize" />
</div>
<?php endif; ?>

You will have to customize your css also...!

2) /templates/jf_vihrea/templateDetails.xml
line 43
<positions>
<position>debug</position>
<position>mainmenu</position>
...

change to:

<positions>
<position>debug</position>
<position>mainmenu</position>
<position>fontresize</position>
....


bye
joomfreak | cause open source rocks

  • Posts:187
  • cause open source rocks
  • joomfreak
  • Administrator
  • OFFLINE
  • Karma: 0

Re: menu on font resize position 07 May 2013 09:34 #2063

mmmmh
what you write doesn't coincide with what i have in the index.php file

i have this from row 168 to row 185

<div class="navigation">
<div class="navigation-inner clearfix">
<div id="navbutton">
<a id="navcollapse">Menu</a>
</div>

<?php if ($this->countModules('fontresize') || $this->params->get('fontresizer')) : ?>
<div class="pull-right">
<?php if ($this->params->get('fontresizer')) : ?>
<div id="fontsize"></div>
<?php endif; ?>
<?php if ($this->countModules('fontresize')) : ?>

<?php endif; ?>
</div>
<?php endif; ?>
</div>
</div>

while in the xml file the <position>fontresize</position> row already exist.
what's the solution?

  • Posts:11
  • Marlowe
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

[solved] menu on font resize position 07 May 2013 12:00 #2064

i think i solved replacing the code i pasted before with this

<div class="navigation-inner clearfix">
<div id="navbutton">
<a id="navcollapse">Menu</a>
</div>

<div class="pull-right">

</div>
</div>

now i can create modules and associate them to the "fontsize" position

is that correct?

  • Posts:11
  • Marlowe
  • Fresh Boarder
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.79 seconds
Tuesday 19 March 2024

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.