Override for Router.php?

  • safeworld4women
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 3 months ago #92350 by safeworld4women
Override for Router.php? was created by safeworld4women
Hi Tuan
I made some changes in router.php so I could have a slightly differrent title in the registration page url.
When upgrading to the latest version this got overriden!
My fault!
However when I tried to add Router,php as an override in html - it doesn't work
I added it as mytemplate/html/com_eventbooking/router.php
Is there a different correct way to override this file?

best

Andrew

I am the Operations Director and lead Developer for The Safeworld International Foundation - an award winning international Non-profit working for women's empowerment.
I also design websites for non-profit organisations and small ethical businesses.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 3 months ago #92351 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override for Router.php?
Hi Andrew

Unfortunately, router code is called by Joomla core and it could not be overridden

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • safeworld4women
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 3 months ago #92352 by safeworld4women
Replied by safeworld4women on topic Override for Router.php?
Thanks Tuan
I don't suppose there is a work around?
As I mentioned in an earlier post - it's because we are running two languages
and I would love to have the words 'individual-registration' in the url translatable or at least shortened to something less 'English'

Thanks so much

A

I am the Operations Director and lead Developer for The Safeworld International Foundation - an award winning international Non-profit working for women's empowerment.
I also design websites for non-profit organisations and small ethical businesses.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 3 months ago #92353 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override for Router.php?
Sadly, there is no workaround. The router.php file is rarely change, so I guess you can make change, make a backup, then re-upload each time you update to future releases of the extension

Regards,

Tuan

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #92357 by Stephan Hodges
Replied by Stephan Hodges on topic Override for Router.php?
Would it be possible to have the phrase "individual-registration" in a resource string, so that it could be translatable and modifiable that way?
The following user(s) said Thank You: safeworld4women

Please Log in or Create an account to join the conversation.

  • safeworld4women
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 3 months ago #92359 by safeworld4women
Replied by safeworld4women on topic Override for Router.php?
Hi Stephan
Thanks for adding your thoughts
I was wondering the same actually!

Andrew

I am the Operations Director and lead Developer for The Safeworld International Foundation - an award winning international Non-profit working for women's empowerment.
I also design websites for non-profit organisations and small ethical businesses.

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 3 months ago #92375 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Override for Router.php?
At the moment, it is not possible. If there are more customers need it, I will consider look at it and implement it in the future

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • safeworld4women
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 3 months ago #92399 by safeworld4women
Replied by safeworld4women on topic Override for Router.php?
Thanks Tuan
If a site is to be truly multi-language these little things help

best

Andrew

I am the Operations Director and lead Developer for The Safeworld International Foundation - an award winning international Non-profit working for women's empowerment.
I also design websites for non-profit organisations and small ethical businesses.

Please Log in or Create an account to join the conversation.

More
9 years 3 months ago #92418 by Stephan Hodges
Replied by Stephan Hodges on topic Override for Router.php?

safeworld4women said:

If a site is to be truly multi-language these little things help


You could probably do the coding to pull from the languages file, if Tuan gave you a list of files to change. He'd most likely accept the changes after testing and implement. Similarly for other language changes (Country name, etc). -- Just a suggestion

Please Log in or Create an account to join the conversation.

  • safeworld4women
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
9 years 3 months ago #92435 by safeworld4women
Replied by safeworld4women on topic Override for Router.php?
Yes am very happy to help
We have our own test space so can happily experiment

Best

Andrew

I am the Operations Director and lead Developer for The Safeworld International Foundation - an award winning international Non-profit working for women's empowerment.
I also design websites for non-profit organisations and small ethical businesses.

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc