XF 2.1 No permission when uploading attachments

I'm having another issue:

Template errors
  • Template public:ah_cx_entry_view: Method isAttachmentEmbedded is not callable on the given object (AH\Codex\Entity\Entry) (src\XF\Template\Templater.php:972)
Here is the related code:
Code:
<xf:foreach loop="$entry.Images" value="$image" if="!$entry.isAttachmentEmbedded($image)">
    <xf:macro template="attachment_macros" name="attachment_list_item"
        arg-attachment="{$image}"
        arg-canView="true" />
</xf:foreach>

I checked other examples from the resource manager template, and it appears what I did was correct, but obviously not, if someone could help I would appreciate it.
 
Last edited:
Do you have an isAttachmentEmbedded method in your Entry entity? If so, is it public?

Liam

I thought it was a standard XF method, but it's not. I searched for it in the XFRM code, found it, and added it to mine. It works now. Thank you!
 
Back
Top Bottom