Giter Site home page Giter Site logo

dnetemplatemanager's Introduction

Template Manager for Shopware 6

This plugin for Shopware 6 features a template code editor to easily extend existing storefront .twig templates.

The plugin offers the following features:

  • Lists all existing template files of the default storefront
  • Code editor with twig syntax highlighting for custom templates
  • Displays the contents of the original template for reference
  • Automatically prepends new templates with extension syntax matching the template to be extended
  • Stores custom templates in filesystem within the plugins directory structure
  • Languages: English, German

Requirements

3.0.0

  • Shopware >= 6.6

2.0.0

  • Shopware >= 6.5

1.1.2

  • Shopware >= 6.4

Installation

Clone this repository into a folder called DneTemplateManager within the custom/plugins directory of the Shopware installation.

  • Install the plugin through the Plugin-Manager within the Shopware backend.

Usage

The module will be accessible in backend by a new sub-menu entry called Custom Template Manager under Settings.

Regarding proper syntax and inheritance within template extensions please see the official documentation.

Custom templates are saved in ${SHOPWARE_ROOT}/custom/plugins/.customTemplate/storefront. It is possible to backup or transfer the contents of that folder for use in themes or other Shopware installations.

dnetemplatemanager's People

Contributors

dneustadt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

dnetemplatemanager's Issues

No menu entry since 6.4.10 anymore

Hi, and thank you for the great Plugin!

I know, there is no support, but perhaps you have a small peace of time to help ;)

After an update from Shopware 6.4.9 to 6.4.10 the Custom Template menu entry is gone and I don't know how to call the right URL.

I've deactivated the plugin, logged out and in, but the menu entry doesn't come back anymore .. any suggestions? Should I uninstall it and install it again?

Thanks in advance!

Missing JS file

Hi, I installed this cool plugin in our SW6 store, but even after activation, it's not working. I installed it twice. A look into the console shows me, that the JS file is missing. Any idea why?

2023-03-21_11-53-55

Thx
TC

Document templates ignored in flow with "send mail"

I created a custom template for /base.html.twig that works great as far as I create, lets say a invoice through an orders details in the backend.
Also if I create a flow that has only the Generate document action in the action block, the resulting PDF looks like expected with the customization from the template. But when I now add a Send email action to the block, right behind the Generate document, the generated document seems to ignore all custom templates.
Could this be an extension issue?

BTW: Thanks for this great plugin 🤩

Version v6.3.5.2

Hallo!

Vielen Dank für das tolle Plugin. Mein Shop ist auf der Shopware Version v6.3.5.2, leider unterstützt das Plugin nur die Version v6.3.5.1. Ist es möglich, das Plugin für diese kleine Version freizuschalten?

Vielen Dank!

Extending document templates has no effect

Presumably since we updated form shopware 6.4.18 to 6.4.20 all our custom templates for document are not having any effect.
Templates for pages work as usual and also new changes take effect.

What I have tried in base.html.twig:

Override

{% sw_extends '@Framework/documents/base.html.twig' %}

{% block document_body %}
  <h1>Test</h1>
{% endblock %}

Extend

{% sw_extends '@Framework/documents/base.html.twig' %}

{% block my_not_existing_block %}
  <h1>Test</h1>
{% endblock %}

Override block from includes folder in base.html.twig

{% sw_extends '@Framework/documents/base.html.twig' %}

{% block document_sender_address %}
  <h1>Test</h1>
{% endblock %}

Option to create additional files & use of sw_include function

I would like to add new files. Like MyCustomDesign.html.twig
It would be great to have button to cerate a new empty file.

To use this new files it is necessary to use the function sw_include.
Example:
{% sw_include '@.customTemplate/storefront/mystuff/MyCustomDesign.html.twig' %}

Curretnly it dosen´t work.Maybe it caused by the dot in the folder name.

Question: Edit existing Theme Plugin

First of all, thanks!
I hated it to navigate through folders on console to just edit a small detail. Make it much easier.

I have made some small adjustments in the default theme via custom theme plugin (I needed to center some pictures)
This plugin only shows the base theme (Storefront) and is not able to handle any changes made in the custom theme plugin, is that right?

If so I can use this as a lookup for the original templates but any changes made to will be overriden with the custom theme plugin.
Is that correct or do I miss something?

Currently the structure is:
Default Storefront -> My Custom Theme

And what I'd like to have is:
Default Storefront -> My Custom Theme -> This Editor

Cheers

Shopware not using changed templates

Hi!

I reinstalled my local shop, did a lot of configuration and then realized that changes to the twig-files are not being pulled any more.
The plugin is installed and active and I did changes to twig-files as usual on the backend but the frontend just does not seem to care. Also, the files in 'custom/plugins/.customTemplate' are present.

I reinstalled the plugin two times, cleared the cache, restarted shopware but it's still not working.
What can I do to analyze this further? What exact technical changes does the template manager do to the core to activate itself?

Thanks in advance!

Edit installed Templates

The extension is great.
Unfortunately installed themes cannot be edited.
If installed themes could also be edited, this would certainly be very good.

many thanks for the extension

Size of code editor

The plugin is so great...
But the editor window is so developer unfriendly.
Can't it be width: 100% and resizable textarea height?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.