Improved Router - Better SEF URL on front-end view

2 года 9 мес. назад #9884 от Carl Fuentes
Carl Fuentes ответил в теме Improved Router - Better SEF URL on front-end view
It could be archive by go to administator -> Components -> your component name -> Option (Top right corner) -> Component tab and then turn on the using modern SEF.

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

2 года 9 мес. назад #9886 от FULLSTACK DEV
FULLSTACK DEV ответил в теме Improved Router - Better SEF URL on front-end view
I have actually tried this before and it still don't show the URL the way I envision it.

Basically, what I try to accomplish is this:

Site flow: County-->City-->Comunity

In the County page, we have list of Cities with link to City's detail page.
In the City detail page, we have list of Communities with link to Community's detail page.

I've created menu items for the County and each of the cities. No problem with the SEF there.
I have a really good SEF link for County and Cities.
However, from the City detail page, where we have the list of Communities, the link aren't looking good because I don't have menu item created for each of those communities.
If I have to create menu item for each of the Communities, it will be too many of them. We have over 1500 communities for State of Florida.

As it is now, the community URL showing as: https://TLD/name-of-city/community-template-view/community-ID

I am trying to eliminate the "community-template-view" and "community-ID" from the URL and replace it with a simple URL like: https://TLD/name-of-city/name-of-communtiy

Where can I make the edit to make it happen?

Thank you so much in advance for your help! Been scratching my heads for 2 days for this..


Elliott

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

2 года 9 мес. назад #9887 от FULLSTACK DEV
FULLSTACK DEV ответил в теме Improved Router - Better SEF URL on front-end view
Nevermind.. I figured it out. By reading the code in router.php I was able to see that if I add the alias field then the system can call for the alias instead of the id. I've added the field and all good now.

Thanks so much!

Elliott

Пожалуйста Войти или Регистрация, чтобы присоединиться к беседе.

Время создания страницы: 0.192 секунд
Работает на Kunena форум

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.