How to Autopublish JCal Pro Events via Frontend

How to Autopublish JCal Pro Events via Frontend

JCal Pro allows you to create and automatically publish events by a designated person via your Joomla site frontend. 

Here is the workflow of this task:

  1. Your designated JCal Pro events autopublisher logs into your Joomla site frontend.
  2. They click a link, for example, "Add New Event".
  3. They see a page for JCal Pro event creation and create a JCal Pro event. 
  4. Their event gets published with the "Unapproved" status at your JCal Pro backend control panel. It also gets published at the frontend for a logged-in JCal Pro moderator, if you created one.
  5. At the same time, JCal Pro notifies about this event your site super administrator and your JCal Pro moderator, if you created one.
  6. Either your site super administrator at the backend or your JCal Pro events moderator at the frontend approves the event.
  7. The event gets displayed to the public in your JCal Pro calendar.

In this blog post, I will show you how to set up this workflow.

Setting automatic events publishing in JCal Pro via a frontend of a Joomla site is a five-step process:

  1. Create a Joomla user group for your JCal Pro events auto-publisher
  2. Create a Joomla access level for your JCal Pro events auto-publisher
  3. Assign your JCal Pro events publisher user group the "Allowed" permissions for the "Create" and "Autopublish" actions
  4. Assign the required Joomla user as your JCal Pro events auto-publisher
  5. Create a frontend menu item for your JCal Pro events auto-publisher.

Let's take a look at this process in more detail.


Step #1. Create a user group for JCal Pro events frontend auto-publishers

The first step is to create a new Joomla user group specifically dedicated to your JCal Pro frontend events auto-publisher.

  • In your Joomla control panel, click Users > Groups > Add New Group:

Users > Group > Add New Group

You will see Users: New Group administrative page. Create a new user group:

  1. Group Title: Enter JCal Pro Events Frontend Autopublishers.
  2. Group Parent: Select the Registered user group.
  3. Click Save & Close.

create a new user group for autopublishers

Good job. You now have a special Joomla user group for your JCal Pro events frontend auto-publishers. Let's create for this group its own access level.


Step #2. Create an access level for the events frontend auto-publishers

In this step, you will create a special access level for your JCal Pro events frontend auto-publishers.

  • In your Joomla administrator panel, go to "Users" > "Access Levels" > "Add New Access Level":

add new access level

  • Create a new access level:
    • Level Title: JCal Pro Events Frontend Autoublishers
    • User Groups Having Viewing Access: click "Registered" and click "JCal Pro Events Autopublishers":

create new access level for events autopublishers

  • Click Save & Close.

Excellent. You now have the new Joomla user group and new Joomla access level for your JCal Pro events frontend auto-publishers. 

Now is a good time to set for the required "Autopublish" permission.


Step #3. Set the required "Autopublish" permission for the user group of your JCal Pro events frontend auto-publishers

  • Go to Components > JCal Pro to open JCal Pro control panel.
  • You will see the JCal Pro: Events default page. In the top-right corner, click the Options button:

Click Options

  • You will see the JCal Pro Configuration page.
  • Click the Permissions tab:

Click JCal Pro Permissions tab

  • Click the JCal Pro Evens Frontend Autopublishers tab:

click jcal pro events autopublishers tab

  • Locate the Create action in the Action column and select Allowed. This will allow your Joomla user in the "JCal Pro Events Frontend Autopublishers" group to log into your Joomla site frontend and create JCal Pro events.

09 click allowed for the create action

  • Locate the Autopublish action in the Action column and select Allowed. This will allow your Joomla user in the "JCal Pro Events Frontend Autopublishers" group to log into your Joomla site frontend and autopublish JCal Pro events:

click allowed for the autopublish action

  • Click Save & Close.

Well done! You are now ready to delegate the "Autopublish" permission frontend JCal Pro event autopublishing to your required Joomla user.


Step #4. Assign a required Joomla user as a JCal Pro events frontend auto-publisher

  • Go to Users > Manage and open up a required Joomla user for editing.
  • You will be taken to the "Users: Edit" screen with your selected Joomla user account details. Click the Assigned User Groups tab:

click the assigned user groups

  • You should see the checkmark in the Registered checkbox. Click on the JCal Pro Events Frontend Autopublishers checkbox:

click on the jcalpro events autopublishers checkbox

  • You will the checkmark in the box. Click Save & Close.

Good job! You now have your dedicated JCal Pro events frontend auto-publisher. 


Step #5. Create a frontend menu item for the JCal Pro events frontend auto-publishing 

For the frontend events auto-publishing, you need to create a frontend menu item by the "Add New Event" type.

  • Go to Menus > [your-menu-name] > "Add New Menu" Item.
  • You will see the "Menus: New Item" screen. Create a menu item by the JCal Pro > Add New Event type:

the add new event menu type

  • Click "Save" or "Save & Close".
  • In the right group of settings, change the Access parameter from the default "Public" to the "JCal Pre Events Frontend Autopublishers":

set access to jcalpro events autopublishers

  • Click "Save" of "Save & Close".

Excellent! Now is a good time to test the final result at work.


How to Test Your JCal Pro Events Frontend Auto-publishing

  • Log into your Joomla site frontend as the user of the "JCal Pro Events Frontend Autopublishers" group.
  • Click on the menu item you created in Step #5. For my demonstration, I will click the "Add New Event":

click add new event

  • You will see the "Add Event" JCal Pro frontend page:

create jcalpro event frontend page

  • Fill in the new event with some data for testing and click the "Save" button:

click the save button

  • You will see the "Event successfully submitted." message:

you will see event successfully submitted message

    • At the same time, the site superuser and a JCal Pro moderator (if you created one), will both receive an email notification:

a new event is ready for approval

  • Go ahead and check your events calendar at the frontend of your Joomla site. You should see the newly created event published.

 What's Next?

Save $1000's when you sign up to the Everything Club today! You' ll get access to all our extensions, templates, and Joomla training.


About the author

Alex is a based in England self-taught Microsoft Certified Professional. He enjoys learning Joomla and helping beginners and web site administrators make the most of it.