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 (有偿)在ANSYS中 .anf文件
  • ¥45 关于#芯片#的问题:组合逻辑电路设计
  • ¥15 基与机器学习和时间序列分析预测养老服务需求趋势
  • ¥100 求连续两帧图像在水平和垂直上偏移
  • ¥15 mysql全文索引查找指定必须关键词word无效
  • ¥15 Verilog hdl密码锁设计
  • ¥35 基于python的有ssl加密传输的socket聊天室
  • ¥15 数码管亮度控制器设计
  • ¥15 kafka客户端跨网段访问,看日志提示连接的还剩内网地址,且访问不通
  • ¥15 关于c语言代码的问题