×
Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
How to remove view name from url
shikha
Fresh Boarder
Posts: 1
7 Jahre 10 Monate her #1456
von shikha
How to remove view name from url wurde erstellt von 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
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Ruud van Lent
Fresh Boarder
Posts: 4
7 Jahre 10 Monate her #1465
von Ruud van Lent
Ruud van Lent antwortete auf 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.
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Dariusz
Fresh Boarder
Posts: 7
7 Jahre 9 Monate her - 7 Jahre 9 Monate her #1489
von Dariusz
Dariusz antwortete auf How to remove view name from url
EDIT - bad understanding questions
Letzte Änderung: 7 Jahre 9 Monate her von Dariusz. Grund: bad understanding questions
Bitte Anmelden oder Registrieren um der Konversation beizutreten.
Ladezeit der Seite: 0.051 Sekunden