Company directory : Dropdown categories list & Field definit
Posted: Fri Feb 18, 2011 11:53 pm
hi all and thank's for the time you take to help us doing the web better.
I'm trying to setup company directory to build the ads part of a website i'm working on.
Following the tips on the forum, i'm already done, but I have a few question to finish:
System information
CMS Version 1.9.2
CompanyDirectory 1.7.3
FrontEndUsers 1.12.11
SelfRegistration 1.6.7
CustomContent 1.7.3
PHP Version 5.2.15
MySQL 5.1.52
pretty urls activated
1- Dropdown categories list
I have already done it but i don't know how to create an "All option" for searching through all the categorie at the same time
My Search Form Template:
2- Detail view of a company
Going from the summary view to the datail view, I get 3 times the same error code Warning: Attempt to assign property of non-object in /..... /modules/CompanyDirectory/action.details.php on line 89
Did I have to erase the line 89 as said in this post http://forum.cmsmadesimple.org/viewtopi ... 89#p243643
3- Field definition
How to get the dropdown field definition to work? I create one but it's show a text box (tested on two local websites)
Thank you for your help
PS: I wish you understand what i wrote, I'm from a french speaking country
I'm trying to setup company directory to build the ads part of a website i'm working on.
Following the tips on the forum, i'm already done, but I have a few question to finish:
System information
CMS Version 1.9.2
CompanyDirectory 1.7.3
FrontEndUsers 1.12.11
SelfRegistration 1.6.7
CustomContent 1.7.3
PHP Version 5.2.15
MySQL 5.1.52
pretty urls activated
1- Dropdown categories list
I have already done it but i don't know how to create an "All option" for searching through all the categorie at the same time
My Search Form Template:
Code: Select all
<div id="cd_searchform">
{$formstart}
<div class="row">
<p class="col30">Quoi?</p>
<p class="col70">
<input type="text" name="{$actionid}cd_name" size="20" maxlength="20"/>
<input type="hidden" name="{$actionid}cd_name_type" value="like"/>
</p>
</div>
{if isset($hierarchies)}
<div class="row">
<p class="col30">{$mod->Lang('hierarchy')}:</p>
<p class="col70">
<select name="{$actionid}cd_hier">
{html_options options=$hierarchies}
</select>
{$mod->Lang('label_includechildren')}:
<input type="hidden" name="{$actionid}cd_hier_children" value="0"/>
<input type="checkbox" name="{$actionid}cd_hier_children" value="1"/>
</p>
</div>
{/if}
{if isset($categories)}
<div class="row">
<p class="col30">{$mod->Lang('categories')}:</p>
<p class="col70">
<select name="{$actionid}cd_use_categories">
<option value="-1">All</option>
{html_options options=$categories}
</select>
{capture assign='tmp'}{$actionid}cd_use_categories{/capture}
</p>
</div>
{/if}
<div class="row">
<p class="col30"></p>
<p class="col70">
<input type="submit" name="{$actionid}cd_submit" value="{$mod->Lang('submit')}"/>
</p>
</div>
{$formend}
</div>
Going from the summary view to the datail view, I get 3 times the same error code Warning: Attempt to assign property of non-object in /..... /modules/CompanyDirectory/action.details.php on line 89
Did I have to erase the line 89 as said in this post http://forum.cmsmadesimple.org/viewtopi ... 89#p243643
3- Field definition
How to get the dropdown field definition to work? I create one but it's show a text box (tested on two local websites)
Thank you for your help
PS: I wish you understand what i wrote, I'm from a french speaking country