×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
How to remove view name from url
shikha
Nieuw lid
Posts: 1
7 jaren 10 maanden geleden #1456
door shikha
How to remove view name from url werd gestart door shikha
Hello,
I have created a component. Really i am feeling very good because it gives very less time in creating component.I tried to remove view name but i failed
for instance my url in /include-services/includedservice/1. Here includedservice is my View name. I want to remove it. I can not create menu because i have many urls to create so tell me how to remove it by code.
Thanks in advance
I have created a component. Really i am feeling very good because it gives very less time in creating component.I tried to remove view name but i failed
for instance my url in /include-services/includedservice/1. Here includedservice is my View name. I want to remove it. I can not create menu because i have many urls to create so tell me how to remove it by code.
Thanks in advance
Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.
Ruud van Lent
Nieuw lid
Posts: 4
7 jaren 10 maanden geleden #1465
door Ruud van Lent
Beantwoord door Ruud van Lent in topic How to remove view name from url
Hi,
you need to make changes to the router class (router.php). This is the class that 'translates' the raw url (index.php?comconentname&view&task&layout&etc) to something more user and seo friendly.
Changes should both be in the parse and build function.
Beware: when making changes here test also edit, cancel, publish, etc buttons as they also rely on the url as constructed in router.php
hope this helps
regards,
Ruud.
you need to make changes to the router class (router.php). This is the class that 'translates' the raw url (index.php?comconentname&view&task&layout&etc) to something more user and seo friendly.
Changes should both be in the parse and build function.
Beware: when making changes here test also edit, cancel, publish, etc buttons as they also rely on the url as constructed in router.php
hope this helps
regards,
Ruud.
Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.
Dariusz
Nieuw lid
Posts: 7
7 jaren 9 maanden geleden - 7 jaren 9 maanden geleden #1489
door Dariusz
Beantwoord door Dariusz in topic How to remove view name from url
EDIT - bad understanding questions
Laatst bewerkt 7 jaren 9 maanden geleden door Dariusz. Reden: bad understanding questions
Gelieve Inloggen of een account aanmaken om deel te nemen aan het gesprek.
Tijd voor maken pagina: 0.052 seconden