[Use params] filters are sometimes displayed curiously

More
12 years 3 weeks ago #37162 by fgossart
shame for me, I have 11 websites and foreach lots of templates and categories views to manually modify.

If not so hard I prefer to put a fix in current release (if you give me the lines to change)

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

More
12 years 3 weeks ago #37208 by ggppdk
Hello, to add "Use Global" to filter separator parameter do these:

-- For category parameters:
in administrator/components/com_flexicontent/models/forms/category.xml

Replace:
Code:
<field name="filter_separatorf" type="list" default="1" label="FLEXI_RECORD_SEPARATOR" description="FLEXI_RECORD_SEPARATOR_DESC"> <option value="0">FLEXI_SPACE</option> <option value="1">FLEXI_LINE_BREAK</option> <option value="2">FLEXI_PIPE</option> <option value="3">FLEXI_COMMA</option> <option value="4">FLEXI_CONVERT_OPEN_CLOSE_TEXTS_TO_SEPARATOR</option> </field>
Replace with
Code:
<field name="filter_separatorf" type="list" default="1" label="FLEXI_RECORD_SEPARATOR" description="FLEXI_RECORD_SEPARATOR_DESC"> <option value="">FLEXI_USE_GLOBAL</option> <option value="0">FLEXI_SPACE</option> <option value="1">FLEXI_LINE_BREAK</option> <option value="2">FLEXI_PIPE</option> <option value="3">FLEXI_COMMA</option> <option value="4">FLEXI_CONVERT_OPEN_CLOSE_TEXTS_TO_SEPARATOR</option> <option value="5">FLEXI_NOCHAR_EMPTY_SEPARATOR</option> </field>


-- For menu items
in folder
components/com_flexicontent/views/tmpl/
and in files: default.xml, myitems.xml, mcats.xml, author.xml

make same replacement.

Also in files (to support 'empty character' as separator):
components\com_flexicontent\tmpl_common\listings_filter_form_body.php


components\com_flexicontent\tmpl_common\listings_filter_form_body_html5.php

replace:
Code:
$separators_arr = array( 0 => '&nbsp;', 1 => '<br />', 2 => '&nbsp;|&nbsp;', 3 => ',&nbsp;', 4 => $closetag.$opentag);
with:
Code:
$separators_arr = array( 0 => '&nbsp;', 1 => '<br />', 2 => '&nbsp;|&nbsp;', 3 => ',&nbsp;', 4 => $closetag.$opentag, 5=>'' );


-- 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 3 weeks ago #37210 by fgossart
Ok, I will try soon. Thanks

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

More
12 years 3 weeks ago #37221 by ggppdk
Hello,
i have updated my post to also add support for 'empty character' as separator


-- 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.363 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