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

How to remove view name from url

7 yıl 10 ay önce #1456 Yazan: shikha
How to remove view name from url, shikha tarafından oluşturuldu
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

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

7 yıl 10 ay önce #1465 Yazan: Ruud van Lent
Ruud van Lent tarafından How to remove view name from url konusunda yanıtlandı
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.

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

7 yıl 9 ay önce - 7 yıl 9 ay önce #1489 Yazan: Dariusz
Dariusz tarafından How to remove view name from url konusunda yanıtlandı
EDIT - bad understanding questions
Son Düzenleme: 7 yıl 9 ay önce Düzenleyen:Dariusz Neden: bad understanding questions

Lütfen sohbete katılmak için Giriş ya da Hesap açın.

Sayfa oluşturma süresi: 0.047 saniye
Geliştiren: Kunena Forum