• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] Company Directory - search result and details
PostPosted: Fri May 11, 2012 9:15 am 
Offline
Forum Members
Forum Members

Joined: Thu Mar 27, 2008 10:50 am
Posts: 18
Location: Quimper - France
Using 1.10.3 and latest modules

I want to use company directory module for a list of enterprise.
When i use the form to allow searching a specific company, i have a problem.
I've got the list on the page "list" but after when i don't succeed to obtain the details.
I don't know how to do.

The code in my template :
Code:
{CompanyDirectory action='search' resultpage="list" detailpage="list"}


But when i use the defaut code {CompanyDirectory} - without search form - directly in a page
that's ok. I can obtain the detail.

Any idea.

Thanks.


Last edited by Dipsy on Wed Jun 13, 2012 3:44 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: Company Directory - search result and details
PostPosted: Fri May 11, 2012 4:37 pm 
Offline
Administrator
Administrator
User avatar

Joined: Thu Mar 09, 2006 5:32 am
Posts: 11812
Location: Arizona
One tag is for the listing of all in CD, the other tag is for searching in CD, try having both on the same page, or at least have them on their own page...

_________________
Extensions » Modules/Tags click the name of the module/tag or Help to the right to get its parameters.
Right click and view source is a great way to see what you have to work with.
Check ver. CMSMS, PHP, server OS, in System Information page.
Default content http://multiintech.com/defaultcontent/
People are Wonderful
Business is Great
Life is Terrific
Ever wonder what happened to the Album module? Well it is alive and well.
http://album.multiintech.com/
Image


Top
 Profile  
 
 Post subject: Re: Company Directory - search result and details
PostPosted: Fri May 25, 2012 10:16 am 
Offline
Forum Members
Forum Members

Joined: Thu Mar 27, 2008 10:50 am
Posts: 18
Location: Quimper - France
I've tryed having both on the same page, but without success.
I don't understand where there's a problem.

You can see the test here : http://www.gwendallmavic.fr/client/test

I just put a {CompanyDirectory action='search'} on the template in the box news.
So, when i do a search, i can obtain the list of the firm on the same page. OK.
But after, when i want to access to the details of the firm, nothing. Why ?

I create another page "Test" where i put this code {CompanyDirectory action="categorylist" showall=""} on the content. So i obtain the list of the category. When i choose one, i obtain the list of the firms. And when i choose one firm, i can obtain the detail.
That's what i want to obtain with the search company directory.

Any ideas…


Top
 Profile  
 
 Post subject: Re: Company Directory - search result and details
PostPosted: Wed Jun 13, 2012 3:44 pm 
Offline
Forum Members
Forum Members

Joined: Thu Mar 27, 2008 10:50 am
Posts: 18
Location: Quimper - France
Big thanks to Nickquisk for the solution.

All is in the pretty URLs.

You need to add this to your config.php file
Code:
$config['url_rewriting'] = 'mod_rewrite';
$config['page_extension'] = '.php';
$config['use_hierarchy'] = true;
$config['query_var'] = 'page';

And add this to your .htaccess file
Code:
Options +FollowSymLinks
RewriteEngine on

# 301 Redirect all requests that don't contain a dot or trailing slash to
# include a trailing slash
# except for form POSTS
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

# Rewrites urls in the form of /parent/child/
# but only rewrites if the requested URL is not a file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting