Questions tagged [control-panel]

Questions having to do with Craft's control panel.

Filter by
Sorted by
Tagged with
3
votes
1answer
23 views

Control panel icons list

Is there any list of icons used in control panel avaible? These ones that are displayed using webfont Craft.woff.
2
votes
1answer
28 views

Filtering lists of entries in the control panel by entry type

I’m aware of Filtering/searching for entries by category in the control panel, but that doesn’t work for: entryType:"String" …where ‘String’ is the entry type name or handle, or… typeId:Int ...
0
votes
0answers
20 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'...
1
vote
1answer
24 views

Customizing Field Layout / UI element in Craft Control Panel

Maybe I don't understand well the usage of UI Element in Field Layout, but I would like to display something more 'jazzy' for the admin on his CP and I thought inserting a twig template in the page ...
0
votes
1answer
45 views

CP Module: saving, editing, and reading a form

I read the docs multiple times but I'm stuck. I need to create a module that shows a form in the CP where an admin can input and save answers to 2 questions. It will always be just one single form. I ...
1
vote
1answer
66 views

Why do i get an Invalid route error in cp when calling plugin action?

I have a plugin that has a menu and in backend which basically has a button that calls the plugins default controller actionXXXX method. The action does some database / api work then is meant to ...
0
votes
0answers
25 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 ...
2
votes
1answer
53 views

Adding column to CP entries without writing plugin?

Is there a way to add a column to the control panel display of entries? I would strongly prefer to not write a plug-in for this. The contents in the column would be nothing more than a button that ...
1
vote
1answer
29 views

Block access to /admin on secondary sites

I'm not clear on how to block access to the control panel at: secondDomain.com/admin secondDomain.com/admin/login I can use .htaccess or Craft's config.php. I want folks to get an ugly 'access denied' ...
1
vote
1answer
96 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
11 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
17 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
34 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
28 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
33 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
22 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
28 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
21 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
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,...
1
vote
1answer
41 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
61 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
28 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
165 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
24 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
50 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
22 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
41 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
75 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....
1
vote
1answer
48 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
50 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
260 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
26 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
147 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
1answer
61 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="...
1
vote
1answer
66 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
3answers
555 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
54 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
148 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 ...
1
vote
1answer
66 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
24 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 ...
2
votes
1answer
73 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
23 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
58 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
44 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
144 views

How to make field instructions show as tooltip?

How to turn show as the following style
1
vote
1answer
167 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
53 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
85 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
41 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
129 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
2 3 4 5
8