SlideShare ist ein Scribd-Unternehmen logo
1 von 49
Joomla 4 Custom Fields and
Workflow
By Tim Plummer
JoomlaDay Australia Brisbane 2019
August 3rd 2019
Workflow is a sequence of
steps a piece of content
passes from initiation to
completion.
Joomla 3 Content Workflow
Author Administrator
Content states in Joomla 3
What if we want more approval steps?
Author
Or maybe something more complex?
Can’t do that in Joomla 3
But let’s see what Joomla 4 can do
The Publishing Workflow
component is used to replace
static states (unpublished, published,
trashed and archived) with a more
generic approach.
This way you can easily
create a customized
workflow to manage your
articles within a component.
Terminology
State/Stage– published, unpublished, trashed, archived
Transitions– move one state to another
What if instead of content we built an app?
WorkflowForm
Create a leave request
Lets do it, using only core Joomla 4 features
Note that Joomla 4 is still in Alpha, so don’t
use on live sites yet.
Create a new category
Create a custom fields group
Just a reminder that
Custom fields were added
to core Joomla in version
3.7 (April 2017)
Make sure they are assigned to specific category
Create a custom fields
Create user groups
• Create a user group for the different people who
will be interacting with this workflow
Create a leave request
Enable Email Notifications
System->Manage->Plugins->Content – Joomla plugin
Add a new Workflow
Edit the Workflow Stages
Rename existing Stages if required
In our example, rename Unpublished to Rejected Rename
Published to Completed, and delete Trashed and Archive
Create a leave request
Add new workflow Stages
• Also set default (initial stage)
Create a leave request
Set up the Workflow Transitions
Create a leave request
Add your Transitions
• Give each a name, and decide which Stage can
transition to a specific stage. Also decide who can
move to next stage
Create a leave request
Transitions
• Each Workflow step should have a stage
Create a leave request
Check ACL Permissions
• Assign the appropriate permissions to the groups you created
• Content->Categories->Leave Application Form->Permissions
Article Permissions (com_content)
• Adjust article permissions for your new groups
(especially edit custom field value)
Now a menu item for front end
You only see this menu item if you are logged in
This looks too much like an article still
Override edit form
Copy /components/com_content/tmpl/form/edit.php to
/yourtemplate/html/com_content/form/edit.php and customise look for this category.
Note this is the geeking coding bit
that a regular Joomla user
wouldn’t be able to do. Maybe in
future there will be an easier way.
Create a My Approvals view
Note: You can adjust what columns you see on the List Layouts tab.
Note: We actually create this access level in a couple
of slides time.
My Leave Applications view
You could take this even further with an override and customise to include columns such as
workflow state
The view form looks pretty ordinary
Override the view form with alternate layout
• You can clean up and simply the view form with an alternate layout
Copy /components/com_content/tmpl/article/default.php to
/yourtemplate/html/com_content/article/default.php and rename as
leaveapplication.php
Edit as required, then assign that layout to your menu item
Another geeking coding bit that
a regular Joomla user wouldn’t
be able to do.
You can also use Access Levels (optional)
• If you want to further restrict access, use
access levels which you can apply to menu
item and category
Now let’s see it in action
• Employee creates a leave request. It goes to
manager approval
Create a leave request
Manager approval step
• When sent to manager, he can reject, approve,
or request more information
• Note if employee logs in, they don’t see the manager action transition states
Create a leave request
Payroll process step
• Payroll can now transition the state
Create a leave request
Leave request is now complete
There are no more transitional states for this workflow
Create a leave request
Limitations
• Can’t customise transition emails
• Everyone with “Execute Transition” permission will get the email
• Need coding skills to override form and view
• All the records are saved in com_content (Joomla articles)
We probably don’t have time for Questions
• Feel free to come and chat with me during one of the breaks or at the
social event. I’ll be around all weekend.
One more thing….
Most open source projects have a mascot
but Joomla doesn’t 
Disclaimer
This is not affiliated with or
endorsed by Open Source
Matters or the Joomla Project
Find out more at https://timplummer.com.au/jambo
The new unofficial
Joomla Mascot
My free gift to the Joomla Community
Tim Plummer
https://timplummer.com.au
@bfsurvey

Weitere ähnliche Inhalte

Was ist angesagt?

Joomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensionsJoomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Chanratha Sorn
 
Joomla! Templates - Sydney
Joomla! Templates - SydneyJoomla! Templates - Sydney
Joomla! Templates - Sydney
joomladex
 
Blogs ppt
Blogs pptBlogs ppt
Blogs ppt
home
 
Blogging with joomla
Blogging with joomlaBlogging with joomla
Blogging with joomla
Oslworkshop
 
Teatime - Intro to Blogs
Teatime - Intro to BlogsTeatime - Intro to Blogs
Teatime - Intro to Blogs
Helmut Doll
 

Was ist angesagt? (18)

Joomla SEO basics 2016
Joomla SEO basics 2016Joomla SEO basics 2016
Joomla SEO basics 2016
 
How to customise Joomla
How to customise JoomlaHow to customise Joomla
How to customise Joomla
 
WordPress Basics
WordPress BasicsWordPress Basics
WordPress Basics
 
Whats new in joomla 3.5 & whats coming in future
Whats new in joomla 3.5 & whats coming in futureWhats new in joomla 3.5 & whats coming in future
Whats new in joomla 3.5 & whats coming in future
 
Mautic landing page setup & case study
Mautic landing page setup & case studyMautic landing page setup & case study
Mautic landing page setup & case study
 
FileMaker Scripting Best Practices
FileMaker Scripting Best PracticesFileMaker Scripting Best Practices
FileMaker Scripting Best Practices
 
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco DingsCustom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
Custom Fields in Joomla - JoomlaDay UK 2016 - Marco Dings
 
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensionsJoomla basic-iii undersrtanding-installing-configuring-joomla-extensions
Joomla basic-iii undersrtanding-installing-configuring-joomla-extensions
 
Cross CMS plugin development using AWF
Cross CMS plugin development using AWFCross CMS plugin development using AWF
Cross CMS plugin development using AWF
 
Joomla! Templates - Sydney
Joomla! Templates - SydneyJoomla! Templates - Sydney
Joomla! Templates - Sydney
 
Blogging ppt 2014
Blogging ppt 2014Blogging ppt 2014
Blogging ppt 2014
 
Joomla! 1.6 the highlights
Joomla! 1.6 the highlightsJoomla! 1.6 the highlights
Joomla! 1.6 the highlights
 
Blogs ppt
Blogs pptBlogs ppt
Blogs ppt
 
Blogging with joomla
Blogging with joomlaBlogging with joomla
Blogging with joomla
 
Grow nextgen enhancements
Grow nextgen enhancementsGrow nextgen enhancements
Grow nextgen enhancements
 
Workingwith blogs
Workingwith blogsWorkingwith blogs
Workingwith blogs
 
Teatime - Intro to Blogs
Teatime - Intro to BlogsTeatime - Intro to Blogs
Teatime - Intro to Blogs
 
Justmeans power point
Justmeans power pointJustmeans power point
Justmeans power point
 

Ähnlich wie Joomla 4 custom fields and workflow

Joomla Workshop.pptx
Joomla Workshop.pptxJoomla Workshop.pptx
Joomla Workshop.pptx
Oslworkshop
 
Adm 201 study group session 1 user interface kathy c
Adm 201 study group session 1   user interface kathy cAdm 201 study group session 1   user interface kathy c
Adm 201 study group session 1 user interface kathy c
ovalisgroup
 
Adm 201 study group session 1 user interface kathy c
Adm 201 study group session 1   user interface kathy cAdm 201 study group session 1   user interface kathy c
Adm 201 study group session 1 user interface kathy c
ovalisgroup
 
Joomla Day India 2009 Business Logic With The Mvc
Joomla Day India 2009   Business Logic With The MvcJoomla Day India 2009   Business Logic With The Mvc
Joomla Day India 2009 Business Logic With The Mvc
Amit Kumar Singh
 

Ähnlich wie Joomla 4 custom fields and workflow (20)

Joomla Tutorial: Joomla 2.5 a first look
Joomla Tutorial: Joomla 2.5 a first lookJoomla Tutorial: Joomla 2.5 a first look
Joomla Tutorial: Joomla 2.5 a first look
 
The Joy of Subforms with Randy Carey
The Joy of Subforms with Randy CareyThe Joy of Subforms with Randy Carey
The Joy of Subforms with Randy Carey
 
Using advanced features in joomla
Using advanced features in joomlaUsing advanced features in joomla
Using advanced features in joomla
 
Joomla Workshop.pptx
Joomla Workshop.pptxJoomla Workshop.pptx
Joomla Workshop.pptx
 
Basics of Joomla!
Basics of Joomla! Basics of Joomla!
Basics of Joomla!
 
Develop Basic joomla! MVC component for version 3
Develop Basic joomla! MVC component for version 3Develop Basic joomla! MVC component for version 3
Develop Basic joomla! MVC component for version 3
 
Intro to Joomla!
Intro to Joomla!Intro to Joomla!
Intro to Joomla!
 
What’s new in joomla 3.7
What’s new in joomla 3.7What’s new in joomla 3.7
What’s new in joomla 3.7
 
Joomla 2019 Roadmap, Joomla 4 & Beyond by Robert Fairhead
Joomla 2019 Roadmap, Joomla 4 & Beyond by Robert FairheadJoomla 2019 Roadmap, Joomla 4 & Beyond by Robert Fairhead
Joomla 2019 Roadmap, Joomla 4 & Beyond by Robert Fairhead
 
Joomla 1.5 Quick Start
Joomla 1.5 Quick StartJoomla 1.5 Quick Start
Joomla 1.5 Quick Start
 
Social website
Social websiteSocial website
Social website
 
How to Build a Website using Joomla
How to Build a Website using JoomlaHow to Build a Website using Joomla
How to Build a Website using Joomla
 
How Joomla! builds a webpage (annotated)
How Joomla! builds a webpage (annotated)How Joomla! builds a webpage (annotated)
How Joomla! builds a webpage (annotated)
 
The benefits of using Git
The benefits of using GitThe benefits of using Git
The benefits of using Git
 
24 - Panorama Necto 14 administration - visualization & data discovery solution
24  - Panorama Necto 14 administration - visualization & data discovery solution24  - Panorama Necto 14 administration - visualization & data discovery solution
24 - Panorama Necto 14 administration - visualization & data discovery solution
 
Streamlining the Client's Workflows (in Joomla)
Streamlining the Client's Workflows (in Joomla)Streamlining the Client's Workflows (in Joomla)
Streamlining the Client's Workflows (in Joomla)
 
Workflow, Revisioning and Rules in Drupal
Workflow, Revisioning and Rules in DrupalWorkflow, Revisioning and Rules in Drupal
Workflow, Revisioning and Rules in Drupal
 
Adm 201 study group session 1 user interface kathy c
Adm 201 study group session 1   user interface kathy cAdm 201 study group session 1   user interface kathy c
Adm 201 study group session 1 user interface kathy c
 
Adm 201 study group session 1 user interface kathy c
Adm 201 study group session 1   user interface kathy cAdm 201 study group session 1   user interface kathy c
Adm 201 study group session 1 user interface kathy c
 
Joomla Day India 2009 Business Logic With The Mvc
Joomla Day India 2009   Business Logic With The MvcJoomla Day India 2009   Business Logic With The Mvc
Joomla Day India 2009 Business Logic With The Mvc
 

Mehr von Tim Plummer

Extension developer secrets - How to make money with Joomla
Extension developer secrets - How to make money with JoomlaExtension developer secrets - How to make money with Joomla
Extension developer secrets - How to make money with Joomla
Tim Plummer
 
Introduction to building joomla! components using FOF
Introduction to building joomla! components using FOFIntroduction to building joomla! components using FOF
Introduction to building joomla! components using FOF
Tim Plummer
 

Mehr von Tim Plummer (18)

How to fix a hacked site and harden June 2019
How to fix a hacked site and harden June 2019How to fix a hacked site and harden June 2019
How to fix a hacked site and harden June 2019
 
Lessons from the other side
Lessons from the other sideLessons from the other side
Lessons from the other side
 
Getting the most from your social media posts on facebook and instagram
Getting the most from your social media posts on facebook and instagramGetting the most from your social media posts on facebook and instagram
Getting the most from your social media posts on facebook and instagram
 
Tips for site builders and administrators
Tips for site builders and administratorsTips for site builders and administrators
Tips for site builders and administrators
 
Joomla 4.0 what's coming in future
Joomla 4.0   what's coming in futureJoomla 4.0   what's coming in future
Joomla 4.0 what's coming in future
 
Simplify your Joomla user registration form
Simplify your Joomla user registration formSimplify your Joomla user registration form
Simplify your Joomla user registration form
 
Maintaining a joomla website - Canberra
Maintaining a joomla website - CanberraMaintaining a joomla website - Canberra
Maintaining a joomla website - Canberra
 
What's new in joomla! 3.5 - 8th Nov 2015
What's new in joomla! 3.5 - 8th Nov 2015What's new in joomla! 3.5 - 8th Nov 2015
What's new in joomla! 3.5 - 8th Nov 2015
 
Growing your business by hiring an offshore staff member
Growing your business by hiring an offshore staff memberGrowing your business by hiring an offshore staff member
Growing your business by hiring an offshore staff member
 
Joomla SEO June 2015 - Sydney Joomla User Group
Joomla SEO June 2015 - Sydney Joomla User GroupJoomla SEO June 2015 - Sydney Joomla User Group
Joomla SEO June 2015 - Sydney Joomla User Group
 
State of play for Joomla - Nov 2014
State of play for Joomla - Nov 2014State of play for Joomla - Nov 2014
State of play for Joomla - Nov 2014
 
Extension developer secrets - How to make money with Joomla
Extension developer secrets - How to make money with JoomlaExtension developer secrets - How to make money with Joomla
Extension developer secrets - How to make money with Joomla
 
Rapid application development for WordPress using AWF
Rapid application development for WordPress using AWFRapid application development for WordPress using AWF
Rapid application development for WordPress using AWF
 
Introduction to building joomla! components using FOF
Introduction to building joomla! components using FOFIntroduction to building joomla! components using FOF
Introduction to building joomla! components using FOF
 
What's new in joomla! 3.3
What's new in joomla! 3.3What's new in joomla! 3.3
What's new in joomla! 3.3
 
Rapid application development using Akeeba FOF and Joomla 3.2
Rapid application development using Akeeba FOF and Joomla 3.2Rapid application development using Akeeba FOF and Joomla 3.2
Rapid application development using Akeeba FOF and Joomla 3.2
 
Joomla plugin & module develpment - Presented at Sydney JUG 09/04/2013
Joomla plugin & module develpment - Presented at Sydney JUG 09/04/2013Joomla plugin & module develpment - Presented at Sydney JUG 09/04/2013
Joomla plugin & module develpment - Presented at Sydney JUG 09/04/2013
 
How to create a joomla component from scratch
How to create a joomla component from scratchHow to create a joomla component from scratch
How to create a joomla component from scratch
 

Kürzlich hochgeladen

The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
VishalKumarJha10
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
%in Bahrain+277-882-255-28 abortion pills for sale in Bahrain
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdfintroduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
introduction-to-automotive Andoid os-csimmonds-ndctechtown-2021.pdf
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 18, Noida Call girls :8448380779 Model Escorts | 100% verified
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) SolutionIntroducing Microsoft’s new Enterprise Work Management (EWM) Solution
Introducing Microsoft’s new Enterprise Work Management (EWM) Solution
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
Exploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdfExploring the Best Video Editing App.pdf
Exploring the Best Video Editing App.pdf
 
Pharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodologyPharm-D Biostatistics and Research methodology
Pharm-D Biostatistics and Research methodology
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 

Joomla 4 custom fields and workflow

  • 1. Joomla 4 Custom Fields and Workflow By Tim Plummer JoomlaDay Australia Brisbane 2019 August 3rd 2019
  • 2. Workflow is a sequence of steps a piece of content passes from initiation to completion.
  • 3. Joomla 3 Content Workflow Author Administrator
  • 4. Content states in Joomla 3
  • 5. What if we want more approval steps? Author
  • 6. Or maybe something more complex?
  • 7. Can’t do that in Joomla 3 But let’s see what Joomla 4 can do
  • 8. The Publishing Workflow component is used to replace static states (unpublished, published, trashed and archived) with a more generic approach.
  • 9. This way you can easily create a customized workflow to manage your articles within a component.
  • 10. Terminology State/Stage– published, unpublished, trashed, archived Transitions– move one state to another
  • 11. What if instead of content we built an app? WorkflowForm Create a leave request
  • 12. Lets do it, using only core Joomla 4 features
  • 13. Note that Joomla 4 is still in Alpha, so don’t use on live sites yet.
  • 14. Create a new category
  • 15. Create a custom fields group
  • 16. Just a reminder that Custom fields were added to core Joomla in version 3.7 (April 2017)
  • 17. Make sure they are assigned to specific category Create a custom fields
  • 18. Create user groups • Create a user group for the different people who will be interacting with this workflow Create a leave request
  • 20. Add a new Workflow
  • 22. Rename existing Stages if required In our example, rename Unpublished to Rejected Rename Published to Completed, and delete Trashed and Archive Create a leave request
  • 23. Add new workflow Stages • Also set default (initial stage) Create a leave request
  • 24. Set up the Workflow Transitions Create a leave request
  • 25. Add your Transitions • Give each a name, and decide which Stage can transition to a specific stage. Also decide who can move to next stage Create a leave request
  • 26. Transitions • Each Workflow step should have a stage Create a leave request
  • 27. Check ACL Permissions • Assign the appropriate permissions to the groups you created • Content->Categories->Leave Application Form->Permissions
  • 28. Article Permissions (com_content) • Adjust article permissions for your new groups (especially edit custom field value)
  • 29. Now a menu item for front end
  • 30. You only see this menu item if you are logged in
  • 31. This looks too much like an article still
  • 32. Override edit form Copy /components/com_content/tmpl/form/edit.php to /yourtemplate/html/com_content/form/edit.php and customise look for this category. Note this is the geeking coding bit that a regular Joomla user wouldn’t be able to do. Maybe in future there will be an easier way.
  • 33. Create a My Approvals view Note: You can adjust what columns you see on the List Layouts tab. Note: We actually create this access level in a couple of slides time.
  • 34. My Leave Applications view You could take this even further with an override and customise to include columns such as workflow state
  • 35. The view form looks pretty ordinary
  • 36. Override the view form with alternate layout • You can clean up and simply the view form with an alternate layout Copy /components/com_content/tmpl/article/default.php to /yourtemplate/html/com_content/article/default.php and rename as leaveapplication.php Edit as required, then assign that layout to your menu item Another geeking coding bit that a regular Joomla user wouldn’t be able to do.
  • 37. You can also use Access Levels (optional) • If you want to further restrict access, use access levels which you can apply to menu item and category
  • 38. Now let’s see it in action • Employee creates a leave request. It goes to manager approval Create a leave request
  • 39.
  • 40. Manager approval step • When sent to manager, he can reject, approve, or request more information • Note if employee logs in, they don’t see the manager action transition states Create a leave request
  • 41. Payroll process step • Payroll can now transition the state Create a leave request
  • 42. Leave request is now complete There are no more transitional states for this workflow Create a leave request
  • 43. Limitations • Can’t customise transition emails • Everyone with “Execute Transition” permission will get the email • Need coding skills to override form and view • All the records are saved in com_content (Joomla articles)
  • 44. We probably don’t have time for Questions • Feel free to come and chat with me during one of the breaks or at the social event. I’ll be around all weekend.
  • 46. Most open source projects have a mascot but Joomla doesn’t 
  • 47. Disclaimer This is not affiliated with or endorsed by Open Source Matters or the Joomla Project
  • 48. Find out more at https://timplummer.com.au/jambo The new unofficial Joomla Mascot My free gift to the Joomla Community