Questions tagged [control-panel]

Questions having to do with Craft's control panel.

47 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3 votes
0 answers
100 views

Responsive control panel styles

I have a plugin that extends various Craft templates and styles, however, in one area it requires some custom Control Panel styles that Craft has not already created. As the Craft Control Panel is ...
user avatar
  • 13.2k
3 votes
0 answers
136 views

How can my plugin use Craft's native dragdrop support

I am using a generic Garnish modal from Craft like so: $container = $('.upload-modal'); $modal = new Garnish.Modal($container, { autoShow: false }); I would like to have craft's native drag&...
user avatar
  • 282
2 votes
0 answers
70 views

How to search/filter in CP by date range?

Is there a way in the control panel to list all entries with a date field between two dates? For example, last updated between 12/16/2019 and 2/15/2020. Interested in doing this for both automatic ...
user avatar
2 votes
0 answers
163 views

Add CP Tab content into include file

I am making a plugin where I have about 10 tabs at the top. Depending on the admin users privileges they may see a subset of 1-5 or 6-10 and super admins can see all 10. The issue I am running into ...
user avatar
  • 33
2 votes
0 answers
68 views

Allow CP sorting on an added EntryTableAttribute

I am adding a column to the entry table with links to reverse related entries: public function defineAdditionalEntryTableAttributes() { return array( 'blockParent' => ...
user avatar
  • 3,061
2 votes
0 answers
362 views

control panel login redirects back to login

First, I just took over administration of our Craft site from a previous employee, and the original site was set up by a contractor, so I'm still trying to figure things out. Yesterday it was ...
user avatar
2 votes
0 answers
185 views

Manipulating CP Elements List view with source filtering does not work for assets

I made a plugin which customize columns table view for all my elements and using a filter on the source : Entries: section public function modifyEntryTableAttributes(&$attributes, $source) { ...
user avatar
  • 972
1 vote
0 answers
19 views

Missing New Entry button/dropdown when overriding the Entries Control Panel page

I have developed a module which overrides the entries page in the admin control panel as we need some custom fuctionality on that page. It's mostly working, however when I set the element type in the ...
user avatar
1 vote
0 answers
35 views

Is there a way to prompt for confirmation in cp?

I have a custom plugin that checks for assets filename, and I'd like to prompt for confirmation like in the example below. Is there a way to do that in Cp? If user clicks No then $event->isValid = ...
user avatar
  • 413
1 vote
0 answers
35 views

Non-admin users cannot preview/view entries when site front end is disabled (multisite)

I am running a multisite setup on 3.6.11.2. We are attempting to generate a new site and while we work on the structure/content I have the 'Enable on the front end' setting switched off. As an admin, ...
user avatar
1 vote
1 answer
80 views

Within the CP, how can I filter the listed Entries based on a Lightswitch field value?

I tried these kind of searches in the CP search field (on top of the Entry list): fieldHandle:true / fieldHandle:false fieldHandle:1 / fieldHandle:0 fieldHandle:* / -fieldHandle:* fieldHandle:not 1 / ...
user avatar
1 vote
0 answers
54 views

Assign user to group available even though not allowed? (Craft v3)

Working my way through the CMS to learn in more detail I'm currently at the users / permissions parts of the CMS. Here I just bumped into the following thing I don't understand: I have a Users Group ...
user avatar
  • 180
1 vote
1 answer
337 views

Craft 3: Searching within back-end & front-end isn't giving all entries/results

Searching within Control Panel as well as the front-end is not going through all entries. When I try searching in the Content tab I see the pages are listed but when I try to search for the entry it ...
user avatar
1 vote
0 answers
343 views

An unknown error occurred message, only on live server

Please can anyone give me some pointers. Just logged into the backend on an older (but live) 3.0.26.1 project. CP is now flashing multiple 'an unknown error occurred' messages on every CP request. ...
user avatar
1 vote
0 answers
66 views

Pre-select entry type based on site being edited

I'd like to change the entry type that's pre-selected when creating a new entry depending on the site that's being edited (doing that with JS). In control panel, does anyone know how I can trigger the ...
user avatar
  • 163
1 vote
0 answers
25 views

Sort and display panel in CP does not show all the fields

When I try to arrange some entry field in the CP's sort and display panel, the panel does not show all the fields in the server version, while it display all the fields in my local version. Although, ...
user avatar
1 vote
0 answers
30 views

Craft 3: Prevent craft adding script filename to URLS

I'm running Craft 3 with multi-site. Working well so far, but my hosting doesn't allow me to create traditional vhosts with their own directories and shared upper filesystem. As such I have an ...
user avatar
1 vote
0 answers
52 views

Add a second template field in section settings via plugin

I would like to add a second default template field for each section's Site Settings, via plugin. Where would I look to see how to do this? How would I access this value in my plugin's code? How ...
user avatar
1 vote
0 answers
92 views

How to localize password emails and password change form?

Just wrapping up my first multi-language Craft 2.x site, and the last localization issue we're having is the password reset process. I can't find a way to localize: The email which is triggered by ...
user avatar
1 vote
0 answers
269 views

Control Panel freezes due to Access Control Checks?

Basically, I have no clue what this means? But, I am unable to edit any entries in Control Panel -- everything times out after I try to save and/or return to the main entries page. [Error] ...
user avatar
  • 891
1 vote
0 answers
34 views

Can I force extra fields to be required on asset upload

I am trying to figure out if there is a way to require additional fields be filled out while uploading an asset (mainly pdf's) in the admin control panel. I know I can add meta data fields to an ...
user avatar
  • 167
1 vote
0 answers
136 views

Disable SVG previews for asset field?

A client of mine uploads multiple, complex SVGs (2MB and larger) to an asset field. Unfortunately, Craft CMS isn't able to automatically generate thumbnail images (with a reduced filesize, not just ...
user avatar
1 vote
0 answers
54 views

Listen to replacing files through CP's assets section

Admin users can replace asset files without having to deal with re-uploading/re-creating a new asset using the feature/technique described in Peter's answer here: Is it possible to replace uploaded ...
user avatar
1 vote
0 answers
85 views

Search syntax for searching matrix fields (in the CP)

Looking for a way to search (in the CP), for elements where a matrixField is empty or not. This seems to work: - with matrix rows: myMatrixField::* - without matrix rows: -myMatrixField::* However, ...
user avatar
  • 3,061
1 vote
0 answers
61 views

How do I filter / restrict entries field in CP with a category

Is there a way to restrict the entry field type to specific categories? For example when adding a new field with type "Entries" to select the categories from where entries will be available. I found ...
user avatar
1 vote
0 answers
67 views

Entries fieldtype

Is there scope for updating the Entries fieldtype so that only sections editable by the user are shown in the pop-up modal? Obviously don't want to go changing the core files, but some digging ...
user avatar
  • 1,721
1 vote
0 answers
123 views

Plugin access assets directly in CP

I need to develop a plugin where the user can modify his pictures (assets) on the fly. I've already done that in another PHP project and am willing to port it on craft, but I cant find any way on how ...
user avatar
  • 271
1 vote
0 answers
253 views

Login Problem on Cloud Server

i'm developing on a dedicated root server and all works fine. The whole installation (database and all files except /craft/storage) is then pushed to an git repository and will be deployed to the ...
user avatar
  • 685
1 vote
0 answers
74 views

Child page not appearing in the main menu

On our website www.efcgroup.net we have created new new product under a ghost page (under parent). We can see the new page heading in side bar but not under main menu at home screen. In this example,...
user avatar
  • 73
0 votes
1 answer
16 views

500 Internal erroron admin - session related

I am working on trying to get a local copy of a site working, but ran into an issue where the front end is working, but the admin page is not responding when I try to login. This site is Craft 3.7.44 ...
user avatar
0 votes
0 answers
11 views

Using a phone, possible to move table rows in the CP?

This is similar to: Ability to move matrix blocks up and down on ios/mobile #1035 and Why can't I drag and drop fields in settings on a mobile phone When trying to move rows in a table, I tap on the ...
user avatar
  • 1,263
0 votes
0 answers
15 views

Suggestion: Pluralize/Localize/Whateveritize Entry Types

This probably isn't where I'm supposed to post suggestions but I thought this might be a nicety.
user avatar
0 votes
0 answers
22 views

Local Volume Folder: Transliterate path, but keep name as is

Intention: create a local Asset Volume with a bunch of subfolders and files in it and display a file tree on frontend. All OK, but since the website is in German, I have to do 'convertFilenamesToAscii'...
user avatar
  • 55
0 votes
0 answers
49 views

Garnish.JS modal + FreeForm, weird issue

Within the control panel, while editing an entry, using a UI element, I present the user with a button that pops up a modal. That works fine. Within the modal, I have a simple Freeform which posts to ...
user avatar
  • 596
0 votes
0 answers
16 views

Can control panel date display always be numeric?

I understand the display of entries' postDate, etc., in the control panel can be localized, but I'm wondering if it's possible to get rid of the "yesterday" and "today" designators,...
user avatar
  • 596
0 votes
0 answers
61 views

Url Helper does not create a usable url

When I create a cpUrl like that: UrlHelper::cpUrl($this->entry->cpEditUrl) I get something like that: https://hegi.test/admin/entries/article/7707-test But that don't work inside of the browser. ...
user avatar
  • 235
0 votes
0 answers
29 views

Empty Entry Field on CP

Is there a way to search for entries which do not have content in an entry field property on the CP? I've tried -field:* which doesn't return anything, but if I remove this there are entries which ...
user avatar
  • 1,218
0 votes
0 answers
66 views

Still no way to filter by category in Control Panel?

I'm wondering if, with the release of Craft 3.5, there is a way to filter by category in the control panel. I see this request goes back several years. The only workaround I can find is to use a ...
user avatar
  • 596
0 votes
0 answers
46 views

Multiple (dev) sites running locally; session seemingly randomly times out

I've got multiple sites running on XAMPP (I'm on Windows 10). Each has its own domain (eg. dev.example.local, dev.otherexample.local, etc). When I try to have more than one site CP page open in the ...
user avatar
  • 606
0 votes
0 answers
451 views

Control panel - Entry indexes very slow

Craft CMS 3.3.15 PHP 7.1.3 MySQL 5.5.42 I have a structure with 360 entries. Right now in the CP it takes 3.5 - 10 seconds to load the first 50. And another 3.5 - 10 seconds for every additional ...
user avatar
  • 440
0 votes
0 answers
132 views

Logging into CP doesn't set authentication cookie

Trying to debug an issue where in a dev environment logging into the cp it doesn't set the CP Authentication Cookie (the hash with the _identity) at the end of it. I believe this is the root cause of ...
user avatar
  • 31
0 votes
0 answers
87 views

My new pages appear with Sorry, we couldn't find the page you were looking for

I am adding new entries to my site and following the exact same blueprint as the rest of my pages. However I cannot make any edits to the the new pages and when I attempt to preview them it appears: ...
user avatar
  • 1
0 votes
0 answers
348 views

Setting up Craft 3 database backup command for a remote database server

I have my Craft 3 database on a separate server than my Craft webserver (load balancing) and when I use the download database backup function in Craft 3, it doesn't know where to look. I haven't ...
user avatar
  • 1,032
0 votes
0 answers
44 views

Charge Plugin - Subscribers have access to the Control Panel and any other subscribers personal information

We bought the Charge Plugin and got it up and running for a subscription service and the website has just gone live. We just realised any new user (subscriber) has access to all other users details ...
user avatar
  • 1,173
0 votes
0 answers
28 views

What's wrong when entries appear again after save?

Entries should be live and say so in the CP, but they where gone in a listing in the frontend. But after saving entry by entry they appear again. What could be wrong?
user avatar
0 votes
0 answers
84 views

Displaying Pending users within CP users field (in plugin template)

I'm displaying a Users field within a template within a CP plugin, but when editing the entry, only Users that are active are being shown. Here is my field: {{ forms.elementSelect({ id: '...
user avatar
0 votes
0 answers
336 views

Change the current locale

Can I change the current locale? I've set up a standard site, using CRAFT client version (one language). Apparently Craft installs the en_us as the primary language. Content is added (in Dutch) and ...
user avatar