-
AuthorPosts
-
eruzak Friend
eruzak
- Join date:
- December 2007
- Posts:
- 282
- Downloads:
- 3
- Uploads:
- 52
- Thanks:
- 19
- Thanked:
- 3 times in 1 posts
March 9, 2011 at 8:05 am #161205How can I add text at the top of template?(please see the attachment that I note use red square)What file should I revise ?
regards
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
March 9, 2011 at 8:39 am #3804741) Try add this ::
<block name=”top-panel” type=”modules” style=”raw” main-inner=”1″>top-panel</block>
above
<block name=”mainnav” type=”mainnav” main-inner=”1″></block>
which would bring in top-panel position in desired area
This option can be seen when you edit the specific profile under layouts tab in template parameters
2) Now, You can please follow this tutorial to add a module::
http://www.joomlart.com/forums/topic/how-to-create-a-new-module-position/
Mainly, You have to type new position name and click on apply
1 user says Thank You to aman204 for this useful post
eruzak Frienderuzak
- Join date:
- December 2007
- Posts:
- 282
- Downloads:
- 3
- Uploads:
- 52
- Thanks:
- 19
- Thanked:
- 3 times in 1 posts
March 9, 2011 at 8:46 am #380478How can I find the file that should to revise?(path way)
regards.<em>@aman204 226522 wrote:</em><blockquote>1) Try add this ::
<block name=”top-panel” type=”modules” style=”raw” main-inner=”1″>top-panel</block>
above
<block name=”mainnav” type=”mainnav” main-inner=”1″></block>
which would bring in top-panel position in desired area
This option can be seen when you edit the specific profile under layouts tab in template parameters
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
March 9, 2011 at 8:49 am #380479<em>@eruzak 226526 wrote:</em><blockquote>How can I find the file that should to revise?(path way)
regards.<em>@aman204 226522 wrote:</em><blockquote>1) Try add this ::
<block name=”top-panel” type=”modules” style=”raw” main-inner=”1″>top-panel</block>
above
<block name=”mainnav” type=”mainnav” main-inner=”1″></block>
which would bring in top-panel position in desired area
This option can be seen when you edit the specific profile under layouts tab in template parameters</blockquote>
This file can be seen here ::
admin >> template parameters >> layouts >> further, when you click on the layout assigned in layouts management, it will open popup showing code where the edit is to be done
eruzak Frienderuzak
- Join date:
- December 2007
- Posts:
- 282
- Downloads:
- 3
- Uploads:
- 52
- Thanks:
- 19
- Thanked:
- 3 times in 1 posts
March 9, 2011 at 8:57 am #380482the line “<block name=“top-panel” type=“modules” style=“raw” main-inner=”1″>top-panel</block>” has existed.
and I read another article you show to me.
but…
I still don’t know how to add text at the top of template.Is there any good sample that you can show to me?
regards.
aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
March 9, 2011 at 11:25 am #380501<em>@eruzak 226531 wrote:</em><blockquote>the line “<block name=“top-panel” type=“modules” style=“raw” main-inner=”1″>top-panel</block>” has existed.
and I read another article you show to me.
but…
I still don’t know how to add text at the top of template.Is there any good sample that you can show to me?
regards.</blockquote>
If the code reference is already present, You can go on with second step outlined above for entering position name in tutorial.
For text addition, You can go on to create custom module where you can enter the text in custom output area
eruzak Frienderuzak
- Join date:
- December 2007
- Posts:
- 282
- Downloads:
- 3
- Uploads:
- 52
- Thanks:
- 19
- Thanked:
- 3 times in 1 posts
March 9, 2011 at 1:06 pm #380511I don’t know why I can’t find “top-panel” at the module positon at the module position menu when adding a custom module.Can you help me how to find the “top-panel” ?
My template parameters is below:
<?xml version="1.0" encoding="utf-8"?>
<layout name="desktop">
<!--Extra css load for this layout-->
<stylesheets>
</stylesheets>
<blocks name="top" style="xhtml">
<block name="top-panel" type="modules" style="raw" main-inner="1">top-panel</block>
<block name="mainnav" type="mainnav" main-inner="1"></block>
<block name="header" type="header" main-inner="1"></block>
<block name="cpanel" type="usertools/cpanel"></block>
<block name="topsl" type="spotlight" main-inner="1">user1,user2,user3,user4,user5</block>
</blocks>
<blocks name="middle" colwidth="35">
<block name="inset1" width="18">left</block>
<block name="content-mass-top">slideshow</block>
<block name="right1">right</block>
</blocks>
<blocks name="bottom" style="xhtml">
<block name="botsl" type="spotlight" main-inner="1" >user6,user7,user8,user9,user10</block>
<block name="footer" type="footer"></block>
</blocks>
</layout>aman204 Friendaman204
- Join date:
- January 2010
- Posts:
- 1945
- Downloads:
- 0
- Uploads:
- 43
- Thanks:
- 11
- Thanked:
- 418 times in 356 posts
March 9, 2011 at 2:06 pm #380521As suggested in tutorial thread, You can manually enter position name if it doesnt appear in dropdown and click on apply
I have attached a screenshot showing where to enter it
eruzak Frienderuzak
- Join date:
- December 2007
- Posts:
- 282
- Downloads:
- 3
- Uploads:
- 52
- Thanks:
- 19
- Thanked:
- 3 times in 1 posts
March 10, 2011 at 12:37 am #380616Thank you so much.I get it.
Another question is how to make text align to right or left?Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 10, 2011 at 3:21 am #380633YOu can use the Text-algin property to align the text, please refer concept in here http://www.w3schools.com/CSS/pr_text_text-align.asp
and i do not where would you like to use this, so you try making a css rule by yourself 🙂1 user says Thank You to Saguaros for this useful post
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 10 replies, has 3 voices, and was last updated by Saguaros 13 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum