Bug 26554 - allow news tag in all slips
Summary: allow news tag in all slips
Status: RESOLVED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-28 11:34 UTC by Mark Hofstetter
Modified: 2023-11-13 17:19 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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 %]