possible to call module in company directory

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
relic
Forum Members
Forum Members
Posts: 34
Joined: Fri Dec 08, 2006 9:59 am
Location: New Zealand

possible to call module in company directory

Post by relic »

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
calguy1000
Support Guru
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

Post by calguy1000 »

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.
User avatar
relic
Forum Members
Forum Members
Posts: 34
Joined: Fri Dec 08, 2006 9:59 am
Location: New Zealand

Re: possible to call module in company directory

Post by relic »

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.
Thanks calguy,

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}
But nothing shows.. so i tried the following, and i think this would be easier for the site editors ect but its just getting it to work.

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}'}
now this is somewhat working, but on the front end output i get this:
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.'}
Like the error says "assign a different template" i have tried that, but no change.

this is probably something simple, but im new with CMSMS "code"

Any help or insight would be greatly appreciated.

Cheers
Dave
Post Reply

Return to “Modules/Add-Ons”