You are looking at the HTML representation of the XML format.
HTML is good for debugging, but is unsuitable for application use.
Specify the format parameter to change the output format.
To see the non HTML representation of the XML format, set format=xml.
See the complete documentation, or API help for more information.
<?xml version="1.0"?>
<api>
  <query-continue>
    <allpages gapcontinue="Review_Submit_Form_Layout" />
  </query-continue>
  <query>
    <pages>
      <page pageid="554" ns="0" title="Related Custom Fields">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">__TOC__

JReviews offers 3 different types of custom field relations.

== Field option to Field option ==

With  this relation, when you select a field option of the parent custom  field, all fields that contain child field options will appear.

This  relation is useful for connecting Country, State and City custom  fields, you don't need to create one state field per country and one  city field per state. Only 3 custom field are required because we are  connecting field options.

For example, the 'United  States' field option of jr_country custom field will be saved as  '''Control Value''' for 'California' field option of jr_state custom  field which will be saved as '''Control Value''' for 'Los Angeles' field  option of jr_city custom field.

The relations are assigned on the Field Options Manager of the child custom field.
For example, when we add a new option for the City custom field, we need to assign the '''Control Value''':

[[File:FieldOptionsRelation.png]]


== Field option to Field ==

With this relation, when you select a field option of the parent custom field, all child fields will appear.

This relation is useful when you want a child custom field to appear with all its values after parent field option is selected.

For  example, if you decided to create a different state field for each  country, you can assign a 'jr_usstates' custom field to 'United States'  field option of the jr_country custom field and the state field will  always show all its options.

Another example is to show  additional custom field with Restaurant Meals only after ''Yes'' value  has been selected for the parent Food custom field. In this case the  '''Control Value''' is assigned to the custom field on the field  Add/Edit screen:

[[File:FieldRelation.png]]


== Field option to Field group ==

With this relation, when you select a field option of the parent custom field, all child field groups will appear.

This relation is useful when you want a whole field group to appear with all its fields after parent field option is selected.

For  example, if you have a 'Cuisine' custom field with field options  'French', 'Italian', etc., you can create a field group for each of  those field options that will show fields with more details about the  particular cuisine. In this case the '''Control Value''' is assigned to  the field group in Field Groups Manager:

[[File:FieldGroupRelation.png]]



For more details, watch the video about custom field relations:&lt;br /&gt;
[https://docs.jreviews.com/videos/related_fields/Related_fields.html Related Fields] (6:26 min.)</rev>
        </revisions>
      </page>
      <page pageid="586" ns="0" title="Removing component type identifier from modules and reviews">
        <revisions>
          <rev contentformat="text/x-wiki" contentmodel="wikitext" xml:space="preserve">To help differentiate between different types of reviews in sites that use the Everywhere-addon for multiple extensions JReviews automatically appends a component type identifier at the end of review titles in modules and reviews. For social extensions like JomSocial and Community Builder it uses &quot;member&quot;, for real estate extensions &quot;property&quot;, etc.

If you wish to omit the identifier or change it first you need to find the everywhere integration file for the extension in /jreviews/models/everywhere. Then find the equivalent of the line below:

&lt;source lang=&quot;php&quot;&gt;
$this-&gt;tag = __t(&quot;JOMSOCIAL_TAG&quot;,true);  // Used in MyReviews page to differentiate from other component reviews
&lt;/source&gt; 
 
If you want to omit the identifier comment the line by adding a double slash &quot;//&quot; in front of it. If you want to change it to something else edit it like this:

&lt;source lang=&quot;php&quot;&gt;
$this-&gt;tag = __t(&quot;My Own Identifier&quot;,true);  // Used in MyReviews page to differentiate from other component reviews 
&lt;/source&gt;        

A different approach is to find the extension tag, JOMSOCIAL_TAG in this example, in the language file and change the msgstr to blank like this:


&lt;source lang=&quot;php&quot;&gt;
#: com_jreviews\jreviews\models/everywhere/everywhere_com_community_access.php:143 
msgid &quot;JOMSOCIAL_TAG&quot; 
msgstr &quot;&quot;
&lt;/source&gt;


Or change it to something else:



&lt;source lang=&quot;php&quot;&gt;
#: com_jreviews\jreviews\models/everywhere/everywhere_com_community_access.php:143 
msgid &quot;JOMSOCIAL_TAG&quot; 
msgstr &quot;My Own Identifier&quot;
&lt;/source&gt;</rev>
        </revisions>
      </page>
    </pages>
  </query>
</api>