Okay, issue resolved, it was user error... In the template "email_base.tpl" 
the "email/_body_media.tpl" is referenced, and I was able to add the new 
category there.

I just have to say, the longer I use Zotonic, the more impressed I am with 
both it's flexibility and comprehensive amount of built-in functionality. 
Many, many thanks to you and the other contributors for this amazingly well 
designed piece of software. 

On Thursday, March 14, 2024 at 3:25:11 PM UTC-6 Seann Aswell wrote:

> While testing mailing list functionality, I noticed an issue, and am 
> unclear where to look for a solution...
>
> So, on several websites I have created a new category called "Photos", as 
> a sub-item of "Media", and use the built-in category of "Images" for any 
> still media that is not a photo. There is much logic build around this 
> method of categorization, such as displaying different metadata for a photo 
> than an image, which is why this approach was taken.
>
> However, this appears to cause an issue with "mailing_page.tpl" as any 
> resource in the category "Photos" is not displayed.
>
> I believe this is the code that imports the body of the resource: 
> from mailing_page.tpl
> {# Main body of the message sent. #}
> {% block body %}
> {% with m.mailinglist.subscription[list_id][email] as sub %}
> {% filter inject_recipientdetails:sub %}
> {% inherit %}
> {% endfilter %}
> {% endwith %}
> {% endblock %}
>
> It appears the "inherit" function is responsible for importing the 
> resource body, but it does not point to a .tpl so I am not able to dig any 
> further for a possible solution.
>
> Any suggestions on how to modify the mailing list functionality to include 
> a new sub-category of Media to the body of a resource to be displayed? 
>
> Hopefully my question is clear, but let me know if there are any questions 
> or recommendations on how to handle.
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Zotonic developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/zotonic-developers/5db4d840-11b3-4c0b-b5df-2d72a558e93an%40googlegroups.com.

Reply via email to