将Joomla 2.5模板转换为3.0 [英] Convert Joomla 2.5 template to 3.0

查看:50
本文介绍了将Joomla 2.5模板转换为3.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个自定义的joomla 2.5模板,我希望将其转换为Joomla 3.0.目前,我发现的唯一方法是如何将Joomla 1.5转换为2.5.请在这里指导我,因为我已经花了将近一个月的时间.我找到了一种方法 http://docs.joomla.org/J3.1:Converting_A_Previous_Joomla!_Version_Template ,但我不知道该怎么做.如果您还可以给出明确的步骤来实现如何实现我发布的链接中的步骤,那么这将对我有很大帮助.

I have a custom joomla 2.5 template and I wish to convert it to Joomla 3.0. Currently the only method I found is how to convert a Joomla 1.5 to 2.5. Please guide me here because I have spent almost a month on this. I found a method http://docs.joomla.org/J3.1:Converting_A_Previous_Joomla!_Version_Template but I do not understand how to go about it. If you could also give a clear procedure on how to implement the steps in the link I have posted this would help me alot.

推荐答案

这个答案可能不是很详细,但是您可以执行以下步骤:

This answer may not be in a detail manner but here you go with some steps:

  1. 从Joomla 2.5模板中识别纯HTML.分开存放 片刻.
  2. Joomla中不推荐使用许多函数和常量 3.x例如DS常数,用于在Joomla 2.5中提供"/".您需要将其替换为"/".
  3. 获取站点名称,徽标等通用功能将需要一个代码 改变.您可以从Protostar模板中获取参考.你可以 查看他们如何从代码中检索站点名称的值.它 一开始似乎很难,但是当您逐渐前进时,您会 熟悉Joomla 3模板引擎.
  4. 完成所有操作后,就可以继续编辑XML文件了.您可以从Protostar模板复制并粘贴templateDetails.xml.确保更改文件名,文件夹等重要元素.
  1. Identify plain HTML from Joomla 2.5 template. Keep it in separate file for a moment.
  2. There are many functions, constants that are deprecated in Joomla 3.x e.g. DS constant which is used to provide "/" in Joomla 2.5. You need to replace it with "/".
  3. Common functions like getting sitename, logo etc. will need a code change. You can take a reference from Protostar template. You can see how they have retrieved value of sitename from the code. It seems to be hard at first but when you go ahead gradually, you will get familiar with Joomla 3 template engine.
  4. Once everything is done, you can go ahead and edit XML file. You can copy and paste templateDetails.xml from Protostar template. Make sure to change important elements like filename, folder etc.

压缩整个模板文件夹并将其安装在您的网站上,使其成为默认文件夹.如果发现任何错误,请继续并打开错误报告在PHP中.解决这些错误,并使您的模板在Joomla 3上正常工作

Zip the whole template folder and install it on your website make it default. If you find any errors then go ahead and turn on error reporting in PHP. Resolve those errors and make your template work on Joomla 3

这篇关于将Joomla 2.5模板转换为3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆