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 zotonic-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/zotonic-developers/e373e64c-ccfd-4d69-a98f-9d31e2cc58f2n%40googlegroups.com.

Reply via email to