plugin: JoomBlog

Description

You can also use this plugin to automatically include your newly created (or modified) posts in an Auto-newsletter.

You can search in all your JoomBlog posts and then click on one of the posts to include it in your Newsletter.

If you purchased at least one commercial version of AcyMailing, you can download the JoomBlog plugin then install and publish it like a standard Joomla plugin.

Here is an example of inserted blog:

JoomBlog Example

Plugin

Single Post

You can use this interface to insert any JoomBlog post in your Newsletter.

Each post can be selected one by one.

  • Display: select the post information you want to be in the newsletter

  • Clickable Title: make your title clickable (so linked to your online version) or not.

  • Read More: add a "read more" link at the end of the post (so linked to your online version)

  • Display pictures: you can decide to display or not the post pictures

  • Truncate the text after...: it will truncate the post text, keep "0" or empty if you do not want to truncate it

Categories

You can select one or several JoomBlog categories and AcyMailing will automatically include the posts belonging to the selected categories.

  • Language: select a language to filter posts by language or keep the default value if you want to display all posts

  • Blog: filter the posts by blog or keep "All"

  • Columns: display the posts in one, two or more columns

  • Order by: order the posts by ID, title, etc...

  • Max. Number of items: The inserted tag will be replaced by a maximum of X posts.

  • Min. Number of items: This option will only be displayed if you access this plugin for a Smart-Newsletter. AcyMailing will only generates your Smart-Newsletter if the minimum number of posts found is reached.

  • Filter: This option will only be displayed if you access this plugin for a Smart-Newsletter. You can set a rule so that only newly created or modified posts are added to your Newsletter.

Parameters

JoomBlog parameters

  • Display posts: This parameter enables you to filter the list of JoomBlog posts in the tag system

    • All posts: AcyMailing will display all your posts

    • Only published posts: AcyMailing will only display your published posts

Customize your JoomBlog post template

Customize your post using some CSS

You can change the styles used for the title and the content area by editing your AcyMailing template.

Edit the AcyMailing template used for your Newsletter and then set some styles:

  • Style for the content area will be used to encompass your post

  • Style for the content title will be applied to your post's title

  • Style for the read more link will be applied to your read more link (if you have one)

  • You can also set the style of all your links using the Link a field

Set styles template

Create your own template

You can also modify the way your JoomBlog post is displayed by creating your own template which will be used to render the post. Please follow those instructions, we don't recommend you to modify the JoomBlog plugin directly otherwise your changes will be overwritten when you update the plugin.

Create a file in the the folder media / com_acymailing / plugins (if the folder does not exist, please create it first). The folder used to be components / com_acymailing / templates / plugins in older versions. The name of the file should be joomblog.php If this file is available on your server, AcyMailing will use it and won't use the default one.

On this file you can access the element $varFields (which contains all the post information), the element $tag (which contains the information of the current tag used in your Newsletter) and $link (the post link)

You can insert the post information using this simple syntax : {title}, or {description}

Using all those variables, you can create your own post template.

Here is an example:

<div class="acymailing_content"> <a href="<?php echo $link; ?>" name="joomblog-{id}" target="_blank" > <h2 class="acymailing_title">{title}</h2> </a> <a href="<?php echo $link; ?>" target="_blank" style="text-decoration:none" ><img src="{defaultimage}" style="float:left;padding:5px;"/></a>'; ?> {introtext}{description}Author : {username}Hits : {hits}</div>

Last updated