Welcome, Guest
Username: Password: Remember me

TOPIC: Sandbox 3.9 / Roadmap to 4.0

Sandbox 3.9 / Roadmap to 4.0 30 Mar 2022 21:27 #15936

  • gremonasplet
  • gremonasplet's Avatar
  • Offline
  • New Member
  • Posts: 14
  • Thank you received: 1
  • Karma: 1
rnevins thank you for the tip... I will try it...

Yes I know for the overides (placing the template files that need to be customized in the templates/my-template/html directory) and have tried that and this is working.

rnevins in J-Cook you can have more views for the same table...Do you have a workaround for that in a component creator?
I would like to know more of your tips workarounds for CC :)

My coding skils are limited but with J-Cook I have done some very useful components that I don't know how to do it in CC...
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 01 Apr 2022 19:36 #15937

  • Maheto
  • Maheto's Avatar
  • Offline
  • New Member
  • Posts: 10
  • Thank you received: 1
  • Karma: 0
Hi Jocelyn & J-Cook community.
I am the quiet, fifth life member of J-Cook, who uses the platform both personally and professionally.
I would like to propose to you Jocelyn (and the community), if there is not an interested buyer for J-Cook pro, would you consider donating it to Joomla! itself?
If Joomla! was to embrace J-Cook and maintain it through it’s volunteer network, it could become part of the native Joomla! installation.
Consider this, as J-Cook pro is a component, imagine using it inside Joomla!!!
In the J-Cook road-map, one of the concepts that was proposed was the ability to connect other Joomla! components to J-Cook projects.
How good would that be??
So if J-Cook was native to Joomla!, in theory you could directly connect components that you have installed on your site, straight into J-Cook.
I love using Joomla! and J-Cook, combining these two powerful platforms would be a game changer.
Just putting it out there. B)
Last Edit: 01 Apr 2022 19:37 by Maheto.
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 02 Apr 2022 02:36 #15938

  • jonathanbell
  • jonathanbell's Avatar
  • Offline
  • Premium Member
  • Posts: 147
  • Thank you received: 5
  • Karma: 1
What a great idea.
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 06 May 2022 00:56 #15939

  • Dobinsons
  • Dobinsons's Avatar
  • Offline
  • Junior Member
  • Posts: 22
  • Thank you received: 2
  • Karma: 0
I think this is a great idea too !!
I use J-Cook for work and I have created some mega components, but the thought of telling the boss 'hey we have to rebuild all of our components from scratch', is definitely not something I am looking forward to.
A native component builder is something Joomla! is badly missing, currently there are no key differentiators to help Joomla! regain market share lost to other CMSs, this could be the standout feature that changes that point of view.
With Joomla!s lack of backwards compatibility, there is less incentive for new users to adopt Joomla! or seasoned users to continue using Joomla!, when they have to rebuild their websites every time there is a major update.
Yes you can upgrade through the normal process for small websites, but for large websites, it is not cost effective to continue rebuilding websites every 5 years.
With a native component builder, this transition between major versions would be much less daunting, and if maintained by Joomla!, it would be ready to go at the same time a major update is released.
My vote is with Maheto, if there is not a commercial buyer for J-Cook, please consider donating J-Cook to Joomla! ;)
Last Edit: 06 May 2022 04:28 by Dobinsons.
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 28 Jan 2023 09:10 #15946

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 277
  • Thank you received: 35
  • Karma: 22
Hi all,
I still work on the Joomla4 compatibility of my main component. There are less than 10 deprecated functions to replace in the component files.
Same thing with JDom Library.
Now I run with success the datas from my main table, but have a display problem. Jdom library is loaded, but Html call are "not found".
//Instance JDom
if (!isset($app->dom))
{
	jimport('jdom.dom');
	if (!class_exists('JDom'))
		jexit('JDom plugin is required');

	JDom::getInstance();	
}
No warning/error [maximun]


I will try to maintain JDom as Abstraction Layer Library,
Any Idea ?
Last Edit: 28 Jan 2023 09:11 by liubov.
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 28 Jan 2023 19:43 #15947

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Great job keeping this up man, can you maybe setup a github so I can work on it as well,
I have one huge component still not coverted to another framework and I am reluctant to do so.
Supporting the code in J4 would be a good bridge for me
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 29 Jan 2023 12:26 #15948

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 277
  • Thank you received: 35
  • Karma: 22
Happy to see I'am not alone. :woohoo:
1 - For the J-Cook MVC component, I 've just uploaded the Admin and Site part at the right place, in my J4 new site.
deleted install script.php file (will see proper installer later on)
and removed
<scriptfile>script.php</scriptfile>
in the com_xxx.xml file
=> Run the Install discover to reccord your component and build the component menu. J3.9 install xml works fine under J4.
See the post about PHP8 considerations to correct some deprecated functions.

libraries/jdom/dom.php:384
else if ($i !== null) 
        if (!empty($args[$i]) )

administrator/components/com_jxxxxx/classes/controller/item.php:240
if (empty($cid))

administrator/components/com_jxxxxx/classes/model/list.php:328
protected function belongsToMany($name, $foreignModelClass, $localKey, $foreignKey, $pivot, $pivotLocalKey, $pivotForeignKey, $selectFields = array(), $raw = false)
administrator/components/com_jxxxxx/helpers/menu.php:61
public static function addSubmenu($name, $view, $layout)

Then I ran the main menu of my component with Maxi debug mode and correct each deprecated function.
There are many replacement we can do with "Find in File" such as :
defined('_JEXEC') or die('Restricted access');
by
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\Factory;
in all the files using JFactory ... Replace JFactory => Factory
$app = Factory::getApplication();
It's a simple example but I think there are no difficulties to upgrade J-Cook component files to J4, step by step, when running the component.
The main things are here => code-de-joomla-3-vers-joomla-4

For JDom, it is already on GitHub JDom Joomla Library
It would be great if Giro could upgrade it for J4, but I think he left JCook community :(
It's impossible to push all my environnement on Git because you need to have made all the previous change to run the component.
I don't know how to do with JDom bug.
Last Edit: 29 Jan 2023 17:42 by liubov.
The administrator has disabled public write access.
The following user(s) said Thank You: jonathanbell

Sandbox 3.9 / Roadmap to 4.0 29 Jan 2023 18:39 #15949

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Great, I think I am going to create a small component to see if I can get that running under J4
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 30 Jan 2023 07:30 #15950

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 277
  • Thank you received: 35
  • Karma: 22
OK, You still have a J-Cook valid account ?
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 30 Jan 2023 08:58 #15951

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
Sure thing, I have a lifetime :)
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 01 Feb 2023 00:10 #15952

  • jonathanbell
  • jonathanbell's Avatar
  • Offline
  • Premium Member
  • Posts: 147
  • Thank you received: 5
  • Karma: 1
I so hope someone can iron out all the bugs to transition to Joomla 4. I have a pretty major product with multiple components needing upgrading.
Without the upgrade I will likely have to shut down the product.
Being only a part time amature scripter I get assistance as needed.
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 01 Feb 2023 07:52 #15953

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 277
  • Thank you received: 35
  • Karma: 22
Hi Jonathan,
I exchange a lot with Giro who write part of JDom with Jocelin.
My first idea was to upgrade both Component and JDom because correcting the deprecated functions is not so difficult, running the component step by step.
But Giro tells me that we should give up JDom that is heavy and slow down components.
That way seems impossible (i think) because the J-Cook system is too dependant with JDom where you find complexe calls everywhere, into the Views, the Models/Fields Object, the Tmpl Views, etc...
It's why I think the easy way was to :
1 - Upgrade component code for J4 (Done for my main Table)
2 - Try to run correctly JDom Instance under J4 (It doesn't work for the moment)
Tell me your opinion.
Last Edit: 01 Feb 2023 07:54 by liubov.
The administrator has disabled public write access.
The following user(s) said Thank You: jonathanbell

Sandbox 3.9 / Roadmap to 4.0 01 Feb 2023 08:02 #15954

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
I have forked JDOM here
github.com/Romkabouter/JDom

I will push updates when I have them,
Last Edit: 01 Feb 2023 08:03 by Romkabouter.
The administrator has disabled public write access.
The following user(s) said Thank You: jonathanbell

Sandbox 3.9 / Roadmap to 4.0 01 Feb 2023 12:11 #15955

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 277
  • Thank you received: 35
  • Karma: 22
Happy to read this ! We will win the J4 fight all together :)
The administrator has disabled public write access.

Sandbox 3.9 / Roadmap to 4.0 01 Feb 2023 21:59 #15956

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3710
  • Thank you received: 984
  • Karma: 140
Hi Guys, its been a soooo very long time.

I can see, you're very ennoyed with JDom, and you are right.
JDom has been build long time ago for abstracting different versions of Joomla and most of all, to bring many helpers classes only usefull for the developper.
But it is awful in loading time. Was a wrong choice.
You must avoid it for lists if you come along huge tables.
Forms and Flys are ok, but JDom is now obselete and must be deprecated.

Guess you're asking for the news about me.
I am about to close the service.
I gaved up long time ago, but kept the service open and free for all.

If you build up an interresting involved team, then I can giveaway (for free) all my source code, with the V4 partially working.
The V4 is JDom free. Totally.
Once a time I was very motivated with V4 and so the work has been started very clean. Brand new cook. "Less is more" was the idea.

But I can't do much to help you cause I am involved in another busy project, on top of a employed work, and a family life. All at once.
It would be amazing to meet in real life for those interrested in this continuation, I could eventually host some transmission sessions. @ Brittany, France.

May it sounds like the very bad news of the day, but could also be seen as amazing opportunity for some of you.
Those who have been using Cook are the ones who desserve the inheritance of the project. It is not for sale.
If a team want to fork it and do commercial, that's great, I'll have no regards about it, while it keep a friendly community backing each others.

The forum can stay online, but I would need to archive and keep the production database (with customers projects) for privacy policies reasons.
Coding is now a piece of cake
The administrator has disabled public write access.
Time to create page: 0.138 seconds

Get Started