Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • eruzak Friend
    #161205

    How 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


    1. rave
    aman204 Friend
    #380474

    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

    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

    eruzak Friend
    #380478

    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

    aman204 Friend
    #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 Friend
    #380482

    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.

    aman204 Friend
    #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 Friend
    #380511

    I 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 Friend
    #380521

    As 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


    1. position-module
    eruzak Friend
    #380616

    Thank you so much.I get it.
    Another question is how to make text align to right or left?

    Saguaros Moderator
    #380633

    YOu 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 🙂

Viewing 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