Nhờ Giúp Đỡ Về Việc Thêm Vi Trí Module Template Yt_new

Discussion in 'Hướng dẫn - Hỏi đáp' started by xhung_htk, Oct 28, 2012.

  1. xhung_htk

    xhung_htk Mới tham gia

    Messages:
    7
    Likes Received:
    0
    Tôi đang sử dụng template yt_new
    Tôi muống thêm 2 vị trí như hình, nhờ các bạn giúp đỡ
    untitled1.JPG
     
  2. dinhchi

    dinhchi Administrator Staff Member

    Messages:
    1,358
    Likes Received:
    1,022
    bạn dùng layout left-main-right đúng ko.
    Bạn thay toàn bộ layout đó bằng nội dung này nhé
    Mình đặt tên position bên trái là slides và bên phải là right-top
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <layout type="left-main-right" width="970px">   
        <head>
           
        </head>
        <groups>
            <group width="335px" height="">right-top</group>
            <group width="" height="">footer-left</group>
            <group width="300px" height="">footnav</group>
        </groups>
        <blocks>               
            <top order="1" id="yt_top">
                <positions>
                    <position width="568px" type="modules">top1</position>
                    <position width="100px" type="feature">@fontsize</position>
                    <position width="300px" type="modules">top2</position>
                </positions>
            </top>
            <header2 order="2" id="yt_header">
                <positions>
                    <position width="340px" height="95px" type="feature">@logo</position>
                    <position width="318px" height="95px" type="modules">header1</position>
                    <position width="290px" height="95px" style="" type="modules">header2</position>
                </positions>
            </header2>
            <menu order="3" id="yt_menu">
                <positions>
                    <position width="785px" type="feature">@menu</position>
                    <position width="180px" type="modules">nav2</position>
                </positions>
            </menu>       
            <spotlight1 order="4" id="yt_botslwrap1">
                <positions>
                    <position width="70%" style="xhtml" type="modules">slides</position>
                    <position width="28%" style="xhtml" type="modules">right-top</position>
                </positions>
            </spotlight1>
            <content order="5" id="content" showDivTop="0" showDivBottom="0">
                <positions>   
                    <position column="yt_col1" width="" group="left" style="ytmenubasic" type="modules">left</position>   
                    <position column="yt_col1" width="" group="main" style="xhtml" type="modules">content-top</position>           
                    <position column="yt_col1" width="" group="main" type="component">component</position>
                    <position column="yt_col1" width="" group="main" style="xhtml" type="modules">content-bottom</position>                     
                    <position column="yt_col2" width="" group="right" style="xhtml" type="modules">right</position>   
                </positions>
            </content>
            <spotlight1 order="6" id="yt_botslwrap1">
                <positions>
                    <position width="" style="xhtml" type="modules">user1</position>
                    <position width="" style="xhtml" type="modules">user2</position>
                    <position width="" style="xhtml" type="modules">user3</position>
                </positions>
            </spotlight1>   
            <spotlight2 order="7" id="yt_botslwrap2">
                <positions>
                    <position width="" style="xhtml" type="modules">user4</position>
                    <position width="" style="xhtml" type="modules">user5</position>
                    <position width="" style="xhtml" type="modules">user6</position>
                </positions>
            </spotlight2>
            <footer1 order="8" id="yt_footer">
                <positions>
                    <position width="" type="feature">@copyright</position>
                    <position group="footnav" colspan="0" width="" style="" type="modules">footnav</position>
                    <position group="footnav" width="" style="" type="modules">social</position>
                </positions>
            </footer1>                       
        </blocks>
    </layout>    
     
    xhung_htk likes this.
  3. xhung_htk

    xhung_htk Mới tham gia

    Messages:
    7
    Likes Received:
    0
    Rất cảm ơn dinhchi!
    Cảm ơn!
     
  4. xhung_htk

    xhung_htk Mới tham gia

    Messages:
    7
    Likes Received:
    0
    Cho mình hỏi thêm, bây giờ muống thay đổi màu nền của 2 vị trí này thì làm thế nào?
    Mình cùi bắp lắm, giúp với nhé!
     
  5. demo321

    demo321 Mới tham gia

    Messages:
    4
    Likes Received:
    0
    nhân tiện giúp đỡ mình thêm 1 vị trí ngay dưới main chính hiển thì nội dung của temp Siteground-j16-41 với
    Thanks!
     
  6. dinhchi

    dinhchi Administrator Staff Member

    Messages:
    1,358
    Likes Received:
    1,022
    bạn bảo template j mà ko đưa cho mình sao mình hd đc chứ
     
  7. dinhchi

    dinhchi Administrator Staff Member

    Messages:
    1,358
    Likes Received:
    1,022
    bạn thêm vào template.css chút css là đc
    #slides, #right-top{
    background: #mã màu bạn thích;
    }
     
comments powered by Disqus

Share This Page