I don't know if Emmannuel will include this in a future release, and don't know if it has any implications (i dont think it has,) and i believe it is useful.
The following code will make a select box appear so that you can choose on what type to bind the joomla articles:
You need to change 2 files:
1st file:
administrator/components/com_flexicontent/views/items/tmpl/default.php
LOCATE at ABOUT line 169
Code:
<input id="button-bind" type="submit" class="button" value="<?php echo JText::_( 'FLEXI_BIND' ); ?>" />
place the following code just before the <input id="button-bind" ... line
Code:
<?php
$types = & $this->get( 'Typeslist' );
echo JText::_( 'Bind to' ). flexicontent_html::buildtypesselect($types, 'typeid', $typesselected, false, 'size="1"');
?>
2nd file:
administrator/components/com_flexicontent/models/items.php
Replace
3 (three) lines (at about line 249):
Code:
$itemext = array();
foreach ($rows as $row) {
$itemext = '('.(int)$row->id.', 1, '.$this->_db->Quote($lang).', '.$this->_db->Quote($row->title.' | '.flexicontent_html::striptagsandcut($row->text)).')';
with:
Code:
$itemext = array();
$typeid = JRequest::getVar('typeid',1);
foreach ($rows as $row) {
$itemext = '('.(int)$row->id.', '. $typeid .', '.$this->_db->Quote($lang).', '.$this->_db->Quote($row->title.' | '.flexicontent_html::striptagsandcut($row->text)).')';
Post back feedback, i have tested this and worked for me.
Regards