在 Joomla 菜单中隐藏文章 ID
我在多个命名类别中有一系列按顺序编号的项目,这些项目在此页面。然而,URL 中添加的文章 ID 会让客户端感到困惑。
我知道 Joomla 现在 将文章 ID 添加到 URL,并且有 < 没有简单的方法 删除它。上次我需要更改某些内容时,我修改了相关模板,但编写 URL 更加复杂。
我需要这个: http://vision2020.org.uk/wishlist-for -retail/131-16-local-shops.html
变为: http://vision2020.org.uk/wishlist-for-retail /16-local-shops.html
有没有人在不求助于(可能过时或臃肿)插件的情况下解决了这个问题?
I have a series of sequentially-numbered items in several named categories, which appear as numbered lists on this page. However, the added article ID in the URL is confusing the client.
I know that Joomla now adds the article ID to URLs, and that there is no easy way of removing it. The last time I needed to alter something I hacked the relevant template, but writing URLs is more involved.
I need this:
http://vision2020.org.uk/wishlist-for-retail/131-16-local-shops.html
to become:
http://vision2020.org.uk/wishlist-for-retail/16-local-shops.html
Has anyone tackled this issue without resorting to a (possibly outdated or bloated) plug-in?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试使用 SEF 组件(例如 ACEsef 或 sh404sef),它可以让您自定义每个 url。这比您尝试更改 com_content 组件以修复您的网址要容易得多。
Try use a SEF component like ACEsef or sh404sef which lets you customise each url. This will be far easier than you trying to change the com_content component in order to fix your urls.