Skip to main content

Reverse relation

Relation Reverse field Plugin for FLEXIcontent

Plugin : relation_reverse — Relation - Reverse

:::info Source This page is generated from plugins/flexicontent_fields/relation_reverse/relation_reverse.xml and the official FLEXIcontent 5.x language files. :::

Reversing​

note

List items related to 'current' item via the chosen field

OptionDescriptionTypeValuesDefault
Reverse relation field
reverse_field
Select an existing relation field for reversingfields——

Editing​

note

ITEM FORM: you can customize the display of the read-only items list (related to current item)

OptionDescriptionTypeValuesDefault
Max listed items
itemcount_form
Limit the maximum items to listed Numbertext——

Editing​

OptionDescriptionTypeValuesDefault
Display label
display_label_form
Display or hide label of this fieldradio1 = Floated left
2 = Cleared
1 (Floated left)
Label
label_form
Enter a label to use for item form that is different than field label for viewingtext——
No access message
no_acc_msg_form
Leave this blank to use system's default no access message, or enter a custom message for this fieldtext——

Items Ordering​

note

Select property or field to use for ordering the items

OptionDescriptionTypeValuesDefault
Order by CORE field/properties
orderby_form
Order items by CORE fields/propertieslist— = FLEXI_ORDER_DEFAULT
date = Added -- Oldest first
rdate = Added -- Most Recent first
modified = Modified -- Most Recent first
alpha = Title -- Alphabetical
ralpha = Title -- Alphabetical Reverse
author = Author -- Alphabetical
rauthor = Author -- Alphabetical Reverse
hits = Popularity -- Most hits first
rhits = Popularity -- Least hits first
id = ID -- Highest First
rid = ID -- Lowest First
order = Ordering in current category
alpha (Title -- Alphabetical)

CUSTOM field ordering​

OptionDescriptionTypeValuesDefault
Enable *** overrides CORE order**
orderbycustomfield_form
Enable this to order by the selected CUSTOM field. NOTE: This setting is ignored if you do not select a custom fieldradio0 = No
1 = Yes
1 (Yes)
Custom field
orderbycustomfieldid_form
Select a custom field to use for ordering. Attention, some types of fields cannot be ordered (file and image fields for example).fields—0
Direction
orderbycustomfielddir_form
Select to creating either an ascending (increasing) or a descending (decreasing) ordered list.listASC = Ascending
DESC = Descending
ASC (Ascending)
Ordering Method
orderbycustomfieldint_form
Select to order alphanumerically (dictionary order) or numerically e.g. in alphanumerically '1000 my-title' is before '200 my-title'list0 = Text
1 = Integer
2 = Float
3 = Date
0 (Text)

Item HTML​

note

Configure the HTML to use for displaying every item

OptionDescriptionTypeValuesDefault
Item HTML
relitem_html_form
Enter the HTML to use for each item, NOTE: you can use: display_text -- is replaced with custom text created according to parameters {{fieldname}} or {{fieldname##displayvar}} -- is replaced with HTML display of each field {{fieldname##label}} -- is replaced with label of each field %%language_string%% -- is replaced with the language string Finally, you can use item related replacements: item_url, item_title_escaped, item_tooltip and item properties like: {item->id}, {item->title}, etceditor—__display_text__

Composition of display_text​

OptionDescriptionTypeValuesDefault
Custom Text
displayway_form
Display Item ID (e.g. for use with Joomla plugin) or Item Title (e.g. for linking to the content item)list0 = Item ID
1 = Item Title
1 (Item Title)
Add Item Link
addlink_form
Enable this add a hovering tooltip with e.g. read more messageradio0 = No
1 = Yes
1 (Yes)
Add Link Tooltip
addtooltip_form
Enable this add a hovering tooltip with e.g. read more messageradio0 = No
1 = Yes
1 (Yes)

Prefix - Suffix - Separator​

OptionDescriptionTypeValuesDefault
Every value prefix
pretext_form
This text is placed immediately before every field valuetext——
Every value suffix
posttext_form
This text is placed immediately after every field valuetext——
Value separator (item form)
separator
Choose a separator to separate the values in backend/frontend item forms (placed between values)list0 = Space
1 = Line break
2 = Pipe
3 = Comma
4 = Texts: Closing + Opening
5 = Empty (No characters)
1 (Line break)
Opening text for Field
opentag_form
This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——
Closing text for Field
closetag_form
This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——

Editing​

Viewing​

Viewing​

Basic​

Display​

OptionDescriptionTypeValuesDefault
Show in clients
show_in_clients
Select if the field will be created and shown to specific clientsfccheckbox——
Show in views
show_in_views
Select if the field will be created and shown to specific viewsfccheckbox——

Label and access​

OptionDescriptionTypeValuesDefault
Display label
display_label
Display or hide label of this fieldradio0 = No
1 = Yes
1 (Yes)
Show no access message
show_acc_msg
When field is inaccessible a no access message will be shown. NOTE: IF this parameter is disabled, the field will be invisible to users with no access, without any message or warning that it existsmultilist0 = No
1 = Yes
0 (No)
No access message
no_acc_msg
Leave this blank to use system's default no access message, or enter a custom message for this fieldtext——

Export​

OptionDescriptionTypeValuesDefault
Include in CSV export
include_in_csv_export
Select to include field in CSV export. Take care that not all fields support CSV export. Please test to determine if this field is included properly, since a special method is needed but not implemented yet by all fieldsradio0 = No
1 = Yes
0 (No)

Backend View​

OptionDescriptionTypeValuesDefault
Backend view appearance
backend_view_appearance
How this field's value is displayed in the admin items list. Overrides the global 'Custom columns appearance' setting when not set to Default.multilist0 = Default
1 = Check mark
2 = Clean up HTML and trim
0 (Default)
Trim length (characters)
backend_view_trim_chars
Number of characters to keep after stripping HTML tags.text—100

Layout​

OptionDescriptionTypeValuesDefault
Values layout
viewlayout
Please note: - do not modify default layouts, - custom layouts may need updating in future to respect new configuration and work properly - to create new copy (same folder): plugins/flexicontent_fields/FIELD_TYPE/tmpl/value_*.php as value_mytemplate.php - or to folder: /templates/SOME_NAME/html/flexicontent_fields/FIELD_TYPE/ and then modifyfcfilelist——
note

For configuration options, common to all layouts, please see other Tabs of this tab-set

note

Display options: -- Item list (related to current item)

OptionDescriptionTypeValuesDefault
Max listed items
itemcount
Limit the maximum items to listed Numbertext——
Items list viewable
itemslist_acclvl
Only users that have this access level (belong to a usergroup that has it) will be able to view the items listaccesslevel—1

Filter items​

note

Items matching all of the selected criteria will be items included, Note: Leave blank to ignore the specific limitation

OptionDescriptionTypeValuesDefault
Category
reverse_scope_category
Select Categoryflexicategories——
Types
reverse_scope_types
Select types you want to include or excludetypes——

Other Scope Limits​

OptionDescriptionTypeValuesDefault
Same Language Only
samelangonly
When this is enabled only items that have the same language as the item will be listedradio0 = No limit
1 = Yes
1 (Yes)
Use publish up/down dates
use_publish_dates
Will skip selected items when their publication dates expireradio0 = No limit
1 = Yes
1 (Yes)
Only published items
onlypublished
If this is disabled unpublished items will be shown tooradio0 = No limit
1 = Yes
1 (Yes)
Item owned by
ownedbyuser
Items owned by (a) any user or (b) by user currently editting the item by item owning the current itemradio0 = Any user
1 = editing user
2 = item owner
0 (Any user)

Items Ordering​

note

Select property or field to use for ordering the items

OptionDescriptionTypeValuesDefault
Order by CORE field/properties
orderby
Order items by CORE fields/propertieslistdate = Added -- Oldest first
rdate = Added -- Most Recent first
modified = Modified -- Most Recent first
alpha = Title -- Alphabetical
ralpha = Title -- Alphabetical Reverse
author = Author -- Alphabetical
rauthor = Author -- Alphabetical Reverse
hits = Popularity -- Most hits first
rhits = Popularity -- Least hits first
id = ID -- Highest First
rid = ID -- Lowest First
commented = Most Commented
rated = Best Rated
order = Ordering in current category
jorder = Ordering (Global)
random = Random
alpha (Title -- Alphabetical)

CUSTOM field ordering​

OptionDescriptionTypeValuesDefault
Enable *** overrides CORE order**
orderbycustomfield
Enable this to order by the selected CUSTOM field. NOTE: This setting is ignored if you do not select a custom fieldradio0 = No
1 = Yes
1 (Yes)
Custom field
orderbycustomfieldid
Select a custom field to use for ordering. Attention, some types of fields cannot be ordered (file and image fields for example).fields—0
Direction
orderbycustomfielddir
Select to creating either an ascending (increasing) or a descending (decreasing) ordered list.listASC = Ascending
DESC = Descending
ASC (Ascending)
Ordering Method
orderbycustomfieldint
Select to order alphanumerically (dictionary order) or numerically e.g. in alphanumerically '1000 my-title' is before '200 my-title'list0 = Text
1 = Integer
2 = Float
3 = Date
0 (Text)

Item HTML​

note

Configure the HTML to use for displaying every item

note

NOTE: Configuration of this can be overriden for some views, via the 'Total info' TAB

OptionDescriptionTypeValuesDefault
Item HTML
relitem_html
Enter the HTML to use for each item, NOTE: you can use: display_text -- is replaced with custom text created according to parameters {{fieldname}} or {{fieldname##displayvar}} -- is replaced with HTML display of each field {{fieldname##label}} -- is replaced with label of each field %%language_string%% -- is replaced with the language string Finally, you can use item related replacements: item_url, item_title_escaped, item_tooltip and item properties like: {item->id}, {item->title}, etceditor—__display_text__

Composition of display_text​

OptionDescriptionTypeValuesDefault
Custom Text
displayway
Display Item ID (e.g. for use with Joomla plugin) or Item Title (e.g. for linking to the content item)list0 = Item ID
1 = Item Title
1 (Item Title)
Add Item Link
addlink
Enable this add a hovering tooltip with e.g. read more messageradio0 = No
1 = Yes
1 (Yes)
Add Link Tooltip
addtooltip
Enable this add a hovering tooltip with e.g. read more messageradio0 = No
1 = Yes
1 (Yes)

Content Plugins -- You need this for description field, for other fields enable only if needed​

OptionDescriptionTypeValuesDefault
Trigger content plugins
trigger_onprepare_content
Enable this option if you want to trigger content plugin event: onPrepareContent. A small number of plugins may not work outside com_content.multilist0 = No
1 = Yes
0 (No)
Trigger inside category
trigger_plgs_incatview
Trigger content plugins on this field when item is displayed in a category viewradio0 = No
1 = Yes
0 (No)
Specific plugins only
plugins
You can choose specific plugins in this list or leave empty to trigger all. This feature is useful in some cases to avoid conflicts, multiple displays or reduce the load. Keep in mind that once the plugin is imported for a field, it will automatically be executed on all following fields in the loop.pluginlist——

Prefix - Suffix - Separator​

OptionDescriptionTypeValuesDefault
Preset configurations
prx_sfx_open_close_configs
This is a list of preset configurations, after loading them, you can click custom again to customize themmultilist— = Customize
1 = List: numbered
2 = List (bullets)
3 = List (circle)
4 = List (square)
5 = List (no marking)
—
Remove space
remove_space
Remove the space between prefix value and suffix. It's recommended for plugin use, for example {play}mysong.mp3{/play}radio0 = No
1 = Yes
0 (No)
Every value prefix
pretext
This text is placed immediately before every field valuetext——
Every value suffix
posttext
This text is placed immediately after every field valuetext——
Value separator (frontend views)
separatorf
Choose a separator to separate the values in frontend views (placed between values)multilist0 = Space
1 = Line break
6 = Horizontal line
2 = Pipe
3 = Comma
4 = Texts: Closing + Opening
5 = Empty (No characters)
7 = Custom separator
1 (Line break)
Custom separator
separatorf_custom
—text——
Opening text for Field
opentag
This applied once at the START of the field. It is meant to create the start of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——
Closing text for Field
closetag
This applied once at the END of the field. It is meant to create the end of the field HTML, but above you can choose to place it as SEPARATING text of the values too. But prefer to use parameters: Prefix/Suffix text of values if they exist for this field type.text——

Total count​

note

Display options: -- Total counter ** A more compact display that allows skipping or compacting the item list e.g. in category view**

OptionDescriptionTypeValuesDefault
Enable total
show_total_only
Enable this to show only a total count of related items instead of showing the related items list.multilist0 = No
1 = Yes
2 = Yes, hide zero
0 (No)
Enable in views
total_in_view
You can turn on/off the above parameter depending on current flexicontent viewfccheckbox——
Append text
total_append_text
Enter to append some text to the total counttext——

Show extra information​

OptionDescriptionTypeValuesDefault
Submit related button
total_show_auto_btn
Enable to also show the Submit related button, (if enabled and configured above)radio0 = No
1 = Yes
0 (No)
Related items list
total_show_list
Enable to also show items list, (below you can override item list configuration)multilist0 = No
1 = Yes
0 (No)

Override default​

OptionDescriptionTypeValuesDefault
Item HTML
total_relitem_html
Enter the HTML to use for each item, NOTE: you can use: display_text -- is replaced with custom text created according to parameters {{fieldname}} or {{fieldname##displayvar}} -- is replaced with HTML display of each field {{fieldname##label}} -- is replaced with label of each field %%language_string%% -- is replaced with the language string Finally, you can use item related replacements: item_url, item_title_escaped, item_tooltip and item properties like: {item->id}, {item->title}, etceditor—__display_text__

Viewing​