#
News
Keep your users informed about your company happenings or press releases with the News Desk.
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 multiple locations throughout your website.
#
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 News
These steps will guide you through the process of installing News Module and adding it to your page.
- Download the News package (Coming soon).
- Add the module to your CMS.
Create a file called
news-repeater.tpl
on your prefer location. This file will contain the code for your news roll that will dynamically pull in your news entries.Insert the HTML code into your file to display the news roll.
Include or replace the code with the shortcodes where needed.
Insert your news repeater file into the page you want to display the entries on.
Create a file called
news-detail.tpl
on your prefer location. This file will contain the code for your news entry.Insert the HTML code into your file to display the news content.
Include or replace the code with the shortcodes where needed.
Insert your news detail file into the page you want to display the entries on.
#
Shortcodes
You will need the following shortcodes to successfully add a News module to your website. Depending on your needs, you might need to use extra shortcodes.
- repeater - prints the fields from the news module form.
[repeater id="" limit="0, 4" display_type="news"]
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.
[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={{news_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 News Module is handled directly through Solodev's global help desk. For more information regarding support queries, go to www.solodev.com.