Add Flag for Retrieving Attachment Content

Add Flag for Retrieving Attachment Content, therefore increasing performance when listing faq entries without loading the attachment content. 
Push duplication can be prevented if it is outside the IF condition, just after the else, for sure file must be declared before the IF condition and inside IF and ELSE should not be defined as 'my'