fritzmg / contao-sharebuttons

Simple extension to provide share buttons as a module and content element in Contao
GNU Lesser General Public License v3.0
18 stars 2 forks source link

Template is always the default one #56

Closed xApep closed 1 year ago

xApep commented 1 year ago

When you create a new template and select it, nothing happens. It always takes _default one.

image

fritzmg commented 1 year ago

I cannot reproduce the issue. However, I only tested with the content element, as your description is missing exact reproduction steps. If this issue still occurs, please provide more detailed reproduction steps.

xApep commented 1 year ago

To reproduce it:

  1. Copy sharebuttons_default.html5. Paste it into root /templates and rename it.
  2. Create News archive
  3. Select options for Share as above and select newly created template
  4. Save
  5. Edit anything within newly create template and you will see no effect
fritzmg commented 1 year ago

I also cannot reproduce it this way. The custom template will be output:

<div class="mod_newslist block">
  <!-- TEMPLATE START: templates/news_latest.html5 -->
  <div class="layout_latest arc_1 block first even"> 
    <!-- … -->
    <!-- TEMPLATE START: templates/sharebuttons_foobar.html5 -->
      <!-- … -->
    <!-- TEMPLATE END: templates/sharebuttons_foobar.html5 -->
  </div>
</div>