Creating a new Shortcode
Last updated
Last updated
In this view a new shortcode can be created (with the following):
Name: Name of the shortcode.
Up to 50 characters are allowed.
No empty value.
HTML: Code of the shortcode.
No empty value.
Shortcode type:
Type: Choosing a type will help adding records or collections to the code.
Empty:
With this option selected, not only the records and categories are available but also a shortcode can be created to show for example: Contact form, information tables, etc.
Records by collections:
Gets all the records of a collection. It can select one or more collections. Then with the variables it can be added to the HTML.
Records:
Gets all the records. It can select one or more records and with the upper options can filter the results and finally with the variables it can be added to the HTML.
Collections:
Gets all the collections. It can select one or more collections and with the variables can be added to the HTML.
Records by query:
Gets all the records and, with the advanced search, can do a specific search for the records to add in the HTML. (See Advanced search)
After choosing the records or collections, you can add them to the HTML code, all you have to do is add the variables according to what you need.
If a shortcode is chosen from Collections, then the following variables will be available:
ID Collection: It will show the id of the selected collection(s).
Name: Name of the selected collection(s).
Description: Long Description of the selected collection(s).
URL image: URL Image of the selected collection(s).
Short Description: Excerpt from the description of the selected collection(s).
If a shortcode is chosen from Records, then the following variables will be available:
ID Record: This allows displaying the unique identification of the selected record(s).
Title: Name of the selected record(s).
Description: Description of the selected record(s).
Short Description: Excerpt from the description of the selected record(s).
URL image: Url Image of the selected record(s).
If the empty option is not chosen, then it is possible to choose how many results to Display per page.