How to Override streams views globallyCreated 5 years ago by srinivas214
Hi, I have published the streams and tried to edit table.twig in views folder but it is not working. Though the views from streams are published but still the streams views from the vendor folder are loading. Please help me with information to solve this.
Thanks in Advance!
@srinivas214 You can publish the addons with
addon:publish your.addon.here and same with streams using
streams:publish I think it it. Then just edit the resulting views in the
streams:publish does not work too. I want to tweak
form/partials/translations.twig but changes only occurs when I edit files in vendor. Checked in Windows under XAMPP and in Vagrant/Homestead.
Similar problem is with validation translations. https://github.com/pyrocms/pyrocms/issues/4699.
Under XAMPP editing
/resources/default/streams/lang/xx/validation.php does not take effect. But works in Vagrant. Moreover, when I want to add translations for language that does not exist in
/resources/default/streams/lang it does not work. For example I want translations for polish, so I create
pl folder and
validations.php file within it with messages translated to polish. After changing language in admin panel to polish, default messages (english) are displayed.
BUT! If I create
pl folder (with all files within it) in
streams:publish and then spit twice over the left shoulder I am able to display polish locales correctly.
$overridesarray prop in your addon SP