Solved

How to override _buildSefRoute function in router.php through plugin

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

Is it possible to override _buildSefRoute using system plugin..

Thanks
Byteridge
0
Comment
Question by:Byteridge
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:Allan Nisbet
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 14

Expert Comment

by:Allan Nisbet
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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 …
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

729 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