Twill CMS

TC

Twill CMS

Join the community to ask questions about Twill CMS and get answers from other members.

Join

Return all data in a model

Probably a silly question. I have set up a module called Pages. I have created a blog page....

handle translations make 'en' as active always

Problem: When we create a page with non english locale, eg) French In module repository create method - (copied only 3 lines from it) ...

Conditionally make block available for specific modules only?

Looking to make a block specifically only available for a given module.

Edit modal modifications

Hi, I found some answers about editing modal forms here and there, mainly about getCreateForm method, however, I can't find anything about the EDIT form of the individual module instance, just like in this thread here from last year: https://discord.com/channels/811936425858695198/1254818869831270470 These forms are kind of identical and I'm thinking that this probably must be editable and I just can't find it. In essence, all I need to do is either remove the title field, prevent Permalink field from mirroring Title field or something to that effect....

Repeater not shown in admin

Hi, I followed this tutorial: https://twillcms.com/guides/json-repeaters.html#content-updating-the-migration But in the Admin-Area the Repeater-Block is not shown... I don't know what is wrong with my code. ...

Model to Module

I have a model that I am using, for arguments sake we can call this model: Tour. I would like to convert this Model to a Module so it can be accessed and edited from the backend. This is just a simple Model. Nothing special about it. Is there a straightforward way to do this?...

Adding a count of a browser relation in a module list view?

Looks like presenters are obselete/not documented and so I'm not sure how to achieve this?

Twill 3 custom roles & permissions are not working

Hello, I'm trying to create new roles and add permissions to them. i want to make some modules only accessible by some of the new roles I've created. I followed the twill documentation and I still get Forbidden yellow screen error when i try to access a certain module as the new user role i created. here is my code, Models/Enums/UserRole.php...

Cannot reorder media in latest releases

Hello everyone, as mentioned in the issue below, it's still impossible to reorder medias in the latest relaeases of Twill (3.4.1 & 3.4.0). https://github.com/area17/twill/issues/2690 Tx for your help ❤️...

Errors when i run php artisan twill:build

I'm trying to set up my twill project and when i run php artisan twill:build i get errors so it doesn't work as it should. Other colleges have tried and some of them have problems at the others work fine. I can't find a solution, can somebody help me?

How to use Tags in browser field

Hello, I’m developing a "Recommended Topics" section for a Blog page, where topics correspond to tags used in posts. I’d like to know if it’s possible to use the "browser" field in Twill to allow users to select from the available tags. I’ve tried implementing this by following the documentation on the Twill website, but I’m still encountering issues.

Trying to create the Homepage that is in the demo

I have created a module and now i need to add sections like at the Homepage demo (the image below), i don't know how to start so i can create the sections. Can one give me some pointers?...
No description

Scheduled Publishing In Twill 3

Here’s what I’ve done so far: 1- Uncommented publish_start_date and publish_end_date in the migration. Added them to the $fillable property in my model. 2- Cast these fields to datetime to avoid the DB error ...

Navigation Link breaks when the primary navigation is a module (upgrading twill3)

Primary menu is visible with 'home page' and 'Projects' for the below array defined in twill-navigation (Yes legacy code) 'home' => [ 'title' => 'Home page', 'route' => 'home', ],...

How to insert & render media with block editor to frontend?

Hi! i am new to twill CMS and i wanted to ask some help here, any answer would help me alot! in this case, i am using some block that named carousel and must insert at least 1 media (photo) inside it and i set it up to 5 Images per block that i made. @twillBlockTitle('Carousel')...

Browser item links

When I add a browser field to a block form or even a twill settings page, initially if I click on a recently selected item, it will navigate to the correct module but when I reload the page there is no longer a link. (clicking on one of the selected items does nothing) It works fine within modules as I can define browser settings but not in blocks. If I had to guess, the required link data is not present on the page for existing items. Any help appreciated....

Repeater with input and browser, how to save data!?

Hi! I have a repeater that contains 1 text input (name="credit")and a browser to select items from another related model called Author. The relationship between Audiovisual and Author is belongsToMany. The pivot table contains a credit column for the input field information. Visually it works, but I don't know what to do in the repository, inside afterSave and getFormFields, I try a thousand ways and I can't save the info, I'm going crazy! ...

Creating a menu with more than 2 levels

How do i create a menu with more than 2 levels? Like I want to have nested items within the nested items. Is that possible?

Validate file uploads in block in Twill 3

Hi there - does anyone know what the correct syntax is to validate file uploads using twillBlockValidationRulesForTranslatedFields? I've got a translated file input for a single pdf. ```...

Extend bulk actions

Can I extend bulk actions dropdown, in Twill2, for example: Export in custom route? Thanks! 🙂
Next