Solved

How to override _buildSefRoute function in router.php through plugin

Posted on 2010-08-18
4
1,145 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
It is not possible to chnage through plug-in i must have to do changes in router.php

Thanks
Byteridge
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In the following article I will try to explain some of the issues I had learning Joomla and I hope this helps all of you beginners out there that love the concept but find it confusing and difficult to manage and configure a Joomla website. Like …
First of all, we will need Jumi component or Sourcerer plugin for this to work. We need either of these because the main focus here is custom development outside of the standard modules or articles within Joomla. You can find Jumi here...it's my …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 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

12 Experts available now in Live!

Get 1:1 Help Now