Frontend editing of modules documentation

Everything to do with Joomla! 3.x templates and templating.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
iojens
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Apr 29, 2013 12:23 pm

Frontend editing of modules documentation

Post by iojens » Fri Feb 27, 2015 11:27 am

Hello,

I'm wondering if there is any kind of documentation what is needed in a template to support the frontend editing of modules (make the mouse-over edit icons appear). The protostar template supports it and it is a nice feature. I could start modifying that template, however I very much prefer creating my own template from scatch.

I modified the frontediting.js and frontediting.css files (media/system) slightly and it would show up as well on the beez3 template (even without these modification the <a class="btn jmodedit"...> element gets created).

Is there a certain naming convention needed? I created a very simple template and I got some strange behaviour - e.g. in one module position that would work for a specific module type other modules types wouldn't work. The module typ that would work in one position wouldn't work in other module positions.

Any clues would be highly appreciated (The javascript console didn't show any errors and I load bootstrap framework - I'm running J 3.4).

Thank you very much

jcms
I've been banned!
Posts: 2233
Joined: Wed Nov 19, 2014 9:23 am

Re: Frontend editing of modules documentation

Post by jcms » Sat Feb 28, 2015 3:10 pm

not clear.... you want to edit one template or one module?

iojens
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Apr 29, 2013 12:23 pm

Re: Frontend editing of modules documentation

Post by iojens » Mon Mar 02, 2015 4:11 pm

I found the solution - but if someone else might run into the same problem I'll try to rephrase it.

In J 3.4 it's possible to directly edit modules in the front end. If the user has the required permissions a nice little 'edit icon' appears if you hover over the module positions (+ you need to have it enabled in the backend). It encapsulates each module with something similar to

'<div class=".. jmoddiv" data-jmodediturl....>..</div>'

This is a very convinient feature. However I had problems to make this feature work in my templates.

My problem was that I loaded every module like this (since I usually want to avoid any dom elements I don't need for my styling)

<jdoc:include type="modules" name="slideshow" style="none" />

But as a result the needed markup will be missing. However if you load your modules with a module chrome style such as 'xhtml' it works fine and the needed markup gets generated.

<jdoc:include type="modules" name="slideshow" style="xhtml" />

nwl
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Thu Feb 09, 2012 11:27 am
Location: Wakanda
Contact:

Re: Frontend editing of modules documentation

Post by nwl » Thu Mar 05, 2015 1:15 am

Hi iojens,

I have similar problem in frontend module editing page (Joomla 3.4) , accordion not working and no btn-groups ...

A documentation could help :)

Radix__
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Sat Jul 04, 2009 1:44 am

Re: Frontend editing of modules documentation

Post by Radix__ » Fri Apr 03, 2015 11:46 am

I'm at a loss still why I don't have the module Edit buttons appear.

I have

Code: Select all

<div class=".. jmoddiv" data-jmodediturl....>..</div>
appear in my code as well, but how does that turn into an editbutton?

One of my modules is generated as

Code: Select all

style="xhtml"
, yet no front-end editing options appear, even for a Super User.

Protostar is a very complex template, and some simple tips would help.

Radix__
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Sat Jul 04, 2009 1:44 am

Re: Frontend editing of modules documentation

Post by Radix__ » Mon Apr 06, 2015 12:54 am

Correction, I now have a clickable text "Edit" appear, so it is doing something.

If only I could figure out how Protostar does it's CSS magic, making it into a menu... It's some higher level CSS, that I haven't figured out yet... very fancy.

nwl
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Thu Feb 09, 2012 11:27 am
Location: Wakanda
Contact:

Re: Frontend editing of modules documentation

Post by nwl » Wed Apr 22, 2015 5:32 pm

I had added template.js from Protostar and I can see all things working, excepts for the css that must be improved in my custom template

Radix__
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Sat Jul 04, 2009 1:44 am

Re: Frontend editing of modules documentation

Post by Radix__ » Sat Jun 20, 2015 3:02 am

I've figured out my problem..... I still had a template output override active, based on a previous Joomla version.... :eek:


Locked

Return to “Templates for Joomla! 3.x”