Topic Closed
fly06
263 Posts
18.1K Downloads
1 Themes
8 Plugins

Hello,

I can create a new section of type 'Section Wrapper' but once it's done, I cannot see any contextual menu for this section.

The html code is there:

<div class="GPAREA filetype-wrapper_section  editable_area" data-gp-section="2" id="ExtraEditArea3" data-gp-attrs="{"class":""}"><div class="gpclear"></div></div>

The Chrome dev tool tells me that the div block is 720px wide and 15px high.

Any idea?

 

 

 

Edited: 4 years ago#8194

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

I cannot see any contextual menu for this section

Interesting. Yeah, section wrappers are a bit different: they don't actually have an editor the way the text content area does.

To modify the contents of a section wrapper, click on the "Manage Sections" link which will bring up the section manager. As you know, within this interface, you can add/remove/move sections around the page. And here's where the section wrappers come in handy. You can move text/image/other sections into section wrappers.

4 years ago#8199

fly06
263 Posts
18.1K Downloads
1 Themes
8 Plugins

Got it, thanks!

So a section wrapper is a kind new section type (a composite) created on-the-fly from basic section types.

Would it make sense to be able to:

  • Give a name to a section wrapper (i.e. Page Header)
  • To make it available to other pages in the Add tab

?

 

 

4 years ago#8201

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

Give a name to a section wrapper

In gpEasy 4.6, you can name any section. Just double click the label in the section manager.

To make it available to other pages in the Add tab

Hmm, maybe I'm not following you. The "Section Wrapper" type should be under the "Add" tab for all pages.

4 years ago#8205

juergen
1.4K Posts
51.4K Downloads
16 Plugins
design, web development & visual effects
See this sample plugin if you want to add own Section Combos to your site.
(Section Combos are one or more Sections within a Wrapper Section)
4 years ago#8209

fly06
263 Posts
18.1K Downloads
1 Themes
8 Plugins

Hmm, maybe I'm not following you. The "Section Wrapper" type should be under the "Add" tab for all pages.

Sorry, I was not clear.

To express this differently, I'd like to have the possibility to copy a section wrapper non only in the same page but in any other pages.

The objective is to avoid the burden of having to re-create the same section wrappers in many different pages.

4 years ago#8210

juergen
1.4K Posts
51.4K Downloads
16 Plugins
design, web development & visual effects

I'd like to have the possibility to copy a section wrapper non only in the same page but in any other pages.

I coded a "Template Manager" this summer which can do exactly what you describe. It's not finished yet and I'm uncertain if I will ever finish it.
It still has some bugs and the drag'n' drop positioning of the loaded template is still a mess.
I fear it will not work with gpEasy 4.6b but if you wish, give it a go with 4.5.

TemplateManager_0_1a.zip

 



 

4 years ago#8211

fly06
263 Posts
18.1K Downloads
1 Themes
8 Plugins

Hi Juergen,

Thanks a lot for the plugin, it looks great.

I will definitely give it a try.

However I think I solved my problem by using the page copying feature already available in the Page Manager.

F.

4 years ago#8212

juergen
1.4K Posts
51.4K Downloads
16 Plugins
design, web development & visual effects

Just a few explanations what the above mentioned Template Manager does:

When logged-in, a Template Repository docker will show on the right edge of the browser window.
By default only the current page section structure including Wrapper Sections is displayed in form of an iconized tree.

Every icon has a callout when hovered which shows a "save template" icon (and an "edit" icon it it's an editable section)

When "save template" is clicked, a thumbnail of the section (including sub-sections in case of a wrapper) will be generated and this thumbnail will be attached to the Template Repository. The template, which contains the sections and their content, will be saved in JSON format into the newly created /data/_uploaded/templates directory. I chose to store them there so they can be managed via gpEasy's file manager "finder". (If templates will be uploaded via finder, Template Manager will automatically import them into the Template Repository docker, templated deleted via finder will automatically be removed)

In the Template Repository docker, stored templates can be sorted via drag'n'drop, deleted and re-labeled.

From the repository templates can also be loaded by clicking the "Load" button. Doing so will *append* the template to the current page and may be moved on the page to a different position using drag'n'drop. For this purpose, temporary "drop zones" are displayed that act as drop-targets. Once the loaded template is moved to it's designated position, clicking the check-mark-icon on the top-right of the loaded element confirms the completes the loading action. You may also click the cancel icon which will break the laoding process.

In fact, the drag'n'drop positioning does not work satisfying and I will not keep it in this form. Furthermore, the Template Repository docker does not provide the same functionality as the "Manage Sections" Editor pop-up does, thus it clutters the already a bit complicated section management UI. For this reasons I'm uncertain if I will continue work on this plugin. But it maybe comprises some elements worth to be considered for further work on section/page templates.

 

edit:/ use it with gpEasy 4.5 only and do not use in production, it's not quite mature! With gpdebug enabled Template Manager will be quite verbose about it's actions via message area.

Edited: 4 years ago#8217

Topic Closed

 

News

Typesetter 5.1
8/12/2017

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

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... 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