Twill CMS

TC

Twill CMS

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

Join

Admin api requests blocked for mixed-content

This is an odd one and happening in a single environment (which unfortunately is production) . I know the issue is me, but I can't seem to see what is wrong. All api requests made by the twill admin are being made using http instead of https and the browser is blocking the call for mixed-content. For example, if you open the media library, a request is being made to http://productiondomain.com/admin/media-library/medias?page=1&type=image and the request gets blocked because the current page was loaded over https and it looks sus....

I'm lookig for the DNS Settings of my website. Can anybody help me please?

The person who made my website is not available and i need to access my dns settings. Thanks!

How to load images in smaller size while keeping aspect ratio and not cutting parts of it off?

Hello, I am trying display images with a smaller width that I uploaded in my CMS but without any crop. So for example a logo that is 2000px by 3000px I want to display it with a width of 300px while keeping correct aspect ratio and without cutting parts of the image off. It's not really clear for me in the documentation how to do that. Currently I have this code:...
No description

419 login superadmin

Hi all, I'm deploying a project with docker containers, I created a superadmin, I try to log in and get an error. "The page has expired due to inactivity. Please refresh and try again." Can you tell me what the problem might be, I've been trying to figure it out myself for a long time?( It's definitely not a problem with the csrf token, I've checked it already...

Call to a member function permissions() on string

Can you give me a hint, please? In config/twill.php I specified return [ 'enabled' => [ 'permissions-management' => true...

permalink

Good morning, everyone. I wanted to ask a question. I would like to have the possibility to add a button next to the permalink, where I could click on it and automatically copy that link. Is there something already available that does this? Thank you for your attention.
No description

Conditionally render block fields?

Is there a way to render block fields based on a field value outside of the block? I want to conditionally render a field based on a value that's set outside of the block editor but I'm not sure how to pass it through.

Locale-Restricted Blocks?

Hey again! Is it possible to hide or limit specific blocks in the backend based on the locale? For instance, if there are a bunch of videos in a block (or PDFs etc.) that are localized for english, and we simply don't want to include that section in a different language, is the only solution to modify the block on the frontend and write an if condition to display nothing if in a certain locale? Or is there a better course of action? My only concern with that path would be user confusion in the b...

Permalink - Question

Good afternoon, everyone. I wanted to ask a question. I would like to have the possibility to add a button next to the permalink, where I could click on it and automatically copy that link. Is there something already available that does this? Thank you for your attention.
No description

S3 Storage and file path for signed key

I am setting up Twill stored files with signed keys from AWS. Normally I would be calling the filename like so: ``` $file_model->file('file_name')...

Pass ID to additionalTableActions

Is there a way to get the current object's ID when I'm adding an additional action for a link like this? ` public function additionalTableActions() { return [...

Multi-Region + Multi-Language?

Has anyone ever done a multi-region + multi-language implementation? The very specific use case is starting with English, and moving to American English, American Spanish, Canadian English, Canadian French, Mexican Spanish, and Mexican English. Regions are very important because even within english, something like the ADA (Americans with Disabilities Act) isn't applicable in Canada, so within english there needs to be multi-region content....

Adding role and permission for single module

Hi, I have investigated the documentation provided here: https://twillcms.com/docs/user-management/advanced-permissions.html#content-level-role It's not particularly understood. I am looking to add a new role "Translator" to the CMS which will only access one module "systemtexts"....

afterReorder

Is it possible to add a function before or after saving the positions of my module? I need it in order to clear the cache of my site every time the position of the elements changes. I need something similar to this...

Radio button with formbuilder -> Class "App\Http\Controllers\Twill\Option" not found

Hi, I'm trying to add a radio field in Twill 3 formbuider, as described on https://twillcms.com/docs/form-fields/radios.html But I'm facing an "Class "App\Http\Controllers\Twill\Option" not found" error Whats wrong, could not find any hints in the docs...

Undefined variable $linkGroups

After upgrading to the latest version of Twill using the upgrade guide, i'm receiving the following error when I want to visit the admin panel: Undefined variable $linkGroups (View: /Users/xxxxx/Documents/xxxxx/website/vendor/area17/twill/views/partials/navigation/_overlay_navigation.blade.php) What is wrong? I can't find it...

Dashboard - 404 error

Hi, I am getting strange error when try to open dashboard I get 404, but custom routes setup in route.php are working fine. I have the following settings in my .env. (all environement variables resolve correctly checked already). ```dotenv Twill Specific ADMIN_APP_URL=${APP_URL} # Resolves correctly to admin.devdomain.test...

ActiveNavigation

Hello hope you guys have a nice day! I am upgrading from twill2 to twill3. I see you guys removed A17\Twill\Http\ViewComposers\ActiveNavigation; View::composer('unusual::partials.navigation.*', ActiveNavigation::class); What is the replacement method. (We are currently using legacy navigation for now)....

Twill tags and images dont save on repeater

hi im trying to use tags in my blocks, but after i save changes all the input fields are saved expext tags and images that's really strange to me , maybe i miss any configuration ?...