Solved

How to override _buildSefRoute function in router.php through plugin

Posted on 2010-08-18
4
1,149 Views
Last Modified: 2012-05-10
Hi ,

Is it possible to override _buildSefRoute using system plugin..

Thanks
Byteridge
0
Comment
Question by:Byteridge
  • 2
  • 2
4 Comments
 
LVL 13

Expert Comment

by:StormITSolutions
ID: 33464624
You could override it with a custom hack to the router.php, what is it your trying to achieve.

Looking at the function, im sure many of the so components override this to create the url;s so you could look at how they do it and use that, then put that into a plugin if you wished,

you couldd probably do it in a custom php module as well

Storm
0
 
LVL 2

Author Comment

by:Byteridge
ID: 33472222
I dont want to disturb existing router.php file in includes folder ...

I tried to understand shsef component ..they are overriding all the functions in router.php file

My requirement : i want to change the urls of one component ..i am able to achieve this by changing few modifications to the following function _buildSefRoute in router.php file

I want to override the function in my plugin is it possible ?
0
 
LVL 13

Expert Comment

by:StormITSolutions
ID: 33479767
I suppose you could maybe put some kind of if/else statement to not use _buildSefRoute on a specific component, maybe using an id, then have a custom function to change the urls of that one component.

Actually you can disable url for specific components

this link should help

http://webcache.googleusercontent.com/search?q=cache:a92CLv6FVAsJ:www.consult-cts.com/blog/%3Fp%3D22+joomla+_buildSefRoute+on+one+component+only&cd=4&hl=en&ct=clnk&gl=uk

so if you disable it for the component of your choice and then you have in your plugin what you want to do it should technically work.

I noticed that site mentioned editing the router.php file for the component and not the global one.

Hope this helps

Storm
0
 
LVL 2

Accepted Solution

by:
Byteridge earned 0 total points
ID: 33635859
It is not possible to chnage through plug-in i must have to do changes in router.php

Thanks
Byteridge
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Install Joomla 2.5 with installatron? 4 529
multiple mp3 players in joomla 4 198
Responsive site in Joomla 3 96
Dropdown List for Webpage on my Joomla Website 4 81
Here is a tutorial for making your own Joomla templates. Note before reading, you should have some existing knowledge of web development using HTML and CSS. Design Layout: Design your template in a graphics program like Adobe PhotoShop or Corel…
Have you ever wanted to use that sweet jQuery gallery plugin on your Joomla site but couldn't get it working due to jQuery conflicts or your lack of knowledge about what's under the Joomla hood? This article will step you through the process of impl…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

947 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now