Page 1 of 1

CompanyDirectory URLS

Posted: Mon Nov 30, 2015 3:04 pm
by webform
I've activated "unique URLS" for the CompanyDirectory module and get this url : website.com/companyname.html in summary view, but i'm redirected to the front/index page and not the detail page/template specified?

What am i mising?

Cms Version: 1.11.12
CompanyDirectory: 1.22.7
phpversion: 5.3.29

Re: CompanyDirectory URLS

Posted: Mon Nov 30, 2015 8:00 pm
by chandra
Not sure but PHP 5.3.x is out of support and the module author of CompanyDirectory has defined PHP 5.4 as minimum for his modules ...

http://forum.cmsmadesimple.org/viewtopi ... =7&t=71719

The only way could be to use a module version dated before this posting.

Re: CompanyDirectory URLS

Posted: Tue Dec 01, 2015 1:06 am
by webform
I've changed to phpversion: 5.4.45 but it doesn't make any difference.

Re: CompanyDirectory URLS

Posted: Tue Dec 01, 2015 10:36 am
by chandra
Cache deleted?

Re: CompanyDirectory URLS

Posted: Tue Dec 01, 2015 10:51 am
by webform
Yes cache deleted!

Calling the module like this on a subpage:

Code: Select all

{CompanyDirectory category='Cases' detailpage='case-detail'}
Companies with unique URLS are redirected to the frontpage (and detail content loaded in the frontpage content tag), but companies without unique URLS set, are loaded correctly in the case-detail page.

And even without the detailpage set, the unique URL redirects to the frontpage.

So i'm obviously missing something in the unique URLS setup ???

Re: CompanyDirectory URLS

Posted: Wed Dec 02, 2015 9:30 am
by velden
Wild guess: Update Routes (it's on the same page as Clear Cache button)

Re: CompanyDirectory URLS

Posted: Sun Jan 17, 2016 4:11 am
by Jeff
You need to set the "Default Detail Page" it should be in the Setting for the module.

Re: CompanyDirectory URLS

Posted: Sun Jan 17, 2016 11:09 pm
by webform
Sorry no, there is no "Default Detail Page" in settings for CompanyDirectory.

Thank you for the suggestion.

Re: CompanyDirectory URLS

Posted: Sun Jan 17, 2016 11:38 pm
by Jeff
Sorry, I am not familiar with the module.

After I looked it up, it looks like Company URLs is for the Company website (external site) not the detail page for the CompanyDirectory listing, but it will use the detail page if you don't provide one.

Re: CompanyDirectory URLS

Posted: Mon Jan 18, 2016 12:02 am
by webform
According to the help file
Note: When using SEO friendly URLS it is important to use canonical URLS.
In the head of my page template i have

Code: Select all

{if isset($canonical)}<link rel="canonical" href="{$canonical}" />{elseif isset($content_obj)}<link rel="canonical" href="{$content_obj->GetURL()}" />{/if}
and i my detail template i have

Code: Select all

{$canonical=$entry->detail_url}
Is there something i've overlooked to get unique urls for the CompanyDirectory Module?

Re: CompanyDirectory URLS

Posted: Mon Jan 18, 2016 3:54 am
by Jeff
Now I am completely confused and disinterested.