简体   繁体   English

Joomla前端编辑会中断短代码

[英]Joomla FrontEnd Editing breaks shortcodes

I have a joomla website in localhost. 我在本地主机上有一个joomla网站。

I installed a template called Helix 2 which also has a set of Shortcodes. 我安装了一个名为Helix 2的模板,该模板也有一组简码。 (i just put in something like [block]blah blah [/block] and my blah blah is highlighted in a nice looking box.) (我只放入了[block] blah blah [/ block]之类的东西,而我的blah blah在一个漂亮的框中突出显示。)

I posted beautiful looking articles that way from BackEnd. 我从BackEnd以这种方式发布了漂亮的文章。 Unfortunately, I have setup some users to be able to edit those articles from frontend. 不幸的是,我已经设置了一些用户,以便能够从前端编辑这些文章。 I have manually checked the Database and the shortcode is saved in the database. 我已经手动检查了数据库,并且简码已保存在数据库中。 But when clicking edit in frontend, THAT DATABASE VERSION is not loaded in the edit field! 但是,当在前端单击“编辑”时,该“数据库版本”未加载到编辑字段中! When editing from frontend, the joomla engine DOESNOT load the database version of the article, but the version rendered from the browser or something else. 从前端进行编辑时,joomla引擎不会加载文章的数据库版本,而是从浏览器或其他内容呈现的版本。 The latter version doesn't have the shortcodes. 后一个版本没有简码。 So, after clicking save from Frontend the original article formatting is lost! 因此,单击“从前端保存”后,原始文章格式会丢失! I then have to manually reenter shortcodes in the frontend. 然后,我必须在前端手动重新输入简码。

So the solution is, while clicking on edit button, if the article for editing is loaded from the database I can see my shortcodes in their proper places. 因此,解决方案是,在单击“编辑”按钮时,如果要从数据库中加载要编辑的文章,那么我可以在其适当位置看到我的简码。 So, is there a setting anywhere in joomla that can help me out with this? 那么,joomla中是否有任何设置可以帮助我解决这个问题?

PS: I HAVE TRIED ALL EDITORS TINYMCE, JCE, EDITOR-NONE WITH SAME RESULTS. PS:我已经尝试过所有具有TITANMCE,JCE和EDITOR-NONE的结果的编辑器。 ITS NOT THE EDITOR PROBLEM. 它不是编辑器问题。

Which Joomla version are you using? 您使用的是哪个Joomla版本?

In Joomla 2.5 if you use a user from a different group, checkout the text filter options tab in the general settings. 在Joomla 2.5中,如果您使用其他组中的用户,请在常规设置中签出文本过滤器选项标签。 If you login as a super-admin and the setting for that group is "No filter", please try to change to "default blacklist" than save. 如果您以超级管理员身份登录,并且该组的设置为“无过滤器”,请尝试更改为“默认黑名单”,而不是保存。 Clear all joomla cache (just to be on the save site). 清除所有joomla缓存(仅在保存站点上)。 Than change back to "No filter" option. 比改回到“无过滤器”选项。

I have seen complaints on the joomla forum that the No Filter option while default set in some cases is not properely set. 我在joomla论坛上看到抱怨,在某些情况下默认设置为“无过滤器”选项没有正确设置。 Resetting it to default blacklist and back to "No filter" might solve that problem. 将其重置为默认黑名单并重新设置为“无过滤器”可能会解决该问题。

What a simple solution and I had to spend so many sleepless nights surfing for a solution. 这是一个简单的解决方案,我不得不花很多夜无眠地冲浪才能找到解决方案。 In my site http://lokkatha.com the problem was persisting for quite some time. 在我的网站http://lokkatha.com中,该问题持续存在了一段时间。 However, with the help of the solution suggested by Wouter here, I could sort it out. 但是,借助Wouter在此处建议的解决方案,我可以解决该问题。 the process is 这个过程是

Go to BACKEND ADMIN >> General configuration >> Text filters 转到BACKAD ADMIN >>常规配置>>文本过滤器

Covert all filters to NO FILTERING The problem is solved. 将所有过滤器隐蔽为无过滤问题已解决。

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

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