-
AuthorPosts
-
mammi Friend
mammi
- Join date:
- June 2009
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
May 14, 2011 at 2:08 pm #163999I am new to both Joomal and JoomlaArts,
I am currently trying to add a new module position to the default JA Teline III template.I need this module to put a separate menu but with a similar size to the magazine menu.
Any ideas?
Please refer to my attachment for more information.
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
May 14, 2011 at 6:22 pm #391259Try creatinf a new module position in the following Doc
http://wiki.joomlart.com/wiki/JA_Template_Framework/FAQs#Creating_new_module_positions
mammi Friendmammi
- Join date:
- June 2009
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
June 3, 2011 at 5:31 pm #394553<em>@Chavan 240475 wrote:</em><blockquote>Try creatinf a new module position in the following Doc
http://wiki.joomlart.com/wiki/JA_Template_Framework/FAQs#Creating_new_module_positions</blockquote>
Dear Chavan,
I need some clarifications on the document as I am not very familiar with the codes;
<div class="ja-mass clearfix">
<jdoc:include type="modules" name="featured-products" style="JAxhtml" />
</div>
1. What is the actual class name ( instead of ‘ja-mass’ ) should I be using?
2. Is it necessary to create a new block for this module position? Can I use existing blocks such as mainnav.php and insert this code just above the following?<div class="ja-breadcrums">
<strong><?php echo JText::_('You are here')?></strong> <jdoc:include type="module" name="breadcrumbs" />
</div>
2. I would like to have the style similar to the sub menu of the main magazine menu. ( See the picture below), so what is the exact styling I need to use instead of JAxhtml ?
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
June 3, 2011 at 5:58 pm #394559Use the Existing Block position itself.
mammi Friendmammi
- Join date:
- June 2009
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
June 3, 2011 at 8:26 pm #394585<em>@Chavan 244710 wrote:</em><blockquote>Use the Existing Block position itself.</blockquote>
can I use mainnav.php?
What about the styling I need to use instead of JAxhtml?
mammi Friendmammi
- Join date:
- June 2009
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
June 4, 2011 at 6:37 am #394630I’ve bee trying to follow the instructions on the link provided but I was not able to create the menu successfully.
Somebody please help.I’m missing something.
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 4, 2011 at 12:41 pm #394673Hi mammi,
Since the template JA Teline III is based on JAT3 framework, you dont need to access any php files to add a new module position.
1. You should go to Joomla admin > Extensions > Template Manager > JA Teline III > LAYOUTS tab.
2. Click on the Edit link in front of Default layout.
3. Find <block name=”mainnav” type=”mainnav”></block> or similar code in the opened layout file.
4. Place <block name=”divname_youwant” type=”modules”>yourposition</block> below the mainnav block code line. This will create a module position for you. Now you can publish any module in this and apply styling as you want in the template.css
5. To apply the submenu styling to your menu, you will need to copy the styling from the menu css corresponding to the menu type you are using, e.g css.css / mega.css etc.Hope this will solve your issue.
1 user says Thank You to himangi for this useful post
mammi Friendmammi
- Join date:
- June 2009
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
June 5, 2011 at 5:38 pm #394782Hi Himangi,
Thank you very much for the response. Now I’ve at least managed to create a new module position just below the main navigation.As per your suggestion I’ve used split.css as my new style and further edited template.css, please see my 1st screenshot below.13569.
I would like your assistance with the following:
1. How can I modify the default size of the module to have the same size as my new menu so as to remove the big space in between.
2. How to align the menu to the center? Fill the whole space with the same color(black)Please see below what I mean( my objective) for further clarity.
13570
For your reference below is part of my template.css file I modified;
/* Custom Menu START */
#ja-custom-menu {
position: relative;
}#ja-custom-menu ul {}
#ja-custom-menu li {
float: left;
padding: 0;
margin: 0;
border-right: 1px solid #ccc;
}#ja-custom-menu a {
display: block;
float: left;
text-decoration: blink;
padding: 10px;
color: #fff;
background:#000000
}#ja-custom-menu a:hover,
#ja-custom-menu a:active,
#ja-custom-menu a:focus {
background: url(../../images/mainnav-hover.gif) repeat-x bottom #f7f7f7;
color: #000;
}#ja-custom-menu li.active a,
#ja-custom-menu li.active a:hover,
#ja-custom-menu li.active a:active,
#ja-custom-menu li.active a:focus {
background: url(../../images/mainnav-active.gif) repeat-x top #333;
color: #fff;
}/* Custom Menu END */
-
himangi Friend
himangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 6, 2011 at 3:08 am #394817Hi mammi,
Can you please post your site URL here. I will be able to give you an effective solution if I can see the site myself.
mammi Friendmammi
- Join date:
- June 2009
- Posts:
- 16
- Downloads:
- 0
- Uploads:
- 4
- Thanks:
- 7
- Thanked:
- 1 times in 1 posts
June 6, 2011 at 7:26 am #394855<em>@himangi 245071 wrote:</em><blockquote>Hi mammi,
Can you please post your site URL here. I will be able to give you an effective solution if I can see the site myself.</blockquote>
Unfortunately I’m now working offline( on a local server).
Any more suggestions please?
himangi Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 6, 2011 at 7:48 am #394862In that case, I will tell you to what elements you need to give styling..
Say your newly created position in the layout is like <block name=”divname_youwant” type=”modules”>yourposition</block>. Install Firebug addon for Firefox or you chrome browser so that you can inspect the element you want and styling related to it..
If you inspect the white space around your new menu,, by right clicking on it and using inspect element, it will show you the element you have just selected as it appears in the HTML code ,something like <div id=”divname_youwant”> etc and styling related to that in the right column.. Now go to your template.css file and add div#divname_youwant{ height: 30px; width:100%;}, save the file and check the effect on front end.. You can change these height, width values to make the menu look good on your site. This will be very basic styling and you will need to add more styling to it but I can not tell you that without viewing the site..If you can move your site to some live server, I can take a look and give you exact solution but otherwise you will have to play with css and fix it..
1 user says Thank You to himangi for this useful post
-
AuthorPosts
Viewing 11 posts - 1 through 11 (of 11 total)This topic contains 11 replies, has 3 voices, and was last updated by himangi 13 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum