Page 1 of 1

CompanyDirectory module, Page template problem

Posted: Wed Oct 22, 2014 1:00 pm
by mehrdad
Hello.
I have been working with the Company Directory module but I cannot figure out something.

Basically I have 2 categories and 2 different page template with different navigation on the top of the site.

I have added each category to each of these pages and it is showing the listing fine. The problem is when you click on a item to go to the detail page of that particular item, the page template changes to a default page for both separate categories.

There is nothing I could find in the settings to fix this.

How can I get this to stay in the same page template when I go to the details page?

Please help me and let me know if it was clear.

For example if you go to the following link:
http://www.discovercharlottetown.com/en ... o-Stay.php
and choose one of the accommodation entries, you'll see that it will change to a different page template with a different navigation on the top until you click return and it switches back to the previous template.


Thanks

Re: CompanyDirectory module, Page template problem

Posted: Fri Oct 24, 2014 5:35 pm
by mehrdad
I figured it out but didn't know how to delete this topic.
Thanks

Re: CompanyDirectory module, Page template problem

Posted: Sun Oct 26, 2014 8:45 pm
by Jeff
It would be better to post your solution(so others can learn from you) than deleting the topic.

Re: CompanyDirectory module, Page template problem

Posted: Mon Oct 27, 2014 12:29 pm
by mehrdad
Oh sure.
I learned that you cannot attach a template to the CompanyDirectory tag but you can choose a particular page for the detail page in the tag.
For example detailpage="alias-of-the-page-you-want" parameter in the example below.

Example:
{CompanyDirectory category="Wedding_Photographers" detailpage="alias-of-the-page-you-want" detailtemplate="packages2"}