Keyword

Template Override for Front-end editing

  • Goble002
  • Goble002's Avatar Topic Author
  • Offline
  • Premium Member
More
1 month 4 days ago #178347 by Goble002
Template Override for Front-end editing was created by Goble002
Hello,

is it possible to create an override for Front-end editing layout ?

I want to keep it simple for "New item" and "Edit Item"

Please Log in or Create an account to join the conversation.

  • Goble002
  • Goble002's Avatar Topic Author
  • Offline
  • Premium Member
More
2 weeks 5 days ago #178413 by Goble002
Replied by Goble002 on topic Template Override for Front-end editing
Hello all,

wanted to follow-up on this.

If we cannot create any Front-end overrides, it it because it is using the admin template ? If so, are there cases when we can create overrides with the default admin template ? Or is there any other admin template that we can assign ?

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 4 days ago #178457 by Fotis
Replied by Fotis on topic Template Override for Front-end editing
You can. Follow this guide first getk2.org/documentation/tutorials/templating-with-k2-and-the-concepts-of-sub-templates to create your own set of overrides for K2 within your Joomla template.

Then edit the itemform.php file and as the contents suggest, copy the HTML from K2's admin files. The do whatever you like with the form HTML.

But! Because the form posts data that may be required, I would strongly advice using CSS only to show/hide content. You can move code blocks around if you like, but don't delete them.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Goble002
  • Goble002's Avatar Topic Author
  • Offline
  • Premium Member
More
2 weeks 3 days ago #178492 by Goble002
Replied by Goble002 on topic Template Override for Front-end editing
Thank you so much.

However another issue arise. Until now I was only using my template custom.css file to style k2. As soon as I create k2.css. Some of my stylings will disappear in the front-end.

I would have prefered to keep using my custom.css anyway but hereunder will only work in k2.css:
#k2ModalContainer  ul.k2ScrollSpyMenu  {
    display: none;}

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 3 days ago #178499 by Fotis
Replied by Fotis on topic Template Override for Front-end editing
This is normal. When you place your own k2.css, K2 ignores its default CSS file. Your best bet it to copy the default CSS file in K2 into your template's /css folder and then modify it at will.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.

  • Fotis
  • Fotis's Avatar
  • Offline
  • Administrator
  • JoomlaWorks Support Team
More
2 weeks 3 days ago #178500 by Fotis
Replied by Fotis on topic Template Override for Front-end editing
Sorry, my mind is racing...

I was referring to frontend behaviour in general, not frontend editing. It's best load a separate file or your rules in a <style>...</style> tag to overwrite default backend K2 CSS.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum