#
Blog
Create unique blog content, upload featured images, and structure data
with categories all inside the Solodev Blog Module.
The Solodev Blog Module lets you schedule when content goes live, keeping your team and blog readers on schedule. The Blog Manager also gives your team a place to collaborate on long-form content. Include more than just copy by easily adding images and video to your posts.
#
Prerequisites
- Have a Solodev CMS.
- Have a Website.
Note:
For step-by-step instructions on adding a Module in your CMS, please visit Add a Module.
#
Create Blog
These steps will guide you through the process of installing Blog Module and adding it to your page.
- Download the Blog package.
- Add the module to your CMS.
- Create a file called
blog-repeater.tpl
on your prefer location. This file will contain the code for your blog roll that will dynamically pull in your blog entries.
- Insert the HTML code into your file to display the blog roll. For example:
<div class="row row-cols-lg-2 row-cols-1">
<div class="col">
<img alt="Placeholder image" src="/_/images/blog-image.png" class="img-fluid">
</div>
<div class="col">
<h2>
<a href="/blog/detail/" class="text-black">Blog title</a>
</h2>
<p>Blog intro.</p>
<p><a class="btn btn-primary" aria-label="Read more about blog" href="/blog/detail/">Read more</a></p>
</div>
</div>
- Include or replace the code with the shortcodes where needed. For example:
<div class="row row-cols-lg-2 row-cols-1">
[repeater id="" limit="0, 4" display_type="forum"]
<div class="col">
<img alt="Placeholder image" src="[get_asset_file_url id={{blog_image}}]" class="img-fluid">
</div>
<div class="col">
<h2>
<a href="{{path}}" class="text-black">{{event_title}}</a>
</h2>
<p>{{blog_intro}}</p>
<p><a class="btn btn-primary" aria-label="Read more about {{event_title}}" href="{{path}}">Read more</a></p>
</div>
[/repeater]
</div>
- Insert your blog repeater file into the page you want to display the entries on.
- Create a file called
blog-detail.tpl
on your prefer location. This file will contain the code for your blog entry.
Insert the HTML code into your file to display the blog content.
Include or replace the code with the shortcodes where needed.
Insert your blog detail file into the page you want to display the entries on.
#
Shortcodes
You will need the following shortcodes to successfully add a Blog to your website. Depending on your needs, you might need to use extra shortcodes.
- repeater - prints the fields from the blog module form. Used on your repeater page.
[repeater id="1" limit="0, 4" display_type="forum"]
Note:
You need to add the ID number of your slider module to the repeater shortcode within the id=""
attribute.
- entry - displays the content of a specific blog entry from the module form. Used on your detail page.
[entry]
- get_asset_file_url - returns the URL path to the specified asset file in the database.
<img alt="Image alt" class="img-fluid" src="[get_asset_file_url id={{blog_image}}]" />
- print_date - returns the date formatted according to PHP's date function.
<p>[print_date format="F d, Y g:ia" timestamp="{{start_time}}"]</p>
event_title
- displays the name of the module's entry.
{{event_title}}
If you need to use other shortcodes or need to learn more about shortcodes, click here.
#
Support
Support for Blog Module is handled directly through Solodev's global help desk. For more information regarding support queries, go to www.solodev.com.