CompanyDirectory module, Page template problem

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
mehrdad
Forum Members
Forum Members
Posts: 16
Joined: Mon Dec 16, 2013 8:53 pm

CompanyDirectory module, Page template problem

Post 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
mehrdad
Forum Members
Forum Members
Posts: 16
Joined: Mon Dec 16, 2013 8:53 pm

Re: CompanyDirectory module, Page template problem

Post by mehrdad »

I figured it out but didn't know how to delete this topic.
Thanks
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: CompanyDirectory module, Page template problem

Post by Jeff »

It would be better to post your solution(so others can learn from you) than deleting the topic.
mehrdad
Forum Members
Forum Members
Posts: 16
Joined: Mon Dec 16, 2013 8:53 pm

Re: CompanyDirectory module, Page template problem

Post 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"}
Post Reply

Return to “Modules/Add-Ons”