Joomla with rss modification

5 篇文章 0 订阅
1. file location

2. Built-in RSS Feeds could confict with the Moudule SimpleRSS

3. Do not repeat alias for 2+ menu items.It can potentially create problems for Joomla in creating SEF URL. Create an Alias Type menu item for the rest.

4. Url pattern after SEF could be http://domain.com/{menu-item-alias}/{or-sub-menu-alias}/whatever-goes-here.../{any-article-id}-whatever-goes-here
the urls below are same
http://localhost/avid/volunteers/77
http://localhost/avid/volunteers/volunteer-for-blog/77
http://localhost/avid/volunteers/what/ever/bla/bla/77-whatever
http://localhost/avid/about/what/ever/bla/bla/77-whatever
...
same article with different layout/modules.the article is irrelative to the menu item and no need to config at the backend.


Expect result

news-and-media/ (brand new url with /news-and-media link on breadcrumb)
news-a-media/contact (keep the old url, but with /news-and-media link on breadcrumb)
news-a-media/124 (keep the old url, with plain-text on breadcrumb)


Steps

Create a new Rss type menu item alias - news-and-media, transfer the real menu News & Media to hiddenmenu

keep the left side menu Newsandmedia and alias - news-a-media, change the top menu to alias menu item for the new Rss content menu - news-and-media

keep the left side menu Home and alias, change the News & Media menu to alias menu item for the new Rss content menu - news-and-media

keep the real menu - hiddenmenu,

change new-a-media/ article add tips and redirect function
<p>Please visit our new News & Media page.</p>
<p>Redirecting...</p>
<script type="text/javascript">location="/avid/news-and-media";</script>


joomla function
<?php echo JURI::base();?>
<?php echo parse_url(JURI::current(), PHP_URL_HOST);?>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值