php - Simple Joomla Component - link to single item in the menu manager -


i have created simple joomla component creates contact form , lets users customize fields published , mandatory. used http://www.component-creator.com/ me create base files.

everything working far, user can create new form, choose fields published , mandatory , custom form show in front end.

one problem have linking directly each of different contact forms users have created. go menu manager, create new link, choose component created, , have 3 options, show list of forms created, show form on front end users can create forms, , important one: show single contact form.

when select show single contact form, closes modal window , creates link contact form, not give me option choose contact form want link to. want "contacts" component, can choose link single contact, , gives option of choosing contact want link to.

does know start @ looking recreate this?

thanks

edit: found piece of code in stand contact module, relate selecting of items in menu manager? have tried adjust own component doesn't seem work far.

<?php if ($this->params->get('show_contact_list') && count($this->contacts) > 1) : ?>     <form action="#" method="get" name="selectform" id="selectform">         <?php echo jtext::_('com_contact_select_contact'); ?>         <?php echo jhtml::_('select.genericlist', $this->contacts, 'id', 'class="inputbox" onchange="document.location.href = this.value"', 'link', 'name', $this->contact->link);?>     </form> <?php endif; ?> 


Comments