ifox
ifox
TCTwill CMS
Created by Mike on 12/2/2024 in #👊support
Browser item links
Hi @Mike you can define an accessor for adminEditUrl in your browser models to fix this, or define route prefixes under twill.block_editor.browser_route_prefixes. Did you group your twill module under some prefixes? If you didn't this should work automatically so let me know.
2 replies
TCTwill CMS
Created by xnvert on 10/31/2024 in #👊support
Is it possible to create a new Media Library Bucket in Twill 3
Multiple tags filtering is something we have been working on, yes! You haven't missed anything, it isn't currently available.
8 replies
TCTwill CMS
Created by moussaclarke on 11/20/2024 in #👊support
Validate file uploads in block in Twill 3
Correct
5 replies
TCTwill CMS
Created by xnvert on 10/31/2024 in #👊support
Is it possible to create a new Media Library Bucket in Twill 3
Hi @FL260 we haven't implemented folders yet and we're not sure we want to. Folders are a fixed structure that can go out of control and create duplicate instances of the same media in multiple folders. Tags and other metadata are a better organization principle in modern digital management software. A media can be attached to multiple tags without duplication. We could render the tags as folder visually, but I don't think we want a file explorer kind of folders, where they can be nested. We are in the process of developing a custom DAM with Twill, so this is definitely something we are thinking about.
8 replies
TCTwill CMS
Created by moussaclarke on 11/20/2024 in #👊support
Validate file uploads in block in Twill 3
Hi @moussaclarke there may be a way to make it work but not officially supported. @antonio.a17 recently worked on a PR to improve blocks/repeater validation, but I don't think translated files have been considered specifically.
5 replies
TCTwill CMS
Created by toncek on 11/7/2024 in #👊support
Slug creation with special letters
so we can remove that incomplete slugify function
8 replies
TCTwill CMS
Created by toncek on 11/7/2024 in #👊support
Slug creation with special letters
we are aiming to unify the slug generation to be only happening in the backend at some point
8 replies
TCTwill CMS
Created by toncek on 11/7/2024 in #👊support
Slug creation with special letters
feel free to PR the change too
8 replies
TCTwill CMS
Created by toncek on 11/7/2024 in #👊support
Slug creation with special letters
To avoid the full built file hardcoded, here's what I would do in this case: - Only copy the filters.js file in your codebase https://github.com/area17/twill/blob/53f59c3623fca6f590baa3e0a260dd1edfdc187a/frontend/js/utils/filters.js#L15 - write a composer or npm script that copies it from your project to its location inside vendor/area17/twill - run php artisan twill:build in that script or after running it
8 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
Yes, beforeSave, or a model setter
18 replies
TCTwill CMS
Created by xnvert on 10/31/2024 in #👊support
Is it possible to create a new Media Library Bucket in Twill 3
With this approach you can choose to add a field to the medias table or use a separate model all together
8 replies
TCTwill CMS
Created by xnvert on 10/31/2024 in #👊support
Is it possible to create a new Media Library Bucket in Twill 3
Hi @xnvert I'm really sorry for the delay, just seeing this. I was actually traveling and met with Nikhil from AIC at a conference a couple weeks ago! There is a way to add new tabs to the media library, with full control over the source of the items. In the main Twill layout, you'll find that the tabs are defined in the Vuex store, like this: https://github.com/area17/twill/blob/3.x/views%2Flayouts%2Fmain.blade.php#L112-L133 So if you push another type there, you will be able to control the endpoint it uses to fetch items.
8 replies
TCTwill CMS
Created by Mikh'a on 10/31/2024 in #👊support
How to create settings for the site to disable registration and frontend-only offline mode ?
Hi @Mikh'a sorry for the delay, I'm just seeing this. Did you follow the docs to create the settings in Twill. It should be very straightforward. From there you can access the value from anywhere in your Laravel application. Let me know if you still need help!
4 replies
TCTwill CMS
Created by toncek on 11/7/2024 in #👊support
Slug creation with special letters
Hi @toncek sorry for the delay. How did you try to override HasSlug? Does it work if you change directly in vendor?
8 replies
TCTwill CMS
Created by Flash on 11/10/2024 in #👊support
Multi Language Same Slugs
Hi @Flash sorry for the delay, just seeing this. You can easily add your own scope for this, see the scopes that already ship with Twill here: https://github.com/area17/twill/blob/3.x/src%2FModels%2FBehaviors%2FHasSlug.php#L69-L76 In your particular case I would likely disable the permalink field, since you don't want it translated even though it is in a translated model. Then i would add a simple text field for the slug (non translated) and use that to resolve the article, which can load the correct translation depending on the active locale.
2 replies
TCTwill CMS
Created by Takács Gábor on 11/12/2024 in #👊support
Extend bulk actions
Hi @takacs17 that's possible but only through Vue components overrides
2 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
imagine if every company could get your passwords out of their database. We hash passwords before saving them so that it just isn't possible.
18 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
Hashing is a one way process, you cannot get the password out of the hashed version. This would be a major security concern. You can certainly allow setting a new password from the CMS, but not display it in clear text.
18 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
inside setUpController
18 replies
TCTwill CMS
Created by magius on 10/30/2024 in #👊support
Custom
Do you have a title column? If not you can use $this->setTitleColumnKey('your-column')
18 replies