简体   繁体   English

在Joomla中以编程方式编辑文章

[英]programmatically edit articles in Joomla

I am new to Joomla development, I am developing a website in which I have to use customize the articles (i know you will say develop a component or module) but I want to use articles any ways. 我是Joomla开发的新手,正在开发一个网站,在其中我必须使用自定义文章(我知道您会说开发组件或模块),但是我想以任何方式使用文章。

While google I found that Joomla stores all the contents of articles in database. 在google时,我发现Joomla将文章的所有内容存储在数据库中。

but what I need is Is there any way to edit articles programatically(are there any PHP files for articles folders or so where i can eDit them) I have to add custom styles, menus and things like that to a certain article. 但是我需要的是有什么办法以编程方式编辑文章(是否有文章文件夹的PHP文件,或者我可以在其中编辑它们的位置),我必须为特定文章添加自定义样式,菜单等。

when you say edit articles programmatically, do you mean edit the content of an article, or how it is presented and what else loads with it? 当您说以编程方式编辑文章时,您是指编辑文章的内容,还是文章的显示方式以及其他内容?

the former will require you to edit the db contents. 前者将要求您编辑数据库内容。

the latter means you need to look into how joomla's templating system works, which is most likely what you need to do. 后者意味着您需要研究joomla的模板系统如何工作,这很可能是您需要做的。 piece of further advice: modules have the ability to define class/id per instance, which will be very helpful for writing your css. 进一步建议:模块具有按实例定义类/ ID的功能,这对于编写CSS非常有用。

如果您想在文章中使用自定义PHP代码,请看JUMI。

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

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