33 Posts
Marco Heinski
1 year ago
17
Topic

Hy Seblod Team

Joomla 5.0 is expected to be released in approximately 3 weeks. How is the development of Seblod 5? Could you give us some information on what you are thinking about for this new version of Joomla in relation to Seblod? Is the adaptation more complex than from version 3 to version 4? Sorry for the question but we need to plan for what's coming.

Thanks

Get a Book for SEBLOD
10 Posts
step-di
1 year ago
12
Level 1

I was able to run seblod 4.1.1 on joomla 5.0.0. There were errors, but I was able to fix. I'm starting to develop a new website on J5. And while I'm developing, time will pass and the developers of seblod will release a working version. I can tell everyone the details of how I fixed it, if necessary )

9 Posts
daandres
1 year ago
11
Level 2

Hello @step-di, 

that would be great if you share your fixes. With that it will be possible for users to upgrade to J5 without waiting on official Seblod 5 version. 

Thank you

10 Posts
step-di
1 year ago
10
Level 3

Joomla 5 with Seblod 4

https://docs.google.com/document/d/1C-sT7XuP5UAeKX2NW3-GccEkTtk58M4LAPsnWJOg9yk/edit

9 Posts
daandres
1 year ago
0
Level 4

Great. Thanks. 

30 Posts
phil03
1 year ago
0
Level 4

Great. Thanks.

30 Posts
phil03
1 year ago
7
Level 4

Hello @step-di,

After testing, it doesn't work properly for the cckactionsdropdown solution.
This doesn't work for addcustomlinkitem which doesn't exist in JHtmlActionsDropdown.
Just put a dot in front of all cckactionsdropdown in the files by default.
The Helper will take the cckactionsdropdown.php file and its methods.

Regard's

10 Posts
step-di
1 year ago
6
Level 5

strange. but everything worked for me, the drop-down lists for selection are displayed and work. Your suggestion about inserting dots is not entirely clear. Please provide an example of the code

30 Posts
phil03
1 year ago
5
Level 6

Hi, 

The contents of /views/fields/tmpl/default.php.
I also started modifying namespaces for the future.

The HTMHelper doc provides in this case a dot in front of the parameter.

Regard's


◆ _()
static _ (string $key, 

 $methodArgs 
)

staticfinal  
Class loader method
Additional arguments may be supplied and are passed to the sub-class. Additional include paths are also able to be specified for third-party use
Paramètresstring$keyThe name of helper method to load, (prefix).(class).function prefix and class are optional and can be used to load custom html helpers. array$methodArgsThe arguments to pass forward to the method being calledRenvoiemixed Result of HTMLHelper::call($function, $args)


		Helper_Admin::addFolderClass( $css, $item->folder, $item->folder_color, $item->folder_colorchar );
		?>
          <tr class="row<?php echo $i % 2; ?>">
            <td class="center hidden-phone"><?php Helper_Display::quickSlideTo( 'pagination-bottom', $i + 1 ); ?></td>
            <td class="center hidden-phone no-pad"><?php Helper_Display::quickCheckbox( $i, $item); ?></td>
            <td width="30px" class="center hidden-phone dropdown-col"><?php
            	if ( $item->id != 33 ) {
						HTMLHelper::_( '.cckactionsdropdown.addCustomLinkItem', Text::_( 'COM_CCK_PREVIEW_THIS_FIELD' ), 'eye', 'cb_link'.$i, $link2, 'cbox' );					
						echo HTMLHelper::_( '.cckactionsdropdown.render',$this->escape( $item->title ) );
            	}
            	?></td>

10 Posts
step-di
1 year ago
4
Level 7

HTMLHelper::_( '.cckactionsdropdown.addCustomLinkItem',  don't work fo me

error 500 cckactionsdropdown not found. 

my version of the code remains working, without making the interface something flawed, exact match as in Joomla 4.4.0

in my file administrator\components\com_cck\views\fields\tmpl\default.php : if ( $item->id != 33 ) { JHtmlActionsDropdown::addCustomItem( JText::_( 'COM_CCK_PREVIEW_THIS_FIELD' ), 'eye', 'cb_link'.$i, $link2, 'cbox' ); echo JHtmlActionsDropdown::render( $this->escape( $item->title ) ); }
30 Posts
phil03
1 year ago
0
Level 8

On this line in the original version it's addCustomLinkItem and not addCustomItem exactly like in the version of my site in Joomla4 and Seblod 4.1.1.

30 Posts
phil03
1 year ago
2
Level 8

Here the updated code in libraries/cck/joomla/html/cckactionsdropdown.php

/**
* @version 			SEBLOD 3.x Core ~ $Id: cckactiondropdown.php sebastienheraud $
* @package			SEBLOD (App Builder & CCK) // SEBLOD nano (Form Builder)
* @url				https://www.seblod.com
* @editor			Octopoos - www.octopoos.com
* @copyright		Copyright (C) 2009 - 2018 SEBLOD. All Rights Reserved.
* @license 			GNU General Public License version 2 or later; see _LICENSE.php
**/


\defined( '_JEXEC' ) or die;


use Joomla\CMS\HTML\Helpers\ActionsDropdown;


// CckActionsDropdown
abstract class Cckactionsdropdown extends ActionsDropdown
{
	// addCustomLinkItem
	public static function addCustomLinkItem( $label, $icon = '', $id = '', $link = '', $class = '', $attr = '' )
	{
		$attr	=	$attr ? ' '.$attr : '';
		$class	=	$class ? ' class="'.$class.'"' : '';


		static::$dropDownList[] = '<li>'
			. '<a href = "'.$link.'"'.$class.$attr.'>'
			. ($icon ? '<span class="icon-' . $icon . '"></span>' : '')
			. $label
			. '</a>'
			. '</li>';
	}



10 Posts
step-di
1 year ago
1
Level 9

I realized what was working wrong. Thank you very much for the proposed revision. Now everything is perfect.

30 Posts
phil03
1 year ago
0
Level 10

You're welcome, thanks for the second solution for Toolbar that I was looking for.

33 Posts
justintime
1 year ago
1
Level 1

Been following this with interest.  I have made all the amends with J5.0.0 and S4.1.1 but still get a "Call to undefined method Joomla\CMS\HTML\Helpers\ActionsDropdown::addCustomLinkItem()" error message.

10 Posts
step-di
11 months ago
0
Level 2

use patch J5+S4.1.1.zip

https://z-download.ru/J5+S4.1.1.zip

if J5 is updated, then this file will need to be overwritten

libraries\src\Document\RawDocument.php

11 months ago
1
Level 1

Hi all,

Thank you for helping each others, and for working on the Joomla! 5.x support/issues.
We've just commited a few J! 5.x fixes on GitHub, are working a few more things, and should be able to release a package by next Friday.

Saba

33 Posts
Marco Heinski
11 months ago
0
Level 2

Great news at the end of the year.
Congratulations!

Get a Book for SEBLOD