Questions tagged [control-panel]

Questions having to do with Craft's control panel.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
0answers
98 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 ...
3
votes
0answers
123 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&...
2
votes
0answers
108 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 ...
2
votes
0answers
63 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' => ...
2
votes
0answers
332 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 ...
2
votes
0answers
161 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) { ...
1
vote
1answer
22 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 / ...
1
vote
0answers
38 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 ...
1
vote
1answer
133 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 ...
1
vote
0answers
156 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. ...
1
vote
0answers
49 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 ...
1
vote
0answers
24 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, ...
1
vote
0answers
26 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 ...
1
vote
0answers
40 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 ...
1
vote
0answers
73 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 ...
1
vote
0answers
229 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] ...
1
vote
0answers
33 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 ...
1
vote
0answers
110 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 ...
1
vote
0answers
43 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 ...
1
vote
0answers
67 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, ...
1
vote
0answers
54 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 ...
1
vote
0answers
64 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 ...
1
vote
0answers
109 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 ...
1
vote
0answers
250 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 ...
1
vote
0answers
71 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,...
0
votes
0answers
13 views

How to access CurrentUser variable in JS file

I'm using control panel js plugin to add some javascript in users page inside control panel, to hide some data based on current logged in user role, but I'm unable to access the {{currentUser}} ...
0
votes
0answers
9 views

Module's control panel sub-navigation is not working properly

I have a problem with setting up a CP navigation for my module. In module's init() I declared the following: Event::on( Cp::class, Cp::EVENT_REGISTER_CP_NAV_ITEMS, function (...
0
votes
0answers
26 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 ...
0
votes
0answers
21 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 ...
0
votes
0answers
13 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 ...
0
votes
0answers
11 views

Cache Control Panel resources

Is it possible to enable Browser Caching for the cp resources? Did not find anything in the documentation about it and my custom set headers in nginx does not work for them. I am working with craft 3 ...
0
votes
0answers
29 views

Craft CMS Multisites with 100++ Sites

We're lookin for someone having experience with having A LOT OF MULTISITES in a Craft CMS installation? A project of ours has currently 68 Multisites, but approx. 50 more to come. We're looking for ...
0
votes
0answers
20 views

Is it possible to add a entry into Craft CMS control panel and have some form inside for administrators only?

Is it possible to have a section in the control panel side of Craft CMS such as a Form for internal use only? I added a new section using the CP Nav plugin.
0
votes
0answers
38 views

Not able to access CP locally

I switched computers a few months ago, installed AMP server using same configurations I had. Now I cannot access CP on my Craft 3 projects locally. Front-ends load fine though. Every time I click ...
0
votes
0answers
122 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 ...
0
votes
0answers
19 views

Redirect to paginated page after saving Entry within CP

If you are editing entries and then save the entry via the save button, craft redirects you back to page 1 of the element index. I feel we should be able to set our own options as to if we want to ...
0
votes
0answers
14 views

trigger javascript when block is added to matrix or supertable

I need to run javascript to modify a field-input when the user edits an entry and adds a block/row to a matrix or super-table field. Is there an event to listen on or some callback to hook in? ...
0
votes
0answers
41 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 ...
0
votes
0answers
75 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: ...
0
votes
0answers
279 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 ...
0
votes
0answers
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 ...
0
votes
0answers
26 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?
0
votes
0answers
80 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: '...
0
votes
0answers
329 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 ...