Twill CMS

TC

Twill CMS

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

Join

Twill Role based access

How would i go about adding a Role based access to CMS Components and its entries. For e.g in an image module i would want to be able to allow or deny access (on the front end) to certain roles.

Twill assets error

Hello to everyone i have an website in production builded in twill but some twill assets in there are missing there, in local environment everything works fine but in there cause me those errors like in picture above anyone can help me to find a solution about this ?
No description

Where to find block repositories?

I've seen in the tutorial(https://www.youtube.com/watch?v=kAcJ5G2GhiA) some blocks like "paragraph & image" and "past project spotlight", besides in the official demo(https://demo.twill.io/work/works/2335/edit) like "fixed image grid" and "flexible image grid". Are those blocks coded somewhere? Moreover, I would like to know where I can find more community blocks. #📦packages #👊support...
No description

[3.0.0] Block class - getBlockTitle()

Hi, I was trying to move Blade blocks to Class. When I wanted to move @twillBlockTitleField in class, I thought I had to do my own logic in the getBlockTitle() method of my class which is supposed to have the block as argument. But the block is always null, indeed, the only call is in Services\Blocks\Block::parsePropertyFallback() but without arguments 😁 ...

[3.0.0] componentBlock overriding getBlockIcon doesn't seem to work?

(Successfully changed the title by overriding it's static function) Checked twill:list:icon for the wysiwyg_header icon and added the following to App\View\Components\Twill\Blocks\Article\Header.php ` public static function getBlockIcon(): string...

[3.0.0] Maintaining automated Permalink Generation when using getCreateForm to add fields.

As soon as I add any fields, using the Formbuilder on this function, the automated permalink disappears. is there a simple way of maintaining the permalink functionality, even by attaching it to a suitably named text field? I think the workaround for me right now, is just run with just the title, and make the other fields required in the main (editing) form....

multi select selected options

I'm using the multi select as documented in https://twill.io/docs/form-fields/multi-select.html#multi-select, but I can't find a way to mark options as selected by default.

[3.0.0-rc4] - How to show current value in a select form field

Currently I have my select field defined as: `@formField('select', [ 'name' => 'work_year', 'label' => 'Year',...

[3.0.0-rc4] Images not found on remote server - League\\Glide\\Filesystem\\FileNotFoundException

I just went from my local to my remote server and some images are showing up others are getting a 500 error. Using Version 3.0.0-rc4 This is showing up as the last stacktraces in storage/logs/laravel.log ...

[Twill2] Do settings section support media and how?

As title says, is it possible to inject media here or should I make a custom settings singleton to handle this use case?

[3.x.dev] Call to undefined method ReflectionUnionType::getName()

Newbie to Twill here. Fresh install of Laravel 10.4.1 / PHP 8.2.4 / MYSQL 8.0.32 on Ubuntu Budgie 22.04.02 Pro. Fresh install of Twill 3.x.dev Migrate...
No description

Add custom icons into twill

I add the icons into the path resource/views/admin/icons and I run the command, result is ok, but when I load the Editor on admin, it not working I had followed with https://twill.io/docs/block-editor/creating-a-block-editor.html#list-existing-icons but when I add config into config/twill.php file, Editor not working at all and don't show anything How can I show custom icons in the editor screen ?...
No description

Select an another block in a block?

Hi everyone, I have a function to create a new block with name "Columns block". With this block, user can create a new content row with multiple column. And after that, user can select a specific block (it will dynamic with all block already had in system) that they want to show in column. Can Twill already support this function?...

Media Library / Glide only loading JPEGs

Hey there, So I had a Laravel/Twill app running successfully on a subdomain with no issue. Today I needed to move it to the main domain to go live. This is a CPanel shared host server btw....
No description

Adding a vue component

Good afternoon Tell me what could be the problem? On the main page of the admin panel there is an activity panel. I want to replace with my component. For testing, I created a component from the help, but unfortunately it is not displayed. Vue the component even tried to create just in the component folder. Outcome is the same....
No description

Save title in translations

I'm trying to save my title as a translatable field, normal fied works fine but when i make it translatable it doesn't get saved in my database anymore?

Set translations to active

While trying to set translations to active it isn't saved to database? Only english is selectable...
No description

can't use Published, Draft, Trash filters on module index

I see the buttons, they show the correct counts in the parenthesis, but when I click on them, I always see all the items. (This is also true on the users page with the Active, Disabled and Trash buttons: The counts are correct, but I always see all users in the list.) Any ideas? I'm new to Twill so sorry if I forgot something obvious....

Settings - Multilanguage

Hello guys, i'm having a strange issue on settings sections. When i save a translated field in Italian the english input is pouplated with a json containing the italian input Any hints on what could be wrong?...
No description

medias XHR request with wrong scheme

Greetings... I'm having trouble with accessing media library in the admin area in production. Mixed content error. The request for 'medias' is being made via http: scheme even though APP_URL, APP_ADMIN_URL, and ASSET_URL are all set with the https: scheme. Any idea how to fix? Thanks!...