I need to use user area positioning

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
Wed Mar 27, 2013 4:11 pm
Reply with quote
Report this post
Hi, I need to use the user area position for to positioning lenguages flags. Now user area position is for register and I only can disable it through template administrator, but I can't positioning another module in this. How can I do it?
User avatar
Expert Boarder

Konrad M
Thu Mar 28, 2013 9:47 am
Reply with quote
Report this post
Hi,
the easest way to achieve that is adding new position in this area. Please read this https://www.gavick.com/documentation/jo ... -position/
User avatar

GK User
Thu Mar 28, 2013 1:15 pm
Reply with quote
Report this post
OK, thanks, I will try it.
User avatar
Expert Boarder

GK User
Tue Apr 16, 2013 10:40 am
Reply with quote
Report this post
Hello Konrad,

I woul like to use the login, register position for custom html.

I followed the steps of creating a new position in templateDetails.xml and added the template position in the gk.const.php.

I've tried to add the following code in the default.php about line 82. I can select the position "logotop" but the result is that mu output is shown beneath the banner position. How can I use or adress the register or login position or location on the right top side?

<?php if($this->modules(‘logotop’)) : ?>
<div>
<jdoc:include type=”modules” name=”logotop” style=”<?php echo $this->module_styles['logotop']; ?>” />
</div>
<?php endif; ?>

Thanks a lot
User avatar
Fresh Boarder

Konrad M
Tue Apr 16, 2013 10:54 am
Reply with quote
Report this post
@Jakke17, without url I can't help you.
User avatar

GK User
Tue Apr 16, 2013 1:42 pm
Reply with quote
Report this post
The url is

www.grafikal.be

login: Fiery
password: Fiery.1
User avatar
Fresh Boarder

Konrad M
Tue Apr 16, 2013 7:50 pm
Reply with quote
Report this post
Please try add some suffix to your new module for example ' mysuffix' and then add to override.css
Code: Select all
.suffix {
    float:right;
    width:auto;
}

and remeber enable override.css option in template settings.
And just in case change code for new position from article to this one:
Code: Select all
<?php if($this->API->modules('logotop')) : ?>
<div>
<jdoc:include type="modules" name="logotop" style="<?php echo $this->module_styles['logotop']; ?>" />
</div>
<?php endif; ?>
User avatar

GK User
Wed Apr 17, 2013 8:00 am
Reply with quote
Report this post
Thanks Konrad,

I added the suffix to my custom html module. Added the style to overide.css and enabled overide in the advanced template setting.

I've checked my output with firebug and this is the result

<div class="custommysuffix">
<p>TEST Logotop</p>
<p>Position top right</p>
</div>

But still the same result

Regards,

Jan
User avatar
Fresh Boarder

Konrad M
Wed Apr 17, 2013 8:31 am
Reply with quote
Report this post
It won't work because class of your div is custommysuffix and code in your override.css is:
Code: Select all
.mysuffix {
    float: right;
    width: auto;
}

so you have to change it to:
Code: Select all
.custommysuffix {
    float: right;
    width: auto;
}
User avatar

GK User
Wed Apr 17, 2013 8:56 am
Reply with quote
Report this post
Konrad,

I've done the correction but it is not the result I want to obtain.

I want to use the user or login area at the right top corner.

See screenshot for the position
User avatar
Fresh Boarder

Konrad M
Wed Apr 17, 2013 9:03 am
Reply with quote
Report this post
So you need paste your code for new module position inside
Code: Select all
<section id="gkPageTop">
    <div class="gkPage">
      //put here                       
    </div>
</section>

becasue now you have it inside:
Code: Select all
<section class="gkColumnLeft" id="gkContent">               
   <div id="gkContentWrap">                               
     // now you have here 
  </div>                
</section>
User avatar

GK User
Wed Apr 17, 2013 9:15 am
Reply with quote
Report this post
Konrad,

I'm not following. I'v added the code in the custom html module (adminstration part).
Still no result.
Where do I have to add the code you suggested?

Thanks for all the help so far
User avatar
Fresh Boarder

Konrad M
Wed Apr 17, 2013 10:16 am
Reply with quote
Report this post
Did you edit some files from layouts folder ? As it is described in tutorial.
User avatar

GK User
Wed Apr 17, 2013 10:23 am
Reply with quote
Report this post
Konrad,

I followed the steps of creating a new position in templateDetails.xml and added the template position in the gk.const.php.

Then I've added your code into the default.php.

templateDetails.xml
<positions>
<!-- Template specific Module Positions -->
<position>breadcrumb</position>
<position>bannertop</position>
<position>social</position>
<position>login</position>
<position>footer_nav</position>
<position>search</position>
<position>logotop</position>

<!-- STANDARD Module Positions -->
<position>sidebar</position>
<position>inset</position>
<position>mainbody</position>

gk.const.php
$GK_TEMPLATE_MODULE_STYLES = array(

'breadcrumb' => 'none',

'login' => 'none',

'lang' => 'none',

'search' => 'none',

'footer_nav' => 'none',

'logotop' => 'none',

That's what I've done
User avatar
Fresh Boarder

Konrad M
Wed Apr 17, 2013 10:27 am
Reply with quote
Report this post
So you need do this part too with code I gave you in previous post
All template files are located in the layouts folder. Default.php is the default template view, and it contains code blocks located in layouts/blocks. The module may be added directly into the default.php file or to one of these blocks. Paste the following code:
<?php if($this->modules(‘myposition’)) : ?>
<div>
<jdoc:include type=”modules” name=”myposition” style=”<?php echo $this->module_styles['myposition']; ?>” />
</div>
<?php endif; ?>

To make the module match the look of the template, you may need to adjust the CSS files.
User avatar

GK User
Wed Apr 17, 2013 10:34 am
Reply with quote
Report this post
Do you mean to this code to the default.php in the layout folder?

<?php if($this->API->modules('logotop')) : ?>
<div>
<jdoc:include type="modules" name="logotop" style="<?php echo $this->module_styles['logotop']; ?>" />
</div>
<?php endif; ?>

I've done this. Or do you mean something else?
User avatar
Fresh Boarder

Konrad M
Wed Apr 17, 2013 10:43 am
Reply with quote
Report this post
Yes I'm talking about it. Then you need publish your module in logotop position.
User avatar

GK User
Wed Apr 17, 2013 1:24 pm
Reply with quote
Report this post
I've done this.
User avatar
Fresh Boarder

Konrad M
Wed Apr 17, 2013 2:47 pm
Reply with quote
Report this post
And where exactly you paste this code ? In which file ?
User avatar


cron