Page 1 of 1

Company Directory - How does it work ?

Posted: Mon Mar 05, 2007 12:56 pm
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 !

Re: Company Directory - How does it work ?

Posted: Mon Mar 05, 2007 4:21 pm
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

Re: Company Directory - How does it work ?

Posted: Tue Mar 06, 2007 1:07 pm
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

Re: Company Directory - How does it work ?

Posted: Tue Mar 06, 2007 4:10 pm
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

Re: Company Directory - How does it work ?

Posted: Thu May 10, 2007 8:38 pm
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