Nemanja Karadzic

> 2020-01-23 76f1abc Changed revert button title when revert is possible. (bergice) I'm quite sure that author of this fix is somebody else...

Firesphere

It's often accredited to the person that did the Merge. Pretty frustrating/annoying

Nemanja Karadzic

any idea why i18n Textcollector Task doesn't create lang in theme?

wmk

That's an annoying bug in SS4. It just grabs in "modules", not in themes. I once had a look at it, but I didn't find an easy solution.

t3hn0

try putting _config.php in themes root folder... "themes/_config.php"

t3hn0

it should trick SS to thing it's "module" folder

t3hn0

or maybe even in themes/your-theme/_config.php

t3hn0

I know I had problems while working on new i18n editor 🙂

Nemanja Karadzic
  1. putting _config.php in themes did produce lang folder... only in themes folder
  2. putting _config.php in themes/app did nothing
t3hn0

so the first one (themes/_config.php) is the solution

t3hn0

in ss3 you had to call translator task like: i18nTextCollectorTask?module=themes/theme1 i18nTextCollectorTask?module=themes/theme2

t3hn0

you can check list of SS modules in your project with

t3hn0

ModuleLoader::inst()->getManifest()->getModules();

t3hn0

but I think you'll get only "themes" folder in ss4

Nemanja Karadzic

> i18nTextCollectorTask?module=themes/theme1 also did nothing

Nemanja Karadzic

but there's a workaround > 1. make a branch > 2. remove all but one theme > 3. put _config.php in themes folder > 4. flush and run text collector > 5. extract lang file > 6. ditch branch > 7. manually copy lang file to theme > 8. repeat while you have themes left


Show less replies
Nemanja Karadzic

ie $this->owner->FeaturedItems()->filter(['Hide' => false])

👍 (1)
Nemanja Karadzic

afaik, once you get $this->owner->FeaturedItems() you get the DataList with items of type FeaturedItem, which means you should filter them pretty much just like you did FeaturedItem::get()

Nemanja Karadzic

is there a way of publishing File after upload from frontend, other that through owns property?

Nemanja Karadzic

if you try to utilize yaml file over php implementation, yoi're going to have bad time, sooner or later. Especialy if fluent and versioned come into the picture

Nemanja Karadzic

https://en.wikipedia.org/wiki/Tryphon,_Respicius,_and_Nympha

Show 1 attachment(s)
  
Wikipedia

Saint Tryphon of Campsada (also spelled Trypho, Trifon or Triphon) was a 3rd-century Christian saint. He is venerated by the Roman Catholic and Eastern Orthodox churches as a great martyr and holy unmercenary. Saint Tryphon was formerly celebrated jointly with Saints Respicius and Nympha on 10 November in the liturgical calendar of the Latin Church from the eleventh century until the twentieth. Saint Tryphon continues to be celebrated (separately) on 1 February [O.S. 14 February] on both the Orthodox liturgical calendar and the Roman Calendar of Saints.

Hide attachment content