蘋果cms如何修改默認首頁

1,最近羣內好多新來的小夥伴在問默認模板怎麼去掉首頁的幫助提示信息模板,之前沒注意有這個首頁模板自己測試了下果不其然,最新蘋果cms默認模板首頁確實改爲了幫助提示信息模板。

如下圖所示

QQ圖片20191214203539.png

2,如果想要去掉首頁提示信息模板可以按照下面幾種方法解決:

① 最簡單有效的方法就是你可以把默認模板下的vod/index.html替換掉index/index.html就可以完美解決。

②下載我們幫你已經提取出來歷史版本的index.html文件替換即可,雲盤下載地址:https://www.lanzous.com/i8237uf 把你下載下來的壓縮包名稱爲template 上傳至網站根目錄解壓即可。

③複製下面代碼,替換掉首頁模板文件template/default_pc/html/index/index.html/內容即可(此首頁代碼是沒有升級之前的原首頁代碼,請放心使用)如果你自己保留有之前的默認模板可以自己替換。

<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$maccms.site_name}</title>
    <meta name="keywords" content="{$maccms.site_keywords}" />
    <meta name="description" content="{$maccms.site_description}" />
    {include file="public/include"}
</head>
<body>
{include file="public/head"}
<!-- banner 開始 -->
<div class="banner">
    <div id="lbsub">
        <div class="deansubdiv"><dl>
            {maccms:type ids="1,2,3,4" order="asc" by="sort" id="vo1" key="key1"}
            <dd class="deanddt{$key}">
                <h3><a href="{:mac_url_type($vo1)}">{$vo1.type_name} </a><span></span></h3>
                <div class="deansubpt">
                    {if condition="$key1 lt 3"}
                    <div class="deansubptpp">
                        <h5>類型</h5>
                        <div class="deansubptc">
                            <a href="{:mac_url_type($vo1,[],'show')}">全部</a>
                            {maccms:type parent="'.$vo1['type_id'].'" order="asc" by="sort" id="vo2" key="key2"}
                                <a href="{:mac_url_type($vo2,[],'show')}">{$vo2.type_name}</a>
                            {/maccms:type}
                        </div>
                    </div>
                    {/if}
                    <div class="deansubptpp">
                        <h5>地區</h5>
                        <div class="deansubptc">
                            <a href="{:mac_url_type($vo1,[],'show')}">全部</a>
                            {maccms:foreach name=":explode(',',$vo1.type_extend.area)" id="vo2" key="key2"}
                            <a href="{:mac_url_type($vo1,['area'=>$vo2],'show')}">{$vo2}</a>
                            {/maccms:foreach}
                        </div>
                    </div>
                    <div class="deansubptpp">
                        <h5>年代</h5>
                        <div class="deansubptc">
                            <a href="{:mac_url_type($vo1,[],'show')}">全部</a>
                            {maccms:foreach name=":explode(',',$vo1.type_extend.year)" id="vo2" key="key2"}
                            <a href="{:mac_url_type($vo1,['year'=>$vo2],'show')}">{$vo2}</a>
                            {/maccms:foreach}
                        </div>
                    </div>
                    <div class="deansubptpp">
                        <h5>字母</h5>
                        <div class="deansubptc">
                            <a href="{:mac_url_type($vo1,[],'show')}">全部</a>
                            {maccms:foreach name=":explode(',','A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,0-9')" id="vo2" key="key2"}
                            <a href="{:mac_url_type($vo1,['letter'=>$vo2],'show')}">{$vo2}</a>
                            {/maccms:foreach}
                        </div>
                    </div>
                </div>
            </dd>
            {/maccms:type}
            <dd class="deanddt5">
                {maccms:type ids="5" order="asc" by="sort"}
                <h3><a href="{:mac_url_type($vo,[],'show')}">{$vo.type_name}</a><span></span></h3>
                {/maccms:type}
            </dd>
            <dd class="deanddt5">
                <h3><a href="{:mac_url('label/rank')}">影視排行榜</a><span></span></h3>
            </dd>
        </dl></div></div>
    <script type="text/javascript">
        $(".deansubdiv dd").each(function(s){
            $(this).hover(
                    function(){
                        $(".deansubpt").eq(s).show();
                    },
                    function(){
                        $(".deansubpt").eq(s).hide();
                    })
        })
    </script>
    <ul class="51buypic">
        {maccms:vod num="5" level="9" order="desc" by="time"}
        <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}  {$vo.vod_remarks}"><img src="{$vo.vod_pic_slide|mac_url_img}" alt="{$vo.vod_name} {$vo.vod_remarks}" style="background-color: #EEEEEE;"/></a></li>
        {/maccms:vod}
    </ul>
    <a class="prev" href="javascript:void(0)"></a>
    <a class="next" href="javascript:void(0)"></a>
    <div class="num"><ul></ul></div>
    <script>
        /*鼠標移過,左右按鈕顯示*/
        $(".banner").hover(function(){
            $(this).find(".prev,.next").fadeTo("show",0.5);
        },function(){
            $(this).find(".prev,.next").hide();
        })
        /*鼠標移過某個按鈕 高亮顯示*/
        $(".prev,.next").hover(function(){
            $(this).fadeTo("show",0.8);
        },function(){
            $(this).fadeTo("show",0.5);
        })
        $(".banner").slide({ titCell:".num ul" , mainCell:".51buypic" , effect:"fold", autoPlay:true, delayTime:700 ,interTime:5000 , autoPage:true });
    </script>
</div>
<!-- 熱門推薦 -->
<div class="layout fn-clear" id="latest-focus">
    <div class="latest-tab-nav">
        <ul class="fn-clear">
            <li id="latest1" onmouseover="setTab('latest',1,5);" class="current"><span><i class="ui-icon movie"></i>熱門電影</span></li>
            <li id="latest2" onmouseover="setTab('latest',2,5);"><span><i class="ui-icon tv"></i>熱播電視劇</span></li>
            <li id="latest3" onmouseover="setTab('latest',3,5);"><span><i class="ui-icon dm"></i>熱門綜藝</span></li>
            <li id="latest4" onmouseover="setTab('latest',4,5);"><span><i class="ui-icon fun"></i>熱門動漫</span></li>
            <li id="latest5" onmouseover="setTab('latest',5,5);"><span><i class="ui-icon wei"></i>熱門推薦</span></li>
        </ul>
    </div>
    <div class="latest-tab-box">
        <div id="con_latest_1" class="latest-item movie-latest">
            <div class="silder-cnt">
                <ul class="img-list">
                    {maccms:vod num="5" type="1" order="desc" by="hits_month"}
                    <li><a class="play-img" href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/>
                    <label class="mask"></label>
                    <label class="text">{$vo.vod_version}</label></a>
                    <h5><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a></h5>
                    <p class="time">主演:{$vo.vod_actor}</p></li>
                    {/maccms:vod}
                </ul>
            </div>
            <ul class="txt-list">
                {maccms:vod num="12" type="1" start="6" order="desc" by="hits_month"}
                <li><span>{$vo.vod_time|date='m-d',###}.</span><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a>/ {$vo.vod_version}</li>
                {/maccms:vod}
            </ul>
        </div>
        <div id="con_latest_2" class="latest-item tv-latest fn-hide">
            <div class="silder-cnt">
                <ul class="img-list">
                    {maccms:vod num="5" type="2" order="desc" by="hits_month"}
                    <li><a class="play-img" href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/>
                        <label class="mask"></label>
                        <label class="text">連載{$vo.vod_serial}集 / 共{$vo.vod_total}集</label></a>
                        <h5><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a></h5>
                        <p class="time">主演:{$vo.vod_actor}</p></li>
                    {/maccms:vod}
                </ul>
            </div>
            <ul class="txt-list">
                {maccms:vod num="12" type="2" start="6" order="desc" by="hits_month"}
                <li><span>{$vo.vod_time|date='m-d',###}.</span><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a>/ 連載{$vo.vod_serial}集 / 共{$vo.vod_total}集</li>
                {/maccms:vod}
            </ul>
        </div>
        <div id="con_latest_3" class="latest-item dm-latest fn-hide">
            <div class="silder-cnt">
                <ul class="img-list">
                    {maccms:vod num="5" type="3" order="desc" by="hits_month"}
                    <li><a class="play-img" href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/>
                        <label class="mask"></label>
                        <label class="text">連載{$vo.vod_serial}集 / 共{$vo.vod_total}集</label></a>
                        <h5><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a></h5>
                        <p class="time">主演:{$vo.vod_actor}</p></li>
                    {/maccms:vod}
                </ul>
            </div>
            <ul class="txt-list">
                {maccms:vod num="12" type="3" start="6" order="desc" by="hits_month"}
                <li><span>{$vo.vod_time|date='m-d',###}.</span><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a>/ 連載{$vo.vod_serial}集 / 共{$vo.vod_total}集</li>
                {/maccms:vod}
            </ul>
        </div>
        <div id="con_latest_4" class="latest-item fun-latest fn-hide">
            <div class="silder-cnt">
                <ul class="img-list">
                    {maccms:vod num="5" type="4" order="desc" by="hits_month"}
                    <li><a class="play-img" href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/>
                        <label class="mask"></label>
                        <label class="text">連載{$vo.vod_serial}期</label></a>
                        <h5><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a></h5>
                        <p class="time">主演:{$vo.vod_actor}</p></li>
                    {/maccms:vod}
                </ul>
            </div>
            <ul class="txt-list">
                {maccms:vod num="12" type="4" start="6" order="desc" by="hits_month"}
                <li><span>{$vo.vod_time|date='m-d',###}.</span><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a>/ 連載{$vo.vod_serial}期</li>
                {/maccms:vod}
            </ul>
        </div>
        <div id="con_latest_5" class="latest-item wei-latest fn-hide">
            <div class="silder-cnt">
                <ul class="img-list">
                    {maccms:vod num="5" type="1" level="1,2,3,4,5,6,7,8,9" order="desc" by="hits_month"}
                    <li><a class="play-img" href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/>
                        <label class="mask"></label>
                        <label class="text">{$vo.vod_version}</label></a>
                        <h5><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a></h5>
                        <p class="time">主演:{$vo.vod_actor}</p></li>
                    {/maccms:vod}
                </ul>
            </div>
            <ul class="txt-list">
                {maccms:vod num="12" type="1" start="6" level="1,2,3,4,5,6,7,8,9" order="desc" by="hits_month"}
                <li><span>{$vo.vod_time|date='m-d',###}.</span><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}">{$vo.vod_name}</a>/ {$vo.vod_version}</li>
                {/maccms:vod}
            </ul>
        </div>
    </div>
</div>
<!-- 最新電影資源 -->
<div class="box">
    <div class="title">
        <h2>最新電影</h2>
        <dl>
            {maccms:type ids="6,7,8,9,10,11,12" order="asc" by="sort"}
            <dd><a href="{:mac_url_type($vo)}">{$vo.type_name}</a></dd>
            {/maccms:type}
        </dl>
    </div>
    <div class="box_con">
        <ul class="img-list dis">
            {maccms:vod num="10" type="6" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>{$vo.vod_version}</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="7" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>{$vo.vod_version}</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="8" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>{$vo.vod_version}</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="9" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>{$vo.vod_version}</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="10" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>{$vo.vod_version}</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="11" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>{$vo.vod_version}</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="12" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>{$vo.vod_version}</i><em></em></a></li>
            {/maccms:vod}
        </ul>
    </div>
</div>
<!--最新電視劇資源-->
<div class="box">
    <div class="title">
        <h2>最新電視劇</h2>
        <dl>
            {maccms:type ids="13,14,15,16" order="asc" by="sort"}
            <dd><a href="{:mac_url_type($vo)}">{$vo.type_name}</a></dd>
            {/maccms:type}
        </dl>
    </div>
    <div class="box_con">
        <ul class="img-list dis">
            {maccms:vod num="10" type="13" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>連載{$vo.vod_serial}集/共{$vo.vod_total}集</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="14" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>連載{$vo.vod_serial}集/共{$vo.vod_total}集</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="15" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>連載{$vo.vod_serial}集/共{$vo.vod_total}集</i><em></em></a></li>
            {/maccms:vod}
        </ul>
        <ul class="img-list undis">
            {maccms:vod num="10" type="16" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>連載{$vo.vod_serial}集/共{$vo.vod_total}集</i><em></em></a></li>
            {/maccms:vod}
        </ul>
    </div>
</div>
<!--最新綜藝節目資源-->
<div class="box">
    <div class="title">
        <h2 class="mar">最新綜藝節目</h2>
        <dl>
            <dd class="font">不間斷爲您呈現最輕鬆、最搞笑、最火爆的綜藝節目-盡在龍資源!</dd>
        </dl>
    </div>
    <div class="box_con">
        <ul class="img-list dis">
            {maccms:vod num="10" type="3" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>連載{$vo.vod_serial}期</i><em></em></a></li>
            {/maccms:vod}
        </ul>
    </div>
</div>
<!--最新動畫片資源-->
<div class="box">
    <div class="title">
        <h2 class="mar">最新動畫片</h2>
        <dl>
            <dd class="font">每天爲您更新最熱門的經典動漫-與你分享!</dd>
        </dl>
    </div>
    <div class="box_con">
        <ul class="img-list dis">
            {maccms:vod num="10" type="4" order="desc" by="time"}
            <li><a href="{:mac_url_vod_detail($vo)}" title="{$vo.vod_name}"><img src="{:mac_url_img($vo.vod_pic)}" alt="{$vo.vod_name}"/><h2>{$vo.vod_name}</h2><p>{$vo.vod_actor}</p><i>連載{$vo.vod_serial}集/共{$vo.vod_total}集</i><em></em></a></li>
            {/maccms:vod}
        </ul>
    </div>
</div>
<!--最新影視資訊-->
<div class="box">
    <div class="title">
        <h2 class="mar">最新影視資訊</h2>
        <dl>
            <dd class="font">這裏會發佈一些關於電影、電視劇、明星八卦、娛樂圈的相關報道</dd>
        </dl>
    </div>
    <div class="box_news pianyi">
        <ul>
            {maccms:art num="20" order="desc" by="time"}
            <li><a href="{:mac_url_art_detail($vo)}" title="{$vo.art_name}">{$vo.art_name|mac_substring=22}</a><span>{$vo.art_time|date='Y-m-d',###}</span></li>
            {/maccms:art}
        </ul>
    </div>
</div>
<!-- 友情鏈接 -->
<div id="link" class="block">
    <div id="title">友情鏈接 LINK</div>
    <ul>
        <li><a href="//www.maccms.com" target="_blank">蘋果CMS-官網</a></li>
        <li><a href="//bbs.maccms.com" target="_blank">蘋果CMS-論壇</a></li>
        {maccms:link num="10" type="all" order="desc" by="id"}
        <li><a href="{$vo.link_url}" target="_blank">{$vo.link_name}</a></li>
        {/maccms:link}
        <div class="clear"></div>
    </ul>
</div>
<script type="text/javascript">
    jQuery(".box").slide({ titCell:".title dd",mainCell:".box_con",delayTime:0 });
</script>
<span style="display: none;" class="mac_timming" data-file="" ></span>
{include file="public/foot"}
</body>
</html>

3,如果你不想用默認模板可以忽視,換掉官方的默認模板即可解決。

聲明:除特殊聲明外本站文檔均由作者原創,轉載請註明出處,原文地址:最新版蘋果cms如何去掉首頁幫助提示信息

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章