New module position

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
Thu Oct 17, 2013 2:04 pm
Reply with quote
Report this post
Dear Gavick,

I would like to add a image overlapping the left-top corner. Please see image.

Image

Now i never did this before, and i know this is not part of your service, but iam very close and maby you can give me advice.

I was thinking its the best thing to create a new module position. So i added;

<div class="newposition">
<jdoc:include type="modules" name="newposition" />
</div>


in templates/gk_bluap/layouts/default.php and added this position to the xml file.

Now i created the following css rules in overide.css:

.newposition {
position:absolute;
left: 50px;
top: 50px;
display: block;
width: 224px;
height: 200px;
}


The point is that the image will not stick to the corner if using diffrent screen sizes. Could you give me a tip or some advice so i can keep trying, at this point iam out of options.

Best regards,

M
User avatar
Senior Boarder

GK User
Thu Oct 17, 2013 2:12 pm
Reply with quote
Report this post
For the exact problem you can look at the following video;

http://digitalconnect.nl/gavickcorner.swf

Best regards,

M
User avatar
Senior Boarder

GK User
Fri Oct 18, 2013 10:40 am
Reply with quote
Report this post
Dear Gavick,

So now i found this page;

http://www.gavick.com/documentation/joo ... -position/

But i think that this template works a little diffrent. I followed all steps and now i have to add the code to the default.php.

I made a module in xml and gk.const.php files called nieuw.

Now if i add the following code:

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

to default.php as your instructions, i get the following error:

Fatal error: Call to undefined method GKTemplate::modules (ofcorse in default.php)

Please give me some advice,

Thank you,

M
User avatar
Senior Boarder


cron