首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 智能缩短ezPublish

智能缩短ezPublish

  • 资源大小:7.30 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 智能 eZPublish 缩短

资 源 简 介

The smartshort template operator shortens input strings like the shorten template operator but with a few important differences - most of the time it will break at the end of a sentence and it will not break html tags. The problem with the default shorten template operator is that it"s a substring of the input, so it will break wherever it will land... including in the middle of a word. Another problem is that if the input is an xml block with tags those could end in the middle of a html tag and mess up the layout of the rest of the page. Or, with a long tag - which wouldn"t be visible but would count in the total for the sub string - would make the visible string too short. Since practically all of our customers want minimal html tags in their line views (see the strip_except template operator) - and want their line views to all be shortened - it has always been problematic and up until now we"ve only been able to allow self-closing tags or the content editors had

文 件 列 表

smartshort
ezinfo.php
autoloads
settings
docs

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.191732s