[compare:] Short Tag
Built-in Feature
The [compare:]
short tag displays a table listing the Custom Fields of each item side-by-side for comparison.
Note:
[compare:]
renders a widget "Compare Item Fields Widget" (<div class="evo_widget widget widget_core_item_fields_compare">...</div>
) and cannot appear inside a paragraph. (b2evolution will automatically move it out of the paragraph).Syntax Breakdown
[compare:
Item IDs ]
Item IDs: comma-delimited list of IDs of items to compare.
You can use the following special values in lieu of item IDs:
- $this$: to designate the current Item
- $parent$: to designate the parent of the current Item
Samples
[compare:1,2,4,8]
will compare the custom fields of items with IDs 1, 2, 4 and 8.[compare:$this$,$parent$]
will compare the current Item with its parent.
![[compare:] Short Tag](https://b2evolution.net/media/blogs/man/quick-uploads/compare-short-tag/.evocache/compare_short_tag_display_20190926.png/fit-1280x720.png?mtime=1569463910)