繁体   English   中英

joomla 3中的前端编辑器不会加载分配的位置

[英]Frontend editor in joomla 3 does not load the assigned position

好吧,我在joomla 3.4中使用了新功能的前端编辑器,并且可以与单个模板(protostar-默认)一起很好地工作。

我需要在我的网站上使用多个模板。 然后复制protostar模板,删除我不需要的protostar2名称,只需放置一个呼叫位置position-80。

模板protostar2

Index.php

<?php

defined('_JEXEC') or die;


?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <jdoc:include type="head" />
    <link rel="stylesheet"  href="http://j2.travelsolution.mx/templates/protostar/css/template.css" type="text/css" />
    <script src="http://j2.travelsolution.mx/templates/protostar/js/template.js" type="text/javascript"></script>


</head>

<body class="site ">


    <div class="body">
        <div class="container">



            <div class="row-fluid">

                <main id="content" role="main" >
                    <jdoc:include type="component" />
                    <jdoc:include type="modules" name="position-80" />

                </main>

            </div>
        </div>
    </div>

</body>
</html>

templateDetails.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 2.5//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/2.5/template-install.dtd">
<extension version="3.1" type="template" client="site">
    <name>protostar2</name>
    <version>1.0</version>
    <creationDate>4/30/2012</creationDate>
    <author>Kyle Ledbetter</author>
    <authorEmail>admin@joomla.org</authorEmail>
    <copyright>Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.</copyright>
    <description>TPL_PROTOSTAR2_XML_DESCRIPTION</description>
    <files>
        <folder>css</folder>    
        <folder>js</folder>
        <filename>index.php</filename>
        <filename>templateDetails.xml</filename>

    </files>
    <positions>
        <position>position-80</position>
    </positions>

</extension>

当我从前端修改模块时,一切正常,除了position部分仅加载protostar的位置,而不显示protostar2 position-80。 现在,如果我从后端更改模块(位置80),则可以正常工作。 这里一张图片

简而言之。 我有2个模板:protostar(默认)和protostar2。 我创建了一个菜单(m2)并分配了protostar2,然后执行了我的模块并分配了位置80。 要从前端加载而不是位置I-80编辑

我需要在什么地方加载正确的位置?

我在第110行找到了一种编辑文件default.php的解决方案:

//echo $this->loadTemplate('positions');

惠特这不会加载职位并解决了我的问题。 该文件分配在YOUR_PATH_SITE \\ components \\ com_config \\ view \\ modules \\ tmpl \\ default.php中

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM