Questions tagged [control-panel]

Questions having to do with Craft's control panel.

Filter by
Sorted by
Tagged with
1
vote
1answer
31 views

Entries Overview: Add Field Columns

Does anyone have an idea how I can add columns in the entries overview? Columns with the title of the fields that exist in the page and are filled with content. Thank you
0
votes
0answers
10 views

Use the edited field label instead of the default label in the table headings

^ This is what I've edited the label to be ^ This is what shows as the table heading - Can it not show as 'Telephone'?
1
vote
0answers
12 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 ...
1
vote
0answers
25 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 = ...
1
vote
0answers
15 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, ...
1
vote
1answer
21 views

Twig Runtime Error on settings/general (value: system.name)

When I go to settings/general in the CP i get this Twig Runtime Error. Does anoyone here know what to do to fix it?
0
votes
0answers
21 views

Admin Panel For Page Only Shows Disabled Matrix Blocks

I'm a Craft novice trying to help some people who have taken over a Craft 3 website. There is a Single Page where the Main Content is a series of Matrix blocks. The problem is the admin Control Panel ...
0
votes
0answers
15 views

Sort by entry type in admin?

I want the list of entries in admin to allow sorting by entry type. It can sort by any arbitrary field, but not entry type or author (for some weird reason). Is there any way to modify that without ...
1
vote
1answer
16 views

Making custom changes to CP language

I want to change a few words in the CP (Craft 3). What's the best way to do it, without being overwritten by a Craft update if possible...? I was thinking about creating my own language file, but can'...
0
votes
0answers
15 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,...
1
vote
1answer
17 views

How to hide the assets section of the control panel to specific user groups?

I need to hide the assets section of the control panel to a given user group. Changing the group permissions to prevent them from viewing all asset volumes also prevents them from uploading assets in ...
1
vote
1answer
38 views

How to search for Entries that have a particular Category set within a Matrix field in the Control Panel?

I have an arrangement like this: Entry type 'people' └ Matrix field 'offices' └ Block type 'office' └ Category field 'building' On the Entries screen, how can I search for people that have a ...
1
vote
1answer
27 views

Can't search for drafts in Control Panel

I just updated to Craft 3.6x, and I noticed that suddenly all my drafts are showing up by default. This confused users, as there were a bunch of them that people had abandoned. But I noticed that the ...
2
votes
2answers
59 views

How to modify the login panel

how can i modify the login html? I specifically want to add an image below the title.
0
votes
0answers
13 views

Super table field in the element index table page (defineTableAttributes)

I've built a Custom Element called Contact and I've defined almost all the functions it needs including Contact::defineTableAttributes(). My question is two folds: How can I have my plugin install ...
2
votes
1answer
27 views

Apply custom filter on the entries in admin control panel using custom plugin in craft cms 3.5

I was referring to Filter entries in the CP based on custom permission and Filter entries in the CP based on custom permission It seems onBuildElementsQuery was available only in 2.x. Is there any ...
1
vote
1answer
19 views

Removing the Save button based on some condition

I want to remove the Create button of an entry based on some condition (review states) for some users. Is there a way to hook in within a module?
0
votes
0answers
27 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. ...
0
votes
1answer
34 views

How to properly change / add to CP HTML

I'm making a change to the CP so that clicking an asset thumbnail from the asset preview HUD will open the asset in a new tab. Specifically, I'm changing line 1685 of craftcms/cms/src/elements/Asset....
0
votes
0answers
54 views

Craft 3: Debug Toolbar is 404ing and won't display on multi-site setup

When I am logged in as an admin and I have both of these options enabled on the user preferences: ... the Yii debug toolbar still does not display and there is a 404 error that appears in console, ...
0
votes
0answers
22 views

Trouble getting the CP url to work correctly with a proxy server

Background: My client is using a proxy server to point to the production environment of the project. So for example their deployment is at https://messyurl.com, but their proxy server is routed to ...
1
vote
1answer
27 views

Is it possible to show commerce product id's in the control panel?

For entries you can show the ID in control panel listings. I can't find a way to show craft commerce product ID's in a similar way in the control panel. Commerce 3
1
vote
1answer
36 views

Is there any way to adjust the width of the custom field in the admin panel?

I want to adjust the width as ( 25%, 50%, 75%, or 100%) of the custom field in the admin panel.
1
vote
1answer
98 views

Custom Module: new element type index page access

Hello I've created a new element type in a module (a web app within Craft) that I'm developing. I have initially created my models to be craft\db\ActiveRecord and save directly to their tables, but ...
0
votes
0answers
22 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 ...
1
vote
1answer
62 views

Displaying notification in control panel

Is there any js function that will display these notifications that appear on top of the screen? Flash messages use these notifications, but I don't want to use flash messages, I want to display ...
0
votes
0answers
19 views

Control Panel: Order search results from a structure?

A client of mine asked how he can sort entries tied to a specific category in a structure. I thought to myself that this is easy, so I went and did a search myself: category_field_name:...
0
votes
1answer
48 views

$this->renderTemplate() breaks the CP navigation

I'm locally working on a Craft Plugin with a Page in the Control Panel where I have a form that posts to a controller. <form action="/actions/import-products/product/create" method="...
0
votes
0answers
41 views

Add new translation app.php file in Craft

I'm trying to add a new language file in Craft Control Panel admin site. I have created app.php inside translations/vi folder like this: -my app folder |-- translations |----- vi |-------- app.php ...
0
votes
0answers
17 views

When creating a new entry, what controls field focus?

When I create a new entry, I noticed that the focus jumps to a field within the first matrix block. This is not something I explicitly set, I can't find anything in the documentation about what ...
0
votes
0answers
14 views

Leave search term active in control panel

i have to edit entries with the same titles. That's why i search for these titles in the search bar of the control panel, edit the first entry, save it and then search again for the same titles and ...
1
vote
1answer
31 views

returning HTML in $event->sender->addErrors doesn't work

I have a plugin which is checking if there is a duplicate entry before save. I'm trying to give the user back an anchor to the entry which exists so my client can switch without searching for it in a ...
1
vote
2answers
102 views

Bad Request Unable to verify your data submission and unstyled CP

First of all the control panel login is unstyled, and I'm getting Bad Request Unable to verify your data submission when trying to login to the control panel. I can login using a form on the front end,...
1
vote
1answer
50 views

Performance issues in CP with +60k articles database

We are are working with a large dataset of over 60k articles. The craft control panel has a very hard time loading the entries list tables. Using debug I see that the queries that takes up the longest ...
1
vote
2answers
61 views

How to temporarily disable entries of one site version within a site group?

A client asked me to temporarily disabled all of its entries of one of its Site in a specific language. This entries should not be accessible anymore from their URL. The quickest and cleanest way to ...
0
votes
0answers
25 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}} ...
1
vote
1answer
42 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
1answer
21 views

CP assets uploads are reverse ordered after upload

Problem CP assets uploads are reverse ordered after upload. Description I have a folder with 5 images: 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg I want to upload these images in the Craft CP. I have an Asset ...
1
vote
1answer
36 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 (...
1
vote
1answer
17 views

Using Preparse field to display matrix blocks in Control Panel, limitations?

I can successfully use the Preparse field type to display matrix fields in the control panel, however, the output is very limited. Even my tag is stripped out. Is there any way to do this short of ...
0
votes
0answers
48 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
36 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 ...
1
vote
1answer
101 views

How to make field instructions show as tooltip?

How to turn show as the following style
1
vote
1answer
79 views

Uninstalling a plugin from Craft control panel

I'm new to Craft CMS and I'm having trouble figuring out how to uninstall a plugin. Specifically, it's the "Redactor Custom Styles" plugin. I gather from searching (please correct me if I'm ...
2
votes
0answers
34 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 ...
2
votes
1answer
56 views

Set default status in CP admin for queried entries from “All” to “Live”

Just wondering if there's a way to set the default status for the entry listing pages in the admin, in my case from "All" to "Live". This would need to account for a page "refresh" and navigation ...
2
votes
1answer
38 views

Plugin removed, can't get rid of its data | Control Panel JS

I was using the Control Panel JS plugin, and I entered some erroneous JavaScript that caused it to break the control panel. I then deleted its row in the plug-ins table in the database, and all ...
1
vote
1answer
72 views

What is causing Craft CP assets(JS/CSS) to appear in front-end pages?

Perhaps in some way related to this, I've got a couple of front-end pages on our website that pull in the following files, which seem to all be CP files. These two pages each utilize plugins I've ...
1
vote
1answer
20 views

Do Freeform Events Fire From Control Panel?

It appears to me that Freeform Submission events do not fire when editing events in the control panel. They certainly fire from a front-end submission. That would make this statement in the ...
1
vote
0answers
39 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
2 3 4 5
8