• Home
  • Get help
  • Ask a question
Last post 31 min ago
Posts last week 110
Average response time last week 29 min
All time posts 67419
All time tickets 10424
All time avg. posts per day 21

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#5915 – How to make custom url of custom component

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 26 July 2019 07:14 UTC
simonelli
 Hello sir,

as per joomla route it's take view name and task name in url, instead of that i want to make custom url using sh404. for example

https://xxxx.com/it/user_profile/andrea-conti/myprofile.html

this is my current joomla route url. but instead of this i want https://xxxx.com/it/GeneralSurgeon/andrea-conti.html

So, will you please consider my request and guide if i can generate the url same like above.

Thanks.
Friday, 26 July 2019 07:34 UTC
wb_weeblr
Hi

as per joomla route it's take view name and task name in url,
Joomla route does not do anything like that so It means your custom component has a router.php file to build SEF URLs.

1 - Are you the developer of that custom component? did you write the router.php file?
2 - Are all the URLs for your component showing in the SEF URL manager?
3 - Are you using sh404SEF default settings?

The simplest way is to customize your existing URL as described on this page of the documentation.

Creating a custom URL manually in sh404SEF is done by:

- Clicking the New button in the SEF URL manager
- Enter a non-sef URL:
index.php?option=com_mycustom_component&lang=it&view=xxx&task=yyy...&Itemid=zz

(the exact non-sef url depends on your custom component operation)

- Enter the desired SEF URL:
it/GeneralSurgeon/andrea-conti.html

After clicking Save, the URL is available and will be used anywhere the non-sef URL is used.

Best regards

 
Friday, 26 July 2019 09:13 UTC
simonelli
Hello sir,

yes i am developer of custom component and build router. php file, and all url are showing in sef url manager.

but i want to make this dynamically, generally in our site everyday many user are register so each user my profile url i have to go in backend and change url that are liter bit complicated and not accepted.

is there any way we make code in sh404 and when this my profile view url are come we take user id and his specialist id and fetch his name and passed in url?

my idea is that if there we again able to route those url in sh4o4 component part then it will me more helpfull for us.

Thanks.
Friday, 26 July 2019 12:46 UTC
wb_weeblr
Hi

but i want to make this dynamically, generally in our site everyday many user are register so each user my profile url i have to go in backend and change url that are liter bit complicated and not accepted.
I don't understand then: if you are the programmer and you made the router.php file, why don't you programm the URLs to be exactly as you want?

sh404SEF uses the router.php file so it's really up to you to create the URLs as you want them. WHy don't you create /GeneralSurgeon/andrea-conti.html instead of user_profile/andrea-conti/myprofile.html?

What am I missing?

Best regards
 
Saturday, 27 July 2019 04:37 UTC
simonelli
Hello,

i know i can managed that but now we have to change all page link and rework all, so i just want to confirm in there sh404 provide before route any code there we make condition to make url as per our choice so we not work on each and every page.

as some one told me in /components/com_sh404sef/sef_ext/ in this folder you create your component file and change route url if you want.

is this correct? if yes will you please guide us liter bit in this so we do that work quickly.

Thanks.
Monday, 29 July 2019 09:19 UTC
wb_weeblr
Hi

is this correct? if yes will you please guide us liter bit in this so we do that work quickly.
No this is not correct. The URL are created in your router.php file.

i know i can managed that but now we have to change all page link and rework all,
WHy would you have to change all page link? just create the links you already have/want.
Again, all sh404SEF for your custom component are created in your router.php file, it's all under your control.

Best regards
 
Tuesday, 13 August 2019 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.