Is it possible to call a module in company directory listings? for example in using the company directory to list night clubs around the country, what im wanting to do is call the album module in curtain company listings.
Possible?
CMSMS Specs:
Version: 1.2.4
Company module: 1.1.3
possible to call module in company directory
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: possible to call module in company directory
Sure, go for it. I've used the address field from companydirectory to call the CGSimpleGoogleMap module to display a map to the location.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: possible to call module in company directory
Thanks calguy,calguy1000 wrote: Sure, go for it. I've used the address field from companydirectory to call the CGSimpleGoogleMap module to display a map to the location.
But just a few more questions, i have created a custom field named "Photos" and in that field when adding a company i have just put this in:
Code: Select all
{if $entry->photos ne ''} Photos: {$entry->photos}{/if}
I have created a custom "detail" template for the company directory in that template i have been calling the "photos" field like so:
Code: Select all
{cms_module module='album' albums='{$entry->photos}'}
Like the error says "assign a different template" i have tried that, but no change.There are no pictures in this album.Error: The template named "" that this Album is set to use does not exist. Please go to the Album Admin Panel and assign a different template to this Album.'}
this is probably something simple, but im new with CMSMS "code"
Any help or insight would be greatly appreciated.
Cheers
Dave