× Please submit new Bug Reports on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues

How to remove view name from url

pred 7 rokmi 9 mesiacmi #1456 od shikha
How to remove view name from url bolo vytvorené 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

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

pred 7 rokmi 9 mesiacmi #1465 od Ruud van Lent
Odpoveď od Ruud van Lent na tému 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.

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

pred 7 rokmi 8 mesiacmi - pred 7 rokmi 8 mesiacmi #1489 od Dariusz
Odpoveď od Dariusz na tému How to remove view name from url
EDIT - bad understanding questions
Posledný krát upravené:pred 7 rokmi 8 mesiacmi Dariusz Dôvod: bad understanding questions

Prosím Prihlásiť alebo Registrácia pre zdieľanie konverzácie.

Čas vytvorenia stránky: 0.047 sekúnd
Funguje na Kunena fórum

We use cookies so that you can place orders and we can provide a better service. You can control the use of cookies at the individual browser level. If you reject cookies, you may still use our website, but your ability to use some features or areas of our website may be limited.