Commit Graph

11 Commits

Author SHA1 Message Date
Bjarke Berg
b6f4ec3cbc #3668 - Handle fallback strategy with default value and ancestor + Handle fallback strategy when the ancestor is invariant and the item is variant 2019-01-11 11:47:42 +01:00
Stephan
96acc1bd7e Contextualize variations in fallback, too 2018-10-03 16:19:41 +02:00
Stephan
e44ed00c97 Another fallback iteration 2018-10-03 10:31:35 +02:00
AndyButland
c61f041d06 Added fallback by language option to IPublishedElement and IPublishedProperty 2018-07-28 08:39:12 +02:00
AndyButland
49c6212cb6 Implemented constants, tests and functionality for trying one fallback method and then another 2018-07-28 08:11:48 +02:00
AndyButland
b608ea8322 Restored service context as being DIed into PublishedValueFallback.
Whilst only the LocalizationService service is needed, not injecting this via the service context was breaking the unit tests.
If there's a way around this so we can use the mocked ILocalizationService in tests then this change can be reverted.
2018-07-28 07:58:22 +02:00
Stephan
a35f67ecef Refactoring 2018-07-24 15:04:30 +02:00
AndyButland
1be74589f2 Combined fallback parameters into an array that defines methods and priority to be used. 2018-07-21 15:58:49 +02:00
AndyButland
695f21eadb Removed unnecessary loop in looking up value from a fall-back language.
Put in a check to abort fall-back if there's a loop in language fall-backs.
2018-07-21 09:41:07 +02:00
AndyButland
aadd843c33 Implemented published value fall back via language 2018-07-08 16:14:58 +02:00
Stephan
d56af5872d Implement basic fallback plumbing (in progress) 2018-05-02 13:38:45 +02:00