https://twill.io logo
Join Discord
Powered by
# ❓questions
  • i

    ifox

    09/13/2022, 1:38 PM
    Hi @alitak such functionality is not provided by "default" to let you build your own workflows. We are thinking about introducing something that should help a lot of common use cases though. The gist of it is that you can leverage custom user roles and form fields to build it.
  • i

    ifox

    09/13/2022, 1:39 PM
    the publisher module on the right can accept new fields as well through a slot
  • i

    ifox

    09/13/2022, 1:40 PM
    and then for the frontend to decide to render or not, it's all data driven from your own models, so you have control over that
  • a

    alitak

    09/13/2022, 1:41 PM
    first i thought i could work with the revisions, but unfortunately the block are not revisioned (maybe i missed someting?)
  • i

    ifox

    09/13/2022, 1:41 PM
    they are like everything else that is submitted by the form
  • i

    ifox

    09/13/2022, 1:42 PM
    in the corresponding model's revisions table
  • i

    ifox

    09/13/2022, 1:42 PM
    the full form submission is versionned
  • a

    alitak

    09/13/2022, 1:42 PM
    ok, then i missed something, i will investigate it again, because this should be a must-have feature for our client
  • i

    ifox

    09/13/2022, 1:42 PM
    I think the new draft on top of published content feature we release on 2.9 combined with an approval status field would get you what you're looking for
  • a

    alitak

    09/13/2022, 1:43 PM
    that sound good, will it implemented in the 3.x version too?
  • i

    ifox

    09/13/2022, 7:20 PM
    Draft on top of published content yes, but 3.0 won't have a native approval workflow feature. Definitely something for a future minor version though, like 3.1 or 3.2
  • d

    dedli

    09/13/2022, 7:27 PM
    Hi guys ) I make filters for technic catalog. I create module filterTypes and child related module filters. In my product I need select dynamically quantity of filterTypes and select filter witch belongs selected filterTypes. Is it possible to put two fields (browser filterTypes and connectedBrowserField filters) inside repeater in the product module? Maybe there is a better solution for filters? Thanks
    i
    • 2
    • 2
  • c

    ckmirafss

    09/14/2022, 4:33 AM
    Hi, good day! How can I add another admin account? Thanks!!
  • h

    Harings Rob

    09/14/2022, 5:37 AM
    Just linking the solution https://discord.com/channels/811936425858695198/811936425858695201/1019480032827162635 as someone might find this question via search.
  • a

    alitak

    09/14/2022, 5:59 AM
    how can i change the locale of the cms system? I changed the language under the profile, tried logout-login, but everything is in english. I checked the twillTrans method, but that uses the twill locale only.
  • h

    Harings Rob

    09/14/2022, 6:02 AM
    @alitak that should be enough to change your logged in user's language.
  • a

    alitak

    09/14/2022, 6:03 AM
    i hope so, but the twillTrans ignores the users language
  • a

    alitak

    09/14/2022, 6:12 AM
    maybe this? function twillTrans($key, $replace = []) { $locale = config('twill.locale', config('twill.fallback_locale', 'en')); $userLocale = auth()->user()?->language ?? $locale; if (in_array($userLocale, config('twill.available_user_locales'))) { $locale = $userLocale; } return trans($key, $replace, $locale); }
  • a

    alitak

    09/14/2022, 6:15 AM
    hmm, okay, it works without this, but the first twillTrans works with the twil.locale
  • h

    Harings Rob

    09/14/2022, 6:16 AM
    is twill.available_user_locales including the language you are selecting?
  • a

    alitak

    09/14/2022, 6:17 AM
    the locale is the default english, but the user is set to hungarian
  • a

    alitak

    09/14/2022, 6:17 AM
    the second trans works with the users lang
  • a

    alitak

    09/14/2022, 6:18 AM
    but the label is still in english
  • h

    Harings Rob

    09/14/2022, 6:18 AM
    so the label does not work, but the hint does?
  • a

    alitak

    09/14/2022, 6:18 AM
    yes
  • a

    alitak

    09/14/2022, 6:20 AM
    ok, my bad, mistyped the lang vars
  • a

    alitak

    09/14/2022, 6:20 AM
    sorry for the mess, the twillTrans works fine
  • h

    Harings Rob

    09/14/2022, 6:21 AM
    no worries, glad that it has been figured out!
  • i

    ifox

    09/14/2022, 11:30 AM
    Dynamic fields in repeater
  • k

    kalle

    09/14/2022, 11:39 AM
    Is they any way to add our custom lang twill translates without exporting and merging? I cant use default localization because it used dynamicly in the twill view.
1...391392393...484Latest