Topic Closed
rivo
12 Posts

Haloo :-)

It bossible to add predefined classes/attributes list to section inline editor - manage sections - options. Maybe need create some admin page, where become of define classes/adributes for admins. My admins dont remeber list of classeswhat  i made for different section layout..

it is verry useful if id bossible.

thancs

Rif

5 years ago#7858

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

We discussed this topic some 2 years ago here which lead to the current Section Options dialog.

Unfortunately there is yet no solution for predefined classes but with gpEasy 4.5b3+ we have a javascript event triggered when Section Options are loaded (see this topic).

So it's now basically possible to get such functionality "injected" using JS/jQuery.
If you want to try it yourself you might want to download the SectionHelper_0_1a.zip plugin and see what it does.
 

5 years ago#7866

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

Ok, forget my last post. This feature was long overdue, so I decided to code it, yeah ;-)

Here is SelectableClasses_1_0_b1.zip
Download, unzip into your /addons directory and install it via "Manage Plugins".

 Note: This plugin requires gpEasy 4.5rc1 or newer! 

It's a beta. I plan to release it with gpEasy 4.5 final.
Any feedback is much appreciated!

 

 

... and some Screenshots:

Manage Selectable Classes

… and use them in Section Attributes

Edited: 5 years ago#7867

juergen
1.5K Posts
55.3K Downloads
16 Plugins
design, web development & visual effects
Just released: Selectable Classes 1.0  (for gpEasy 4.5+)
5 years ago#7910

rivo
12 Posts

Wou :-) verry useful ... thancs

I writed menu plugin for page sections with inline editor for selectigng different menu layouts and formats

Unfortunately i dont find simplest way to manipulate menu levels, page indexes and sorce menus,
because of that this plugin need some changes in core file include/tools/gpOutput.php

Read readmy file in zip file.

rif-Menu_Format_Layouts.zip

Some pictures (sry this is a animation gif-s i  check why its dont work ... anyway thear is images zip file)


Edited: 5 years ago#7933

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

Ey, Rif - that's impressive. Menu Sections, wonderful!

For the menu icons:

NB! {$pageicons} must by in theme_dir/SrcGfx/img/pageicons/name.pageindexsufix.png ... future we add fileuploader to upload and manage files in plugin data dir

Before you start coding a custom file manager, why not use /data/_uploaded/MenuIcons

This creates a "MenuIcons" directory in  /data/_uploaded:

global $dataDir;
gpFiles::CheckDir($dataDir.'/data/_uploaded/MenuIcons');

 

Josh - can you add Rif's changes to gpOutput.php - or maybe filters to hook into Menu Rendering?

5 years ago#7934

rivo
12 Posts

Sry, I forget write this ...
Script first check  /data/uploaded/image/pageicons/
And if thear not a pageicon file then it check on gpEasy cheme folder.

Sry, thear was small pug in php file :-) must by  /data/_uploaded/image/pageicons/ ... I updated the zip file

Template folder is better if u needed change gpEasy cheme and want diferent pageicons per cheme.
Mayby in future i add chemename to filepart ex. /chemename. pageidexsufix.png

I want to place all the needed files in one place (actually in plugin data folder) for download all menu layouts and upload/import to another page and use them thear.

I dont know, is possible integrated uploadfilemanager point to another folder (eg. /data/_addondata/plugin/data) and open it via additional link? 

5 years ago#7937

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

I want to place all the needed files in one place (actually in plugin data folder) for download all menu layouts and upload/import to another page and use them thear.

:-) I know what you mean. I'm currently working on a "Template Manager". My stored templates also belong to a theme and may depend on plugins. But for easy handling I decided to put the data in /data/_uploaded/Templates/123xyz. Quite similar cases.

Mind that, for good security reasons, gpFinder will not allow you to upload/manage .php files.

Therefore I decided to store all addon data in JSON format instead of using gpFiles::SaveArray()

$contents = json_encode($config);
$saved = gpFiles::Save($file,$contents);

That should be safe to use in /data/_uploaded/... and can be managed via gpFinder.
Josh already added the .json file extension to be allowed by default.

I dont know, is possible integrated uploadfilemanager point to another folder (eg. /data/_addondata/plugin/data) and open it via additional link? 

Maybe - but I wouldn't try to. IMO not every admin should have access to parts of the filesystem where executable php code resides.

5 years ago#7938

feniweb
298 Posts

Wow, thanks for this great plugin Rivo.
I'll test it out, and let them know.

 

Possibly it would be better to open a special section.

thanks

Edited: 5 years ago#7939

rivo
12 Posts

no, no Juergen ... i mean js, images or css files, not a php files. I mean to store backup on all my plugin data (menu layouts) inside in my plugin data folder, to  backed up on zip file and download it. After that in plugin administration area to upload zip file, unpakced it and ... voila, all backed data is thear.  

Mayby before save a unpacked menuplugin data, gettig up some dialog  to select  menulayouts what user want to add existig menulayouts or overwrite all in plugin admin area.

Thear is no secure files in directoryes by each menulayout. Each menulayout item have directory to store css, image or js files and i want  filemanager to  point only these folders.

Sry my english, iam estonian and my eglish is verry bad. ;.)

 

5 years ago#7941

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

Possibly it would be better to open a special section.

Rif requested a core feature code change. Unfortunately the 4.5 beta has just ended a few days ago.

But you're right. Discussion about plugin/features should be continued in a new topic in the Plugins Forum

 

Edited: 5 years ago#7942

rivo
12 Posts

Thanks for all :-)

 

http://gpeasy.com/Forum?show=t1899&t=91

Edited: 5 years ago#7944

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

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register