O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Custom fields in Joomla March 2019

290 visualizações

Publicada em

Custom fields have been in Joomla for quite some time, but how often do you actually use them? In this talk, I'll demonstrate how I've taken advantage of custom fields recently. We'll then have the usual Q&A session where you can bring along all your questions.

Publicada em: Software
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Custom fields in Joomla March 2019

  1. 1. Custom Fields in Joomla Joomla User Group Sydney March 2019 Presented by Tim Plummer
  2. 2. History • Custom fields were added to core Joomla in version 3.7 (April 2017) • Originally based on third party extension DP Fields (Digital Peak)
  3. 3. Documentation • https://docs.joomla.org/Special:MyLanguage/J3.x:Adding_custom_fields • https://docs.joomla.org/J3.x:Adding_custom_fields/Overrides
  4. 4. Add additional fields to your content
  5. 5. Display those custom fields on front end
  6. 6. Step 1 – create Field Groups
  7. 7. Step 2 – create custom fields in field group
  8. 8. Make sure you set field group, and which category of articles this will appear in
  9. 9. Before Display (default setting)
  10. 10. After Title
  11. 11. After Display
  12. 12. Do not automatically display
  13. 13. Step 3 – use template override to format
  14. 14. Template override /templates/YOURTEMPLATE/html/com_content/article/default.php First load the helper and put custom fields into an array
  15. 15. Then display the fields Each has a label echo $myCustomFields['time']->label; and a value echo $myCustomFields['time']->rawvalue;
  16. 16. Add CSS to make it look nice
  17. 17. Questions