Add module position as background of another module postition

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
the planet
Joomla! Apprentice
Joomla! Apprentice
Posts: 36
Joined: Sat Aug 24, 2013 2:30 pm

Add module position as background of another module postition

Post by the planet » Wed May 04, 2016 11:23 pm

Hello forum.
I'm building a template from scratch for joomla 3 for a real estate website.
Im using joomla since 2011 and i know enough of how to use bootstrap for joomla 3, ofcourse improvement is needed too.
I want to build a design like this->http://amsolutions.weburl.ro/corporatex ... index.html, in which the map is a background of the filter/search.
Nothing else matters than this feature in which one module position for map is the background of another module position that is filter.

So, the question is how to assign 2 module positions that the one is the background of the other position?

dilumtharaka
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Thu May 05, 2016 12:42 am

Re: Add module position as background of another module postition

Post by dilumtharaka » Thu May 05, 2016 1:05 am

Hi,

If you check that template, you can see that they have used a div with a class (<div class="span3">) for the search modules, and styled it with CSS.

Code: Select all

.span3 {
    float: right;
    margin-right: 80px;
    margin-top: -390px;
    position: relative;
    z-index: 0;
}
.span3 {
    width: 220px;
}
So what you should do is, assign the search module below the map (To a module position) and style it with CSS.


Hope this helps.

JohnSmithers
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 227
Joined: Mon Feb 11, 2013 9:22 am

Re: Add module position as background of another module postition

Post by JohnSmithers » Thu May 05, 2016 2:19 pm

Is the original question not asking how you can overlay a module on top of another?

I'm assuming the map would be a module too; is there any way to layer Joomla modules on top of one another?

Perhaps there is a Joomla map extension with search facility? Such as this one with a two minute search on Google: http://www.demo-joomunited.com/my-maps- ... ion-search

User avatar
JTema
Joomla! Guru
Joomla! Guru
Posts: 733
Joined: Sun Apr 13, 2008 8:10 pm

Re: Add module position as background of another module postition

Post by JTema » Thu May 05, 2016 3:36 pm

JohnSmithers wrote:Is the original question not asking how you can overlay a module on top of another?

I'm assuming the map would be a module too; is there any way to layer Joomla modules on top of one another?

Perhaps there is a Joomla map extension with search facility? Such as this one with a two minute search on Google: http://www.demo-joomunited.com/my-maps- ... ion-search
That is possible I think. At least I ve made such a thing here http://ttkder.org.tr/ you can see header is random image module changing image on every page loading and search module on it.
http://www.joomlatema.net - Joomla Extensions and Templates
https://asgardia.joomlatema.net - Asgardia Joomla Gardening Template

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30923
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: Add module position as background of another module postition

Post by Per Yngve Berg » Thu May 05, 2016 6:05 pm


User avatar
JTema
Joomla! Guru
Joomla! Guru
Posts: 733
Joined: Sun Apr 13, 2008 8:10 pm

Re: Add module position as background of another module postition

Post by JTema » Thu May 05, 2016 6:28 pm

Yes i also have used css absolute positioning.
http://www.joomlatema.net - Joomla Extensions and Templates
https://asgardia.joomlatema.net - Asgardia Joomla Gardening Template

adclipvtv
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri May 06, 2016 12:08 pm

Re: Add module position as background of another module postition

Post by adclipvtv » Fri May 06, 2016 12:11 pm

the planet wrote:Hello forum.
I'm building a template from scratch for joomla 3 for a real estate website.
Im using joomla since 2011 and i know enough of how to use bootstrap for joomla 3, ofcourse improvement is needed too.
I want to build a design like this->http://amsolutions.weburl.ro/corporatex ... index.html, in which the map is a background of the filter/search.
Nothing else matters than this feature in which one module position for map is the background of another module position that is filter.

So, the question is how to assign 2 module positions that the one is the background of the other position?
I also have the same questions and unresolved it, someone can help me.?
phim sex, jav hd
Last edited by adclipvtv on Sat May 07, 2016 2:37 am, edited 1 time in total.

User avatar
JTema
Joomla! Guru
Joomla! Guru
Posts: 733
Joined: Sun Apr 13, 2008 8:10 pm

Re: Add module position as background of another module postition

Post by JTema » Fri May 06, 2016 12:49 pm

You can use the codes below as an example;

these are html codes for index.php

Code: Select all

<div class="header_wrap">
<!-- RANDOM IMAGE -->
<div class="random-image">
<jdoc:include type="modules" name="<?php $this->('randomimage') ?>" style="raw" />
</div>
<!-- //RANDOM IMAGE  -->

<div class="head-search">
<jdoc:include type="modules" name="<?php $this->('head-search') ?>" style="raw" />
</div>

</div><!--end of header_wrap -->
these are css codes

Code: Select all

.header_wrap {
    height: 121px;
    position: relative;
}

.head-search {
    position: absolute;
    top: 20px;
}
http://www.joomlatema.net - Joomla Extensions and Templates
https://asgardia.joomlatema.net - Asgardia Joomla Gardening Template


Locked

Return to “Templates for Joomla! 3.x”