# Changelog
All notable changes to this extension will be documented in this file.

## [4.19.5] - 2021-09-08
### Fixed
- Fixed bugs in news administration module.

## [4.19.4] - 2021-08-10
### Fixed
- Fixed bug in preview hook.

## [4.19.3] - 2021-07-27
### Fixed
- Remove debug.

## [4.19.2] - 2021-07-27
### Fixed
- Fixed bug in pagination controller.

## [4.19.1] - 2021-07-26
### Fixed
- Fixed filtering by month.

## [4.19.0] - 2021-07-23
### Fixed
-  Fixed ordering in `selectedListAction`. Note: compatibility with older versions may be broken:
 `findDemandedByIdList` returns an array of objects instead of QueryResultInterface.

## [4.18.1] - 2021-07-13
### Fixed
-  Fixed code quality issues.

## [4.18.0] - 2021-06-11
### Added
- Added signal/slot for function createOrderingsFromDemand

## [4.17.9] - 2021-06-04
### Fixed
- Fixed dependencies.

## [4.17.8] - 2021-06-04
### Fixed
- Allow multiple startpoints for display categories.

## [4.17.7] - 2021-05-26
### Fixed
- Fixed params for order list
>>>>>>> 4.x-branch

## [4.17.6] - 2021-04-26
### Fixed
- The root category is excluded from the list of categories for filtering

## [4.17.5] - 2021-04-22
### Fixed
- getLastNewsTimestamp method call

## [4.17.4] - 2021-04-21
### Fixed
- News detail page

## [4.17.3] - 2021-04-21
### Fixed
- Ordering creation from demand

## [4.17.2] - 2021-04-20
### Fixed
- Argument type exception

## [4.17.1] - 2021-04-20
### Fixed
- Removed root categories from dropdown list

## [4.17.0] - 2021-04-15
### Added
- Code quality tools

<<<<<<< Updated upstream
=======
>>>>>>> Stashed changes
>>>>>>> Stashed changes
## [4.16.1] - 2021-03-17
### Fixed
- Fixed `height` and `width` arguments for `data-src` attribute in the `ListImage` partial

## [4.16.0] - 2021-03-16
### Added
- Added argument `lazyload` for `ListImage` partial to enable lazy loading of images, data-srcset for `source tag` and data-src for `img tag`

## [4.15.0] - 2021-03-16
### Added
- Added argument `imageClass` for `ListImage` partial

## [4.14.0] - 2021-02-25
### Fixed
- Optimized `selectedListAction` to prevent conversion to array (need for compatibility with pagination).

## [4.13.1] - 2021-02-06
### Fixed
- Fixed compatibility with `stratis_workspace` in multidomain mode

## [4.13.0] - 2021-02-06
### Added
- Clearing cache of pages specified in `TCEMAIN.clearCacheCmd` when news records editing.

## [4.12.1] - 2021-01-30
### Fixed
- excludeRecordsWithoutGroup constraint

## [4.12.0] - 2021-01-30
### Added
- Added excludeRecordsWithoutGroup to news flexform

## [4.11.2] - 2020-12-24
### Fixed
- Refactored categories list in filter

## [4.11.1] - 2020-12-02
### Removed
- Filter for activities fields

## [4.11.0] - 2020-12-02
### Added
- Filter for activities fields

## [4.10.1] - 2020-11-09
### Added
- Hide field "second_tel" by default in stratis_news

## [4.10.0] - 2020-10-29
### Added
- Multidomain preview support in workspace (only for **stratis_workspace:^1.3**).

## [4.9.0] - 2020-10-23
### Added
- Constraints by `related_from`.

## [4.8.1] - 2020-09-29
### Fixed
- Updated categories translation mode, from "fallback to original language" to "hide non translated"

## [4.8.0] - 2020-09-28
### Added
- `allowSelectTranslatedCategories` setting

## [4.7.4] - 2020-09-14
### Added
- Added filter for the period "tomorrow"

## [4.7.3] - 2020-08-25
### Fixed
- Fixed error while generating preview button in BE for translation of news, if page with list
 has no translation for current language (href should not be empty).

## [4.7.2] - 2020-08-14
### Added
- Constraints by `fal_related_files` to  `relatedLinks` demand parameter

## [4.7.1] - 2020-08-11
### Fixed
- Constraints by `fal_related_files` to  `relatedLinks` demand parameter

## [4.7.0] - 2020-08-11
### Added
- Constraints by `fal_related_files` to  `relatedLinks` demand parameter

## [4.6.11] - 2020-08-07
### Fixed
- Demand class name for call `NewsConstraintHelper` without any TypoScript settings
### Added
- Configuration for extend `NewsDemand` by native ext:news extend methods

<<<<<<< Updated upstream
=======
>>>>>>> Stashed changes
>>>>>>> Stashed changes
## [4.6.10] - 2020-06-23
### Fixed
- Multiple starting point for `getSortedCategoriesByIdList` method

## [4.6.9] - 2020-06-12
### Fixed
- Fixed strong typing issue in hook `NewsDomainSpecificPreviewUrlHook`

## [4.6.8] - 2020-05-28
### Fixed
- fixed `NewsDomainSpecificPreviewUrlHook` for news, depending on how domains are added to the record.

## [4.6.7] - 2020-05-26
### Fixed
-  change field `tel2` to `second_tel`

## [4.6.6] - 2020-05-26
### Added
-  field `tel2`

## [4.6.5] - 2020-05-17
### Fixed
- `CategoryRepository` refactoring
- Default `foreignTableWhereForNewsCategories` setting value for multi language

## [4.6.4] - 2020-05-13
### Fixed
- Fixed condition for field "datetime" in TCA (date format)

## [4.6.3] - 2020-05-08
### Fixed
- Fixed problem with category translations

## [4.6.2] - 2020-05-08
### Fixed
- `NewsDomainSpecificPreviewUrlHook` for news without domains.

## [4.6.1] - 2020-05-07
### Fixed
- Category and Tag controllers.

## [4.6.0] - 2020-05-07
### Added
- `plugin.tx_news.search.allPartsShouldToBeLocatedInOneField` option what make possible search by inclusion of any part of keyword in any field from config, if we turn it off (set to `0`, by default `1`).

## [4.5.1] - 2020-05-07
### Fixed
- Keyword word breaking by space in the list action.

## [4.5.0] - 2020-04-24
### Added
- `NewsDomainSpecificPreviewUrlHook` for BE interface.

## [4.4.11] - 2020-04-09
### Fixed
- Generation slug from title with slashes.

## [4.4.10] - 2020-03-23
### Fixed
- Time intervals with empty inverse constraints.

## [4.4.9] - 2020-03-11
### Fixed
- Make the filter by the start date and end date work independently
### Added
- 'required' eval according to ext:news configuration

## [4.4.8] - 2019-03-10
### Fixed
- Initialization of NewsDemand class fixed in NewsDemandBuilder

## [4.4.7] - 2019-03-06
### Fixed
- Fixed work with ViewHelpers v:render.uncache

## [4.4.6] - 2020-02-28
### Fixed
- Fixed ordering by uid on localized sites.

## [4.4.5] - 2020-02-24
### Fixed
- Adjusted respect sys lang fix to be used only in `detailAction` of `NewsController`

## [4.4.4] - 2020-02-12
### Fixed
- Deprecated members usage.
- Removed redundant domains from news edit BE form

## [4.4.3] - 2020-01-14
### Fixed
- News record retrieving for multilingual sites.
- Issue with news detail page on different from default site language.

## [4.4.2] - 2019-12-09
### Fixed
- Use midnight time instead of the current time in filter by period 1 and date management 3

## [4.4.1] - 2019-11-12
### Fixed
- Ignore error code for `RequestUtility::throwPageNotFoundException`

## [4.4.0] - 2019-11-08
### Fixed
- Restrict detail news view by settings of plugin FlexFrom
### Added
- `excludeSettingsFromDemand` FlexFrom field.

## [4.3.1] - 2019-11-07
### Added
- Default values for 'start_hour' and 'end_hour'
### Fixed
- Error on records save when SQL mode STRICT_TRANS_TABLES is enabled

## [4.3.0] - 2019-11-06
### Added
- Sorting by category title for news records.
- Sorting by canton replaced with more correct implementation way.

## [4.2.5] - 2019-09-30
### Fixed
- Added default return value for `NewsConstraintHelper->createCategoryConstraint()`

## [4.2.4] - 2019-09-04
### Fixed
- `allowedSortFields` in list view helper

## [4.2.3] - 2019-09-04
### Added
- `orderRandom` settings to `{news:list()}`

## [4.2.2] - 2019-07-31
### Fixed
- Category restrictions on no domains selected

## [4.2.1] - 2019-07-31
### Fixed
- Domains field type in DB

## [4.2.0] - 2019-07-30
### Added
- New data management for feature events
### Fixed
- Dates generation for period "This weekend"

## [4.1.3] - 2019-07-30
### Fixed
- Fix whitespaces and html special chars in "ical" template

## [4.1.2] - 2019-07-24
### Fixed
- Page domain model mapping
- Fix constraints building in case domain restrictions are disabled

## [4.1.1] - 2019-07-04
### Fixed
- End date in the iCalendar news detail template

## [4.1.0] - 2019-07-04
### Added
- iCalendar template
- View helpers for work with `ical` format: `sn:iCalendar.datetime`, `sn:iCalendar.formatNewLines`, `sn:iCalendar.wrap`
### Fixed
- UserTca->calculateRemainingSeats for inline relation in related_subscriber field

## [4.0.0] - 2019-07-01
### Added
- 'Enable restrictions by domains' option in extension settings
- Basic unit tests configuration
- Add domain restrictions for news, apply news restrictions to tags and categories
## Removed
- News and pages MM relation

## [3.4.2] - 2019-06-25
### Fixed
- Refactored `LastNewsTimestampViewHelper`, fixed deprecation notice

## [3.4.1] - 2019-06-20
### Fixed
- ListPid select in detailView of news plugin

## [3.4.0] - 2019-06-20
### Added
- Sorting by canton to news list plugin

## [3.3.0] - 2019-06-13
### Added
- `orderByUid` attribute to `ListViewHelper` what add possibility to sort in predefined way by `uid` field

## [3.2.1] - 2019-06-03
### Fixed
- "This weekend" period constraints
### Added
- All sites roots to "domain" field

## [3.2.0] - 2019-05-30
### Added
- Filter by domain
- More periods in filter by period
- Subscribers for events

## [3.1.3] - 2019-05-28
### Fixed
- Order by `start_hour` direction

## [3.1.2] - 2019-05-17
### Fixed
-  Excluding already displayed news in `ListViewHelper`

## [3.1.1] - 2019-05-15
### Fixed
-  Fix all tags fetched if none selected in news

## [3.1.0] - 2019-04-26
### Added
- Already displayed news excluding logic
- SelectedIdList attribute for NewsDemand
### Fixed
-  Demand overriding on NewsDemandBuilder

## [3.0.4] - 2019-04-25
### Fixed
-  Categories and search constraints in NewsConstraintHelper

## [3.0.3] - 2019-04-23
### Fixed
- Replace identical to equal comparision in date management demand constraint

## [3.0.2] - 2019-04-23
### Fixed
- Domain usage in ListViewHelper

## [3.0.1] - 2019-04-22
### Fixed
- Typo in attribute name for BaseViewHelper

## [3.0.0] - 2019-04-22
### Changed
- News domain build process moved to separate class `NewsDemandBuilder`
- Slot for extending domain model moved `NewsController -> NewsDemandBuilder`
- Changed argument name to `data -> settings` in `list & count` views helpers

## [2.3.0] - 2019-04-22
### Added
- News list view helper
- News count view helper

## [2.2.0] - 2019-04-19
### Added
- Last news timestamp view helper

## [2.1.5] - 2019-04-09
### Fixed
- Added missed details action redirect

## [2.1.4] - 2019-03-20
### Added
- Define colPos=10 for content elements created from content_elements_aside

## [2.1.3] - 2019-02-14
### Fixed
- Change max symbols for person_name fields

## [2.1.2] - 2019-02-01
### Fixed
- Remove email eval-property in email fields with link wizard: 'mailto:' expression breaks the field validation

## [2.1.1] - 2019-02-01
### Changed
- Enable override demand by default in flexform

## [2.1.0] - 2019-01-22
### Added
- Signal Slot for function createConstraintsFromDemand in NewsRepository
- Signal Slot for function createDemandObjectFromSettings in NewsController

## [2.0.8] - 2019-01-11
### Fixed
- Period selection for new filters: "this quarter"

### Removed
- Period selection "this month" (from the first day of month till the month end)

## [2.0.7] - 2019-01-11
### Added
- Period selections for new filters: "today", "this quarter", "this month" (from the first day of month till the month end)

## [2.0.6] - 2018-11-08
### Fixed
- Reenable flexform overriding
- Use FlexFormService from ext:core

### Changed
- Update locallang files for french language

## [2.0.5] - 2018-10-30
### Fixed
- Error on wrong Tag model invoke;
- Fixed DB error on tags fetch;

### Changed
- Set news extension model classes as query types for stratis_news repository classes;
- Extend news extension model classes with class loading feature;

## [2.0.4] - 2018-10-29
### Fixed
- Fixed DB error on categories tree fetch;

## [2.0.3] - 2018-10-25
### Changed
- File extension check logic - done without v:condition.iterator.contains

## [2.0.2] - 2018-10-25
### Added
- Add missing key into locallang_em.xlf

## [2.0.1] - 2018-10-25
### Fixed
- Fix locallang_em.xlf file structure error.

## [2.0.0] - 2018-05-04
### Changed
- Move all patches from ext:news
