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

How to remove view name from url

7 år 10 måneder siden #1456 af shikha
How to remove view name from url blev oprettet af 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

Venligst Log på eller Opret en konto for at deltage i samtalen

7 år 10 måneder siden #1465 af Ruud van Lent
Besvaret af Ruud van Lent på emne 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.

Venligst Log på eller Opret en konto for at deltage i samtalen

7 år 9 måneder siden - 7 år 9 måneder siden #1489 af Dariusz
Besvaret af Dariusz på emne How to remove view name from url
EDIT - bad understanding questions
Sidste redigering: 7 år 9 måneder siden ved Dariusz. Begrundelse: bad understanding questions

Venligst Log på eller Opret en konto for at deltage i samtalen

Tid til at oprette siden: 0.055 sekunder
Leveret af Kunena Forum

Vi we benytter cookies, så vi bedst muligt kan levere vores services. For mere information, se vores