Bug 26554

Summary: allow news tag in all slips
Product: Koha Reporter: Mark Hofstetter <mark>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: lisette, lucas
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Mark Hofstetter 2020-09-28 11:34:41 UTC
Hi all & thanks,

as far I understand it, the <news> tag works only in ISSUESLIP. 

Is there a good reason for this? For us it would be usefull if we could include the news section in all communications/slips

cheers & thx
Mark
Comment 1 Lucas Gass (lukeg) 2023-11-13 17:19:10 UTC
We can already do this by using something like this in any slip/notice:

[% USE AdditionalContents %]
[% SET my_news = AdditionalContents.get( location => "slip", library => borrower.branchcode  ) %]

[% IF my_news.content.count > 0 %]
    [% FOREACH item IN my_news.content %]
        <strong>Title: [% item.title %]</strong><br />
        Content: [%  item.content  %]
        <br /><br />
    [% END %]
[% END %]