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 !
Company Directory - How does it work ?
Company Directory - How does it work ?
Last edited by misterneno on Mon Mar 05, 2007 12:58 pm, edited 1 time in total.
Re: Company Directory - How does it work ?
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
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 ?
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

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.
Re: Company Directory - How does it work ?
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
Tim
Re: Company Directory - How does it work ?
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
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