CrOsborne Blog

RogerCO's TechieTalk

Musings from a life working with cameras,
electronics, computers and code

TPL_PROTOSTAR_TOGGLE_MENU
  • Welcome
  • Blog Home
  • About
  • Links
  • CrOsborne

Off site links and target hinting

Expired

It often annoys me (slightly) that many (most) sites don't provide any hint to the user if a link is set to open in a new window/tab or the same one.

I'm aware that there is a class of purists who believe that the end user should be always king and they should decide whether or not a link should open in the same tab or a fresh one.

There are two problems with this.

Read more … Off site links and target hinting

Creating Joomla Tags Programatically

Expired

Finally I have discovered how to do this satisfactorily.

My requirement is to be able to create some tags - for example when installing xbCulture Components or when converting xbRefs Text References to Tag References in xbRefMan. These tags need to have a description and parent set as well as just a title so the simple function in TagsHelper::createTagsFromField(array()) does not cut the mustard. It only lets you create simple tags with just a title, and has a weird syntax whereby the title string has to be prefixed with #new# 

Tags:
Joomla:
j3

Read more … Creating Joomla Tags Programatically

Joomla Package Install Scripts

Expired

I was confused of exactly what order various functions of the install/unintsall script run with a package.

This is what my tests show (Joomla 3.10)

Assuming a package with a number of elements (plugins in this case)

On install the following order of functions:

  1. Package preflight()
  2. plugin1 preflight()
  3. plugin1 install()
  4. plugin1 postflight()
  5. plugin2 preflight()
  6. plugin2 install()
  7. plugin2 postflight()
  8. ... and so on for any other extensions in the order that they appear in the package xml
  9. Package install()
  10. Package postflight()

So the package install() and postflight() are run after all the extensions have installed

The extensions can generate messages $app->enqueueMessage() which will display, but any html output echo'd in their functions will not be shown (unless passed to the message queue

For a given message type the messages will appear in one block in the order in which they are generated.

 

For uninstall the following order applies

  1. Package uninstall()
  2. plugin1 preflight()
  3. plugin1 uninstall()
  4. plugin2 preflight()
  5. plugin2 uninstall()

Note that Package preflight() does not run, but the extension preflight()s do.

None of the postflights() run

The extension order is again as found in the package xml file

With two components it goes like this

Install:

  1. pkg preflight install
  2. people preflight install
  3. people install
  4. people postflight install
  5. book preflight install
  6. book install
  7. book postflight install
  8. pkg install
  9. pkg postflight install
 
Update:
  1. pkg preflight update
  2. people preflight update
  3. people update
  4. people postflight update
  5. book preflight update
  6. book update
  7. book postflight update
  8. pkg update
  9. pkg postflight update
 
Uninstall:
  1. pkg uninstall
  2. people uninstall
  3. book uninstall
 
In this case no preflights run at all, and again postflight doesn't run

Joomla Form Field Showon quirk

Expired

Joomla Form Field items have a useful attribute "showon" which allows you to automatically only display the field if certain other field conditions you specify are met. This can greatly reduce clutter in the form as irrelevant elements remain hidden until they need to be set.

For a simple example you might have enable categories for a component, and also want to set a default category if categories are enabled.

Tags:
Joomla:
Joomla
Quirks:
quirks

Read more … Joomla Form Field Showon quirk

  1. A Note on Browser Compatibility
  2. Spacing in Joomla Toolbar

Page 6 of 12

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  1. You are here:  
  2. Home
  • April 2025
    • Joomla subForm Field improvements
  • January 2025
    • J5 stupid default password restrictions
  • December 2024
    • Pimping up Joomla/CMS/Language/Text
  • November 2024
    • Assigning Tags to Items Programatically
  • July 2024
    • StarLiteV First Impressions
  • June 2024
    • Creating Tags Programatically in J5
    • Waiting For StarLabs like Waiting fort Godot
  • March 2024
    • Link Hinting Update
  • August 2023
    • Getting Rid of those pesky 0000-00-00 Dates
  • February 2023
    • Modals with double backdrops - Solved!
  • December 2022
    • A Preview facility for Joomla Component Admin pages
    • Link Hinting Revisited
  • November 2022
    • J3->4 row-fluid and row
    • Joomla Cats'n'Tags
    • Joomla Tag Groups
  • October 2022
    • Joomla extendWhere() issue
  • June 2022
    • of Luminance, Lightness and Brightness
  • May 2022
    • Height of Modal Popup in Component
    • Improving link to anchor action
    • Uninstalling Overlapping Packages
  • March 2022
    • Creating Joomla Tags Programatically
    • Off site links and target hinting
  • February 2022
    • Joomla Package Install Scripts
  • September 2021
    • Joomla Form Field Showon quirk
  • April 2021
    • A Note on Browser Compatibility
  • March 2021
    • Spacing in Joomla Toolbar
  • February 2021
    • Points on the Scale
  • November 2020
    • Using Tags in a Component
  • September 2020
    • Using Joomla Subforms for Many-Many link tables
  • August 2020
    • Developing new Joomla Components
  • May 2020
    • Where did that year go
  • June 2019
    • TruncString Joomla bug
  • January 2019
    • of Tags in Joomla
    • Tags Layout for Article Info
  • June 2018
    • PD-Addon Component development
  • March 2018
    • Min and Max responsive font size CSS
  • June 2015
    • Anything over a mouthful is wasted
  • November 2014
    • A Rant at Apple
  • October 2014
    • HTML File Input Formatting
  • September 2014
    • Wireless EEG using Emotiv and EasyCap
  • August 2014
    • Displaying 3D Stereo Images
    • Facebook Events on a Joomla Site
    • From Slide Rule to Calculator
    • Rainy Sunday Timezones
  • January 2011
    • History
    • Welcome to Roger's Techie Talk
  • Joomla
  • php
  • coding
  • j5
  • VB.NET
  • override
  • template
  • admin
  • Joomla subForm Field improvements
  • J5 stupid default password restrictions
  • Pimping up Joomla/CMS/Language/Text
  • Assigning Tags to Items Programatically
  • StarLiteV First Impressions
  • Waiting For StarLabs like Waiting fort Godot
  • Joomla! Community
  • Joomla! Leadership Blog
  • MacRumours
  • Stack Overflow
  • Joomla Tag Groups
  • Welcome to Roger's Techie Talk
  • Facebook Events on a Joomla Site
  • Anything over a mouthful is wasted
  • HTML File Input Formatting
My Blog

Back to Top

© 2025 CrOsborne Blog