Topic Closed
juergen
1.5K Posts
53.7K Downloads
16 Plugins
design, web development & visual effects

It would be nice if available section combos could be selected when a new page is created in page manager.
BTW the new Image Section is is currently listed blank - without a name.

I'd also love to have the possibility to create multi-level wrapped Section Combos using
editing_page::NewSectionLink but I know, that's not trivial.
 

5 years ago#7760

Josh S.
2K Posts
280K Downloads
16 Themes
18 Plugins
Good point, that dialog window should be updated to use the types available to new sections.
5 years ago#7761

juergen
1.5K Posts
53.7K Downloads
16 Plugins
design, web development & visual effects

Hi Josh,

I just updated my Section Combo ImageTextButton plugin  with the new "NewSections" hook.
Works well in the Manage Sections Editor but fails to pass the wrapper class when used in Page Manager as new page content type.
That's the error msg I get:

Notice (8)
Undefined index: class
    in: [GPEASY INSTALLATION PATH]/include/admin/admin_menu_new.php
    on line: 1962
    Request: /index.php/Admin_Menu?menu=gpmenu&gpreq=json&jsoncallback=jQuery111206031457459755263_1436994905945
    Method: POST
Show Backtrace
array( [0] => array( [file] => (string)/opt/lampp/htdocs/sites/gpEasy4.5rc1/include/admin/admin_menu_new.php [line] => (integer)1910 [function] => (string)CreateNew [class] => (string)admin_menu_new [object] => (string)object admin_menu_new [type] => (string)-> [args] => (string)array(0) ) [1] => array( [file] => (string)/opt/lampp/htdocs/sites/gpEasy4.5rc1/include/admin/admin_menu_new.php [line] => (integer)177 [function] => (string)NewFile [class] => (string)admin_menu_new [object] => (string)object admin_menu_new [type] => (string)-> [args] => (string)array(0) ) [2] => array( [file] => (string)/opt/lampp/htdocs/sites/gpEasy4.5rc1/include/tool/gpOutput.php [line] => (integer)514 [function] => (string)__construct [class] => (string)admin_menu_new [object] => (string)object admin_menu_new [type] => (string)-> [args] => (string)array(1) ) [3] => array( [file] => (string)/opt/lampp/htdocs/sites/gpEasy4.5rc1/include/admin/admin_display.php [line] => (integer)179 [function] => (string)ExecInfo [class] => (string)gpOutput [type] => (string):: [args] => (string)array(1) ) [4] => array( [file] => (string)/opt/lampp/htdocs/sites/gpEasy4.5rc1/include/admin/admin_display.php [line] => (integer)46 [function] => (string)RunAdminScript [class] => (string)admin_display [object] => (string)object admin_display [type] => (string)-> [args] => (string)array(0) ) )

Is it me or is it a bug?
Thx

 

edit:/ The wrapper section gets [object Window] set as class name this way.

Edited: 5 years ago#7838

Josh S.
2K Posts
280K Downloads
16 Themes
18 Plugins

Looks like a bug. This change should fix it

Sorry I didn't send you the details on the hook change before you hunted it down.

5 years ago#7839

juergen
1.5K Posts
53.7K Downloads
16 Plugins
design, web development & visual effects

Looks like a bug. This change should fix it

Yep, works - thx!

Sorry I didn't send you the details on the hook change before you hunted it down.

No problem, wasn't that hard to find out. I hope I will have a bit time to play with it the next days.

5 years ago#7840

juergen
1.5K Posts
53.7K Downloads
16 Plugins
design, web development & visual effects

FYI: I posted a simplistic sample plugin here that adds 3 new Section Combos.

Anyone interested in this topic - just download it and look how it works.

Edited: 5 years ago#7847

juergen
1.5K Posts
53.7K Downloads
16 Plugins
design, web development & visual effects

FYI: Here is an update of ImageTextButton to ver 0.3a (from 0.2a iz's just a few small fixes and better Responsive Image default values)

5 years ago#7886

Topic Closed

 

News

elFinder 2.1.50 in Upcoming Release
12/28/2019

A new release for Typesetter is in the works with a lot of improvements including the ... Read More

Typesetter 5.1
8/12/2017

Typesetter 5.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

More News

HH-Support

Company located in T├│rshavn, Faroe Islands. * Webpage Design * Consultant & Provider of a wide range of programs for visually impaired and dyslextics.

Find out more about our Provider Spotlight

Log In

  Register