Questions tagged [control-panel]
Questions having to do with Craft's control panel.
424
questions
1
vote
1
answer
53
views
I have an existing project called Craft cms v3.3, what should I do if I want to run it at local?(Mac OS)
I currently have a project that is definitely craft cms v3. I want to run it but this is the first time I keep stressing over it. Please help me
1
vote
1
answer
62
views
How to extend or override CP template?
I need to add some custom condition to the top siteMenu selector.
Template file with top menu:
vendor/craftcms/cms/src/templates/_elements/sitemenu.twig
Block with this menu:
vendor/craftcms/cms/...
0
votes
2
answers
42
views
CP / Backend: Restrict single entry only to admins (edit / delete)
I'm searching for an idea, to protect a single entry from being edited / deleted by editors (CP / backend).
Of course, it's easy to do for fields or sections, but for a single entry ... hmmm ...
...
0
votes
0
answers
24
views
Live preview button(s) gone after enabling different domain for control panel
I'm building a Craft website which will need another domain for the control panel.
The setup for this has gone good using this article. => https://craftcms.com/knowledge-base/access-control-panel-...
1
vote
2
answers
46
views
control panel: bidirectional related entries // concatenate entries
Is ist possible to "concatenate" entries?
For example:
You have five articles (A, B, C, D, E) ... might be a blog
Editing the article A: A is related to C and D
The relation should work ...
2
votes
1
answer
46
views
Save Control Panel search filters? Craft 4
I love the new control panel search filters. However, I see no facility to save them, and nothing in the documentation. Is there way to do this?
1
vote
1
answer
70
views
Can't login to control panel
not sure what I did but my DEFAULT_SITE_URL in .env was set to http instead of https 0and when I tried to login to control panel on my desktop the page would load but when I submit the login form it ...
1
vote
2
answers
50
views
Automatically save an Entry Type to a specified Structure level
I often use multiple Entry Types in a Structure so that the 'Landing page' and 'Entries' are in the same place in the admin for the site editor... e.g.
L1 Landing Page (header image, introduction etc)...
1
vote
1
answer
36
views
Reuse entry form layout in custom module
I'm currently developing a custom module.
I created a section called "bookings" with an entry type containing some fields.
I designed the form layout as i wanted.
In the CP, the Entry ...
2
votes
0
answers
27
views
Allow filtering elements by fields on related elements in element indexes
I'm trying to show some additional columns in the entry index, and allow editors to filter and sort by them. The problem is that the fields that need to be used for sorting are set on related entries, ...
0
votes
0
answers
113
views
CP templates are slow to render
My CP pages are taking ~15 sec to load. It seems the bottleneck is in rendering the Twig templates. This slowness also seems to have manifested quickly and it's affecting multiple separate Craft CMS ...
0
votes
0
answers
20
views
Sort entries by Author in Control Panel list view
We have large lists of entries and many different authors who have added them. Now we want to sort the Control Panel list view on Author, so that we can review the entries, one author after another.
...
1
vote
1
answer
245
views
Adding Custom button to CP
I'm trying to add a custom button in the sidebar of one of my entries.
I've found that it could be done in Craft 3 with this template hook: cp.entries.edit.details (e.g. How to add a custom button at ...
1
vote
1
answer
29
views
Craft 3 CP restriction
How can I add an extra layer of authentication to cp in craft3? The client wants to add 2FA - I have been through the plugins with simpler restrictions, but these appear only for the front end. 2FA ...
1
vote
1
answer
362
views
Update to Craft 4 causing CORS error on login to CP on live site only
I have recently updated a website to Craft 4 and all went well, but now I cannot login to the Control Panel as I'm getting an error:
Access to XMLHttpRequest at 'https://www.xxx.com/index.php?p=...
0
votes
1
answer
162
views
"Unable to verify your data submission" error when logging into Craft Control Panel
After a recent Craft/plugin upgrade, I could not log into the Craft control panel. After submitting the login form, I received the error "Unable to verify your data submission".
I cleared my ...
2
votes
1
answer
86
views
Alternate way to test Preparse field?
I'm trying to use a Preparse field to display something conditionally depending on entries' lastUpdated property. In pseudocode:
if lastUpdated < (now - 30 days)
**>30 d**
endif
However, ...
0
votes
1
answer
21
views
CP Edit Columns only possible for admins?
I just found out that non-admin users can't edit the columns shown for the entries. Is there a way to activate this for non-admin users as well?
1
vote
0
answers
55
views
Updated to Craft CMS 4.2.5 and now the "New Category" button is missing in Control Panel [closed]
Like the title says. I've just updated to the latest version while building out a new site in Craft CMS and the New Category button is missing from the Categories screen in the CP. Both when you go to ...
0
votes
1
answer
158
views
How to find if there is a draft for a particular entry in control panel plugin
I am trying to display a notification to the user in CP, if the entry is having a draft so that the next user won't redo/overdo the other draft. For that how do we find the entry has drafts?
1
vote
1
answer
97
views
Using index hints to get around performance issues with large structures table
We're experiencing performance issues in CP stemming from having a decent number (>20k) of records in structures and the mysql is using the wrong index (dateDeleted instead of primary). This issue ...
2
votes
1
answer
125
views
500 Internal error on 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 ...
2
votes
2
answers
582
views
Invalid field uid
I keep seeing this in the craft debug bar in the control panel
Invalid field UID: 22faa4bf-2fb5-415b-b4e9-2416fe728843
How can I investigate what this means and resolve it?
UPDATE:
I've searched the ...
1
vote
1
answer
118
views
How to increase control panel pagination item count?
Our client whats to show 200 records in the control-panel entries list per page. Is it possible to change via any config settings?
1
vote
1
answer
105
views
Is it possible to create a link to the cp that shows all pending entries of a section?
As the question states, I want to create a link that sends a user to the entries page only showing the pending entries.
I tried using the cpUrl function but can't seem to get it directly to the ...
1
vote
2
answers
341
views
Craft CMS v3.5.16 /admin/login 500 (Internal Error) occurs after site moved
Original site works fine. Moved site to new hosting (same domain name i.e. nutrano.com.au) via CPanel and now whilst /admin/login is accessible Invalid credentials show "Invalid username or ...
1
vote
1
answer
34
views
Table Field fixed column content(placeholder) for all entries
I have a table field with 3 columns, one of them is 'Weekday', Type = single line text.
how can I set a placeholder to the weekday column ( Monday, Tuesday,....) in the Control Panel.
right now I have ...
1
vote
1
answer
40
views
Display time along with date in admin listing page
We need to display time along with the date in the admin listing pages. I do know that the tooltip will show the time. But the client needs the time to be displayed on the listing itself. Is there an ...
2
votes
1
answer
212
views
Is it possible to increase the number of entries in the entry list in the entry view, where default is 100 per page?
Is it possible to increase the number of entries in the entry list in the entry view, where default is 100 per page? We want to show 300 entries per page in the admiun panel.
3
votes
1
answer
174
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
1
answer
110
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
0
answers
28
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
1
answer
263
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
1
answer
286
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
1
answer
345
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 ...
2
votes
1
answer
88
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
1
answer
52
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
1
answer
318
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
1
vote
0
answers
29
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
0
answers
40
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
0
answers
58
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
1
answer
83
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?
1
vote
1
answer
54
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
0
answers
17
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
1
answer
95
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
1
answer
76
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
1
answer
31
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
2
answers
820
views
How to modify the login panel
how can i modify the login html?
I specifically want to add an image below the title.
2
votes
1
answer
176
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
1
answer
67
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?