Company Directory - How does it work ?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
misterneno

Company Directory - How does it work ?

Post by misterneno »

Hi,

I've just install the Company Directory module on CMSMS 1.0.4. The admin panel works fine, but i don't know how I can see the directory on a page. Witch tag is used to do that ?

Thanks a lot !
Last edited by misterneno on Mon Mar 05, 2007 12:58 pm, edited 1 time in total.
skypanther

Re: Company Directory - How does it work ?

Post by skypanther »

Try {cms_module module='companydirectory'}

You might also want to check out this other thread: http://forum.cmsmadesimple.org/index.ph ... 110.0.html

Tim
misterneno

Re: Company Directory - How does it work ?

Post by misterneno »

Damn, i'm so stupid.  >:(

Another question : Do you know witch parameter i need to show only one categorie on a page (if it's possible ?!?!? )?

example : {cms_module module='companydirectory' categorie='INeedHelp' }

Thanks
Last edited by misterneno on Tue Mar 06, 2007 2:13 pm, edited 1 time in total.
skypanther

Re: Company Directory - How does it work ?

Post by skypanther »

I don't think you can do that. Though, the plain tag creates a page with a list of categories. Once you select a category it then shows a page of just the companies in that category. You could create a Link to that page. (Visit the category page as described and copy the URL, at least from the index.php? part till the end. Then, in the admin pages, go to Content>Pages, add a new page and select the Link type content, paste in the URL.)

Tim
christla
New Member
New Member
Posts: 6
Joined: Thu May 10, 2007 8:28 pm

Re: Company Directory - How does it work ?

Post by christla »

HI there,

if you want to link to a page with a category you can do this......

go to action.default.php

and right after 4th or 5th line
$inputcat = $_POST[$id.'inputcat'];
}

add this
if (isset($_GET['cat']))
{
$inputcat = $_GET['cat'];
}

then you can link to page with category like this
/yourroot/yourpage?cat=x  or just /yourroot/yourdir/?cat=x

where x is number of requested category

also right at thje end of the file  you can add line
$this->smarty->assign('inputcat', $inputcat);

and you can test for this variable in the template so you can use diferrent template code for different category

hope this helps

Tomas
Locked

Return to “Modules/Add-Ons”