? No Code Attached Yet
avatar chmst
chmst
26 Mar 2021

Is your feature request related to a problem? Please describe.

Sample data plugins were made in J3 but now we have much changes in views / database / features.

Blog sample data have been updated, but this is not a valid
Now in J4 these plugins (blog sample data, multilanguage, testing) are not up to date and very hard to maintain.
Hard to maintain

  • manily because data and control structure are not separated properly
  • Texts are not all matching features and naming in J4
  • Coding standads have changed
  • and others

Describe the solution you'd like

A new concept is needed für plugins
Data must be checked and updated, for all views of the whole system
Restructuring should also contain the installation process - the menuItem "home", which then is in relation to mutilanguage data.

A good example of how plugins could be made is here #32744 (reply in thread)

Additional context

avatar chmst chmst - open - 26 Mar 2021
avatar joomla-cms-bot joomla-cms-bot - change - 26 Mar 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Mar 2021
avatar sandramay0905
sandramay0905 - comment - 9 Apr 2021

Now in J4 these plugins (blog sample data, multilanguage, testing)

@chmst can i please ask you where i can get this testing sample data?
I installed J4 using launch.joomla.org having blog sample data, multilanguage but no testing, also don't get testing by Extensions: Discover.

avatar infograf768
infograf768 - comment - 9 Apr 2021
avatar chmst
chmst - comment - 9 Apr 2021

@sandramay0905 if you clone the 4.0 dev branch of Joomla-cms, you get the plugin for testing sample data.

avatar sandramay0905
sandramay0905 - comment - 9 Apr 2021

if you clone the 4.0 dev branch

thanks for the answer, no idea what it mean. I was only looking if i haven't found a plugin.

avatar Bakual
Bakual - comment - 10 Apr 2021

Texts should actually be simple to adjust. Those are regular language strings.
Coding standards should also be simple.

The control/data thing is actually hard to do in a plugin. Back then I thought about defining the data in an XML file and then read by the plugin. But since some parts have to be defined dynamically (eg the category id), static files don't work well.

As for copying files like suggested in the other thread. Imho it's a bit pointles, but could of course be done easily.

avatar chmst chmst - change - 25 Aug 2022
Title
[4.X] Restructure plugins for sample data
Restructure plugins for sample data
avatar chmst chmst - edited - 25 Aug 2022
avatar chmst chmst - change - 25 Aug 2022
Labels Added: ? No Code Attached Yet
Removed: ?
avatar chmst chmst - labeled - 25 Aug 2022

Add a Comment

Login with GitHub to post a comment