#
Shortcodes
Shortcodes are the contextual templating language of Solodev. They are small pieces of code that perform dedicated functions in your CMS, simplifying the addition of features to your website. This includes things like adding custom search, embedding videos, applying navigation, and various other functionalities – all of which can be handled without writing direct code.
Here’s an example of a Solodev shortcode for embedding Google Custom Search on a website:
[google_website_search]
Similar to other templating systems, Solodev uses double brackets [ ] to open and close templated expressions and double curly braces for HTML fields. Inside these brackets, a developer can use shortcode functions and reference content schema properties. These templating expressions are written alongside standard HTML.
The Solodev shortcode framework allows you to create special kinds of functionality that can be attached to certain pages. This can be done by adding the corresponding shortcode into the page text itself. Shortcodes handle all the tricky parsing, eliminating the need for writing a custom expression for each example. Helper functions are included for setting and fetching default attributes, and the framework also supports both self-closing and enclosing shortcodes.
#
Types of Shortcodes
There are several categories of shortcodes in Solodev:
See also
In Solodev, you can add a form to a web page to collect information for almost any kind of application.
This guide walks you through the steps to integrate reCAPTCHA into your Solodev forms.
The Solodev Alert Module effortlessly manage and display alerts on your website. Customize messages to match your needs and make sure your audience
The Solodev Blog Module makes it easy to create, organize, and publish posts on your website. Add featured images, videos, and categories to enrich
The Solodev Calendar Module makes it simple to schedule, organize, and showcase upcoming events on your website. Publish details with rich
The Solodev Contact provides a simple way to collect inquiries, feedback, and requests. Customize fields, manage submissions, and ensure every message
Transform your basic calendar into a powerful, interactive scheduling tool with FullCalendar. Whether you are managing events, appointments, or
In Solodev, you can control user access to your front-end website by implementing restrictions. This article guides you through the process of
Keep your users informed about your company happenings or press releases with the News Desk. Complete with categories, the News Desk can be used in
The Solodev Quick Links Module makes it easy to streamline navigation by providing direct paths to key content. Save users time, improve efficiency,
Customize each slide with images, text, buttons, and links to match your brand perfectly. Manage multiple slides effortlessly and keep your homepage