Foxtrek_64
Active member
Hi all,
I'm probably missing something obvious here but I was hoping to get some insight here. I created a template file named
Now I am creating an HTML widget to display this macro. The widget key is unique (anywhere in the system, not just with widgets), it has no display positions, a display condition of
Advanced mode toggle is on as well.
When saving this widget, I get an error saying "Template titles must be unique. The specified title is already in use." Changing the name of the widget doesn't affect the error message, and the template saves without error. What am I doing wrong here?
I'm probably missing something obvious here but I was hoping to get some insight here. I created a template file named
character_sidebar_macro
. This template does exactly as the name implies.
XML:
<xf:macro
name="character_sidebar"
arg-name="!"
arg-image_slug=""
arg-image_style=""
arg-section1_name=""
arg-section1_content=""
arg-section2_name=""
arg-section2_content=""
arg-section3_name=""
arg-section3_content=""
arg-section4_name=""
arg-section4_content=""
arg-section5_name=""
arg-section5_content="">
<!-- snip -->
</xf:macro>
$context.thread.thread_id = '7'
which is my test thread (not sure if this works yet, but that was what I'd intended to test), and a template body of the following:
XML:
<xf:macro template="character_sidebar_macro"
name="character_sidebar"
arg-name="Faela"
arg-image_slug="faela-animation.gif"
arg-section1_name="Character"
arg-section1_content="{{ ['Name', 'Faela'] }}"
/>
Advanced mode toggle is on as well.
When saving this widget, I get an error saying "Template titles must be unique. The specified title is already in use." Changing the name of the widget doesn't affect the error message, and the template saves without error. What am I doing wrong here?