Plugin: Ohanah

Description

This plugin enables you to insert events (one by one or by a selection on one or several categories) from Ohanah in your Newsletters.

You can also use this plugin to automatically include your upcoming events in an Auto-newsletter.

You can search in all your events and then click on one of them to include it in your Newsletter.

If you purchased one of the paid version of AcyMailing, you can download the Ohanah plugin on our plugins section, then install and publish it like a standard Joomla plugin.

Your events will look like this in your newsletter :

Plugin

Single Event

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

Each event can be selected one by one.

  • Display: Select the way you want to display your event, only its intro-text or its full description

  • Extra information: Select this option if you want to also display the location, time and cost (if the event is not free)

  • Truncate the text after...: It will truncate the event's description, keep "0" or empty if you do not want to truncate it

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

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

  • Display pictures: You can decide to display or not the pictures in your event's description.

  • Additional parameters:

    • Itemid: You can specify the Itemid used in the event's links

Upcoming Events

You can select one or several event categories and AcyMailing will automatically include the upcoming events from the selected categories when their starting date is between the From date and To date you specified.

  • Order by: Order the inserted events by id, title, starting date or randomly.

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

  • 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 events found is reached.

  • Columns: Display the events in one, two or more columns

  • Maximum Starting Date: AcyMailing will only include events that start between the sending date and the delay specified.

  • Additional parameters:

    • featured: Insert only featured events, for example: {autoOhanah:| clickable:1....| featured....| details:yes}

    • nofeatured: Prevent the tag to insert featured events.

    • todaysevent: It will take only events starting within the sending day

Filters

With this plugin, you can filter your AcyMailing subscribers based on their Ohanah event registrations.

Parameters

  • Default max picture height / width: These parameters will be taken into account if you selected to resize the pictures but kept empty the width/height values.

  • Front-end Access: You can choose to hide this plugin's tab on the Front-end's tag popup

Customize your Ohanah events template

Customize your event 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 content

  • Style for the content title will be applied to the 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 event is displayed by creating your own template which will be used to render the event.

Please follow those instructions, we don't recommend you to modify the Ohanah plugin directly otherwise your changes will be overwritten when you update the plugin.

Create a file in the folder media / com_acymailing / plugins (if the folder does not exist, please create it first). The name of the file should be ohanah.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 event information), the element $tag (which contains the information of the current tag used in your Newsletter) and $link (the event link)

You can insert the event's information using this simple syntax : {eventTitle}, {eventDescription}, or {link}

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

Here is an example:

<div class="acymailing_content">
    <a href="{link}" target="_blank" >
        <h2 class="acymailing_title">{eventTitle}</h2>
    </a>
    {imagehtml}<br/>
    {eventDescription}<br/>
    From: {startdate} - {starttime}<br/>
    To: {enddate}<br/>
    At: {geolocated_country}:{geolocated_city}, {address}<br/>
    Nb seats: {attendees_limit}<br/>
    Price: {ticket_cost}
</div>

Last updated