frontend item submit form and flexicontent module problem

More
12 years 8 months ago #29201 by despair
1.I read the article flexicontent.org/documentation/f ... -form.html
but in the latest FC, I follow the document to create form2.php. But it not read the form2.php with the "index.php?option=com_flexicontent&view=item&layout=form2".

2.I know the flexicontent module can set fields to the module item,but it only one position can show the fileds.
Can I use different fileds in different position of a flexicontent module item?

3.If there are a order result is order by most favorite counts items first?

Sorry My pool english. :oops:

Thanks for FC team~

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29270 by ggppdk

despair wrote: 1. I follow the document to create form2.php But it not read the form2.php with the "index.php?option=com_flexicontent&view=item&layout=form2".


in r1506
# Fixed using a template override for frontend item edit form that has a custom layout name e.g. form2.php, note &task=add or &task=edit, needs to be added to the url (i have updated the FAQ article)

despair wrote: 2.I know the flexicontent module can set fields to the module item,but it only one position can show the fileds.
Can I use different fileds in different position of a flexicontent module item?


No currently there is only one position, you could copy the tmpl/new.php (modules news template) and create more positions outputting the fields at at appropriate places ,
e.g.
$pos1=array('field20', 'field27', 'field24');
$pos2=array('field30', 'field11', 'field31');
$pos3=array('field40', 'field14', 'field19');

<!-- pos2 -->
<?php foreach ($item->fields as $k => $field) : ?>
<?php if ( !in_array($field->name, $pos2) ) continue; ?>
...
<?php endforeach; ?>

NOTE you will need r1507+
, which includes variable ($field->name) for the custom fields

despair wrote: 3.If there are a order result is order by most favorite counts items first?

Sorry My pool english. :oops:

Thanks for FC team~


No such custom for listing by the most favored items, this is a feature to be added to a future version

I have added this as enhancement issue:
Enhancement Issue 524


Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29306 by despair
Thank you~!
1.
But I use the form2.php
and follow the tips to add the &task=add in the url
it still read the form.php

2.


<?php if ($use_fields && @$item->fields && $fields) : ?>
<!-- pos2 -->
<?php foreach ($item->fields as $k => $field) : ?>
<?php if ( !in_array($field->name, $pos2) ) continue; ?>


<div class="field_value"><?php echo $field->display; ?></div>


<?php endforeach; ?>
<?php endif; ?>





Thx

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29307 by ggppdk
You mean that you have installed r1508+ ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29309 by despair
Sorry I only have r1486/ rc8

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #29310 by ggppdk
As i mentioned above, solutions for 1 & 2 you can use when you have r1508+

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.674 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save