doushi8186 2013-03-13 05:55
浏览 35
已采纳

替换Joomla自定义模块中的短标签

In one custom module I write something like below. This module placed in the top of the page.

(650) 123-1232
950 Queen Dr Suite 110, Daly City CA, 94015

In another custom module I write the same thing with few changes as below. This module placed in the bottom of the page.

950 Queen Dr Suite 110, Daly City CA, 94015
(650) 123-1232

The problem is I repeat the same content over and over again in custom modules and mistakes are probable to happen. So what I want to do is to use short tags as below.

{phone}
{address}

If I write a short tag as above in a custom modules I want them to replaced with some specific values all over the site. {phone} with (650) 123-1232 and {address} with 950 Queen Dr Suite 110, Daly City CA, 94015. Assume that values are already in the database.

Can this be achieved by write a Joomla plugin? Or what should I do? How can this be done?

  • 写回答

2条回答 默认 最新

  • dpnfjx755573 2013-03-13 08:20
    关注

    ReReplacer - search and replace in your websites output. This gets the job done.

    ReReplacer is a Joomla! component and system plugin that enables you to replace anything in your Joomla! site’s output with whatever you want.

    ReReplacer will search the text (html) of your pages for your search request and replace it with what you have told it to do. These replacements are on the fly. That means they are not permanent. They are done every time you request a web page in your site.

    This gives you great possibilities and power to manipulate the output of your site.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于大棚监测的pcb板设计
  • ¥20 sim800c模块 at指令及平台
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计