| Summary: | allow news tag in all slips | ||
|---|---|---|---|
| Product: | Koha | Reporter: | Mark Hofstetter <mark> |
| Component: | Notices | Assignee: | 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
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 %]
|