[英]Frontend editor in joomla 3 does not load the assigned position
Well I use the new feature frontend editor in joomla 3.4 and works well with a single template (protostar - default). 好吧,我在joomla 3.4中使用了新功能的前端编辑器,并且可以与单个模板(protostar-默认)一起很好地工作。
I need to use multiple templates on my site. 我需要在我的网站上使用多个模板。 Then copy the protostar template, delete I do not need and protostar2 name, just place a call position position-80.
然后复制protostar模板,删除我不需要的protostar2名称,只需放置一个呼叫位置position-80。
Template protostar2 模板protostar2
Index.php 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 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>
When I modify the module from the frontend everything is OK, except that the position section only loads the positions of protostar and not protostar2 position-80 appears. 当我从前端修改模块时,一切正常,除了position部分仅加载protostar的位置,而不显示protostar2 position-80。 Now if I change the module (position 80) from the backend it works perfect.
现在,如果我从后端更改模块(位置80),则可以正常工作。 Here a picture .
这里一张图片 。
In short. 简而言之。 I have 2 templates: protostar (Default) and protostar2.
我有2个模板:protostar(默认)和protostar2。 I created a menu (m2) and assigned the protostar2, then I did my module and assign the position-80.
我创建了一个菜单(m2)并分配了protostar2,然后执行了我的模块并分配了位置80。 To edit from the frontend load not the position I-80
要从前端加载而不是位置I-80编辑
What I need place to load the correct position?. 我需要在什么地方加载正确的位置?
I found a solution editing the file default.php in line 110 I comment : 我在第110行找到了一种编辑文件default.php的解决方案:
//echo $this->loadTemplate('positions');
Whith this does not load the positions and solved my problem. 惠特这不会加载职位并解决了我的问题。 The file is allocated in YOUR_PATH_SITE\\components\\com_config\\view\\modules\\tmpl\\default.php
该文件分配在YOUR_PATH_SITE \\ components \\ com_config \\ view \\ modules \\ tmpl \\ default.php中
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.