Page 1 of 1
LISE + custom URL
Posted: Wed Jan 15, 2020 12:47 pm
by Cyc
Hi, when I set field: "Choose a custom URL for this item or accept the generated one:" on custom URL LISE still generated ugly URL. How to use this feature?
Re: LISE + custom URL
Posted: Wed Jan 15, 2020 3:46 pm
by DIGI3
You need to have pretty urls set up for your site. Once you do then it should just work. If you're still having problems you're going to need to provide more information and be specific about where the problem is.
Re: LISE + custom URL
Posted: Wed Jan 15, 2020 3:57 pm
by Cyc
Thx for reply. My config.php looks like:
Code: Select all
$config['timezone'] = 'Europe/Warsaw';
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.html';
Pretty URLs is enabled, but links generated by LISE are still ugly. What more informations do you need?
Re: LISE + custom URL
Posted: Wed Jan 15, 2020 4:02 pm
by DIGI3
Pretty urls are tested and working in other areas of your site? (htaccess is set up correctly?)
What versions of cmsms and lise?
Where are the urls not pretty - just the generated link to the detail template from your summary template?
What happens if you hit the url manually?
Re: LISE + custom URL
Posted: Wed Jan 15, 2020 4:45 pm
by Cyc
https://www.cbmn.pl/ - link to the website.
What versions of cmsms and lise?
CMS: 2.2.10
LISE: 1.3.1
Where are the urls not pretty - just the generated link to the detail template from your summary template?
No, in LISE is field "Choose a custom URL for this item or accept the generated one:" when I set here URL nothing is happen.
What happens if you hit the url manually?
Nothing...
Re: LISE + custom URL
Posted: Wed Jan 15, 2020 6:33 pm
by DIGI3
Sorry, I'm still not really understanding the problem. I just did some tests and I can enter a custom url into any lise item, then access it with mysite.com/my-custom-lise-url.
The default summary template generates the pretty urls properly and uses the custom url.
When you say nothing happens when you visit the url manually, do you mean 404? Blank page? Another error?
What is generated by {$item->url} in the default summary template for your item with a custom url?