简体   繁体   English

如何将html模板转换为joomla模板?

[英]how to convert html template to joomla template?

I have a html template that has multiple pages like home, about us,contact,services,... and I want to convert it to a joomla template.I spent a lot of time for searching a good tutorial in google like this: 我有一个HTML模板,该模板有多个页面,例如首页,关于我们,联系方式,服务等...,我想将其转换为joomla template.I花了很多时间在google中搜索一个好的教程,如下所示:

http://www.learning.asarayan.com/education-website-design/joomla-training2/334-convert-html-to-joomla-template http://www.learning.asarayan.com/education-website-design/joomla-training2/334-convert-html-to-joomla-template

but non of them can answer my question: how can I convert ALL pages of html to joomla??I mean that I can convert one page for example home to joomla and define its position but what about other pages? 但是它们中没有一个可以回答我的问题:如何将html的所有页面转换为joomla?我的意思是我可以将例如home的页面转换为joomla并定义其位置,但是其他页面呢? can anybody introduce me a COMPLETE tutorial??? 有人可以向我介绍一个完整的教程吗???

sorry for my poor english 对不起,我英语不好

thanQ 比Q

There is no automatic converter or out of the box solution for this, neither any tutorial to help you. 没有自动转换器或开箱即用的解决方案,也没有任何教程可以帮助您。 The best way to sort out the issue is by duplicating the template with the help of Artisteer. 解决问题的最佳方法是在Artisteer的帮助下复制模板。 You can just recreate the template design and feel with Artisteer. 您可以重新创建模板设计,并使用Artisteer进行操作。 Download link: www.artisteer.com/?p=downloads 下载链接:www.artisteer.com/?p=downloads

You need to change your mindset from that for a static template to that for a dynamic template. 您需要将心态从静态模板更改为动态模板。

In joomla templates there is a base layout called index.php as you know. 如您所知,在joomla模板中有一个称为index.php的基本布局。 But that is very skeletal usually, is just defines some locations on a page, includes your css and javascript that is common to all of your pages. 但这通常是非常骨骼的,只是定义页面上的某些位置,包括所有页面共有的css和javascript。 This gives your site a common look and feel and ensures a good user experience. 这使您的网站具有共同的外观和感觉,并确保了良好的用户体验。

For your css for the individual pages you would normally just include that in the template.css file or similar. 对于单个页面的CSS,通常只将其包含在template.css文件或类似文件中。

Within the index file you will see places that say jdoc:inlcude. 在索引文件中,您将看到显示jdoc:inlcude的位置。 These are the places that actually include the layouts that provide detailed html for specific blocks on the page, typically there will be one component jdoc (there cannot be more than one) and many modules and module ones as well as some others. 这些是实际包含布局的位置,这些布局为页面上的特定块提供了详细的html,通常会有一个组件jdoc(不能超过一个),许多模块和模块以及其他一些模块。

The html for these documents is found in the components/com_componentname/view/viewname/tmpl folders. 这些文档的html可在components / com_componentname / view / viewname / tmpl文件夹中找到。

To override the core layouts you use the template override system by placing same named files in the html folder of your template. 要覆盖核心布局,请使用模板覆盖系统,方法是将相同的命名文件放置在模板的html文件夹中。 You can look at the included templates to see how this works. 您可以查看随附的模板,以了解其工作原理。 There is pretty good documentation of this on the joomla documentation site. 在joomla文档站点上有很好的文档。 http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core will get you started. http://docs.joomla.org/How_to_override_the_output_from_the_Joomla!_core将帮助您入门。

Also this may be a point of confusion. 同样,这可能是一个混淆点。 In a CMS you strive to separate content from presentation. 在CMS中,您努力将内容与表示分离。 So if you enter the core information in the cms, ie enter the contact information in com_contact, and enter most of your current content into individual articles you will start to see how it actually works. 因此,如果您在cms中输入核心信息,即在com_contact中输入联系信息,然后将大多数当前内容输入到单独的文章中,您将开始了解它的实际工作方式。 I would usually recommend first entering all of your static content into the appropriate places, then work on making the rendered pages look exactly the way you want them to. 我通常建议先将所有静态内容输入到适当的位置,然后再使呈现的页面看起来完全符合您的期望。

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

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