简体   繁体   English

是否可以在typo3服务器上使用wordpress主题?

[英]Is it possible to use wordpress theme on typo3 server?

I am a newbie to wordpress and recently created a website using typo3 for a project at university (as my university servers are configured with typo3). 我是wordpress的新手,最近为大学的一个项目使用typo3创建了一个网站(因为我的大学服务器配置了typo3)。 I created the template using Templavoila and twitter bootstrap. 我使用Templavoila和twitter引导程序创建了模板。 I now have to use wordpress theme-HUGE as it is more interesting and suggested by the project partners. 我现在必须使用wordpress theme-HUGE,因为它更有趣,并由项目合作伙伴建议。 I have no idea if wordpress theme could be used on typo3 machine. 我不知道是否可以在typo3机器上使用wordpress主题。 If yes, how much overhead might occur? 如果是,可能会发生多少开销? Could anyone provide some information on this? 有人可以提供一些有关此的信息吗?

Thanks 谢谢

Wordpress themes files can't directly be used in TYPO3. WordPress主题文件不能直接在TYPO3中使用。

I would suggest you create a new TYPO3 template using the template engine of your choice and then rebuild the HTML structure of the Wordpress template. 我建议您使用所选的模板引擎创建一个新的TYPO3模板,然后重建Wordpress模板的HTML结构。 If your resulting HTML is exactly the same as for the Wordpress theme, you can use the included CSS and images. 如果生成的HTML与Wordpress主题完全相同,则可以使用随附的CSS和图像。

If you want to go the easy way, use wordpress for the wordpress theme. 如果您想采用简单的方法,请使用wordpress作为wordpress主题。 As said above, moving the css from wordpress to TYPO3 is not that hard. 如上所述,将CSS从wordpress移至TYPO3并不难。 But you can not easily move the functionality of a wordpress theme to TYPO3. 但是您不能轻易将wordpress主题的功能移至TYPO3。 You have to rebuild it in TYPO3. 您必须在TYPO3中重建它。 And that will make a big difference. 这将有很大的不同。

For example: Assume you have to set up a slider element, which is included in the theme. 例如:假设您必须设置一个包含在主题中的滑块元素。 When you use the theme in wordpress, you just need to activate it in the settings. 在wordpress中使用主题时,只需在设置中将其激活即可。

In TYPO3 you will have to build a custom element, either by building an own extension or using one of the common custom element extensions like DCE oder FLUX. 在TYPO3中,您将必须通过构建自己的扩展或使用常见的自定义元素扩展(例如DCE oder FLUX)来构建自定义元素。 (Don't use TemplaVoila anymore, it's outdated). (不再使用TemplaVoila,它已经过时了)。

And a slider is a easy task compared to the case, that your partners say "hey, we forget the nice blog we have in our theme, let's activate it!". 与滑盖相比,滑盖是一件容易的事,您的伙伴说:“嘿,我们忘记了主题中不错的博客,请激活它!”。 This might take you 2 clicks in the theme settings in wordpress, but if you want to port that feature to TYPO3 you should really know something about programming TYPO3 Extensions with extbase and fluid. 这可能需要您在Wordpress中的主题设置上单击2次,但是如果您想将该功能移植到TYPO3,您应该对使用extbase和fluid编程TYPO3 Extensions有所了解。

It might be a great project for learning TYPO3. 学习TYPO3可能是一个很棒的项目。 But if it is a real project, with a real deadline, you will have a much more fun with it, when you use the wordpress theme in the way that it was meant to be used. 但是,如果这是一个具有真实截止日期的真实项目,那么当您以原本打算的方式使用wordpress主题时,您将获得更多乐趣。

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

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