CompanyDirectory URLS

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

CompanyDirectory URLS

Post 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
chandra

Re: CompanyDirectory URLS

Post 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.
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: CompanyDirectory URLS

Post by webform »

I've changed to phpversion: 5.4.45 but it doesn't make any difference.
chandra

Re: CompanyDirectory URLS

Post by chandra »

Cache deleted?
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: CompanyDirectory URLS

Post 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 ???
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3483
Joined: Mon Nov 28, 2011 9:29 am
Location: The Netherlands

Re: CompanyDirectory URLS

Post by velden »

Wild guess: Update Routes (it's on the same page as Clear Cache button)
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: CompanyDirectory URLS

Post by Jeff »

You need to set the "Default Detail Page" it should be in the Setting for the module.
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: CompanyDirectory URLS

Post by webform »

Sorry no, there is no "Default Detail Page" in settings for CompanyDirectory.

Thank you for the suggestion.
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: CompanyDirectory URLS

Post 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.
webform
Power Poster
Power Poster
Posts: 458
Joined: Sat Nov 25, 2006 3:39 pm
Location: Copenhagen, Denmark

Re: CompanyDirectory URLS

Post 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?
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm
Location: MI

Re: CompanyDirectory URLS

Post by Jeff »

Now I am completely confused and disinterested.
Post Reply

Return to “Modules/Add-Ons”