Questions tagged [control-panel]

Questions having to do with Craft's control panel.

Filter by
Sorted by
Tagged with
3
votes
0answers
99 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 ...
1
vote
1answer
496 views

Unknown error occurs on every AJAX call in CP

I was working on a plugin with a hook on onBeforeSaveEntry in my dev environment (which is configured exactly like my live environment). I had a var_dump with an exit in the hook to check output of ...
2
votes
3answers
507 views

Triggering JavaScript from back-end event

I'm building a plugin and want to trigger some JavaScript on an event being fired (eg an entry being saved). What is the best way to achieve this? Coming up short looking through the documentation and ...
1
vote
1answer
531 views

Debugging an error (“An unknown error occurred”)

I keep getting an error when I am in the CP. The stack trace of the error that is logged is below: 2016/08/02 01:12:05 [error] [exception.Craft\HttpException.404] exception 'Craft\HttpException' in /...
1
vote
1answer
647 views

“Unknown error” constantly, seems tied to user preferences

I have a user group called Content Loaders with limited permissions. After creating a test user in this group I got an "An unknown error occurred" message every time I navigated anywhere in the CP or ...
1
vote
1answer
66 views

Tracking SQL queries from CP changes

We are developing over multiple environments and production stages, and we would like to be able to track the SQL changes that happen when we make a change to entries etc. on the CP. The changes don't ...
0
votes
0answers
83 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: '...
5
votes
2answers
968 views

User permissions on a per-entry basis?

I have a Structure section that contains most of the pages on my website. We have users that need to edit only some of those pages. Since permissions are set on a per-section basis, right now they ...
1
vote
1answer
315 views

Customizing CP Entries section template

First, which template does the actionGetElements use to generate a response? Second, how can I customize the template for a single entry section?
2
votes
1answer
118 views

Sharing files with logged-in users

Our client is a builder and they need a way for their contractors to login and upload/download documents about each build (plans, building consents, information etc). They (the builder) also need a ...
1
vote
0answers
65 views

Control Panel, Landscape / Portrait Images [closed]

How can i achieve that portrait images in Control Panel are shown as portrait images. Now they all are stretched to fit the width of the parent container. This behaviour is only in "Big View" of ...
2
votes
1answer
214 views

Disabling the target=“_blank” on admin site title link

I'm looking to hook into this somehow to adjust the title home page link in the top left corner of the admin pages to stop opening in a new tab. Anyone have any good solutions for removing the target="...
2
votes
1answer
398 views

Admin CSS missing from hosted site

The development site works locally, but on a live hosted server the admin CSS is missing. The admin JS shows up. The public-facing site works fine on the live server and I can log in to the admin area,...
2
votes
1answer
196 views

Control Panel, sorting issue

i am new to craft. Is there a connection between the control panel sorting setting for structure entries and the template output. {% set entries = craft.entries.section('projects') %} Changing sort ...
2
votes
1answer
89 views

Entries form in control panel won't display if I have a Matrix field enabled

I'm new to Craft, and have a local installation of version 2.6.2789 I have created a section with its own field layout. Everytime I enable a matrix field in the field layout, the section entry form ...
4
votes
1answer
1k views

YouTube video embeds in rich text field not saving

When adding a YouTube video to a rich text field the video embed appears as expected. The entry then fails to save with no error (if I make other changes at the same time they don't save either). ...
1
vote
1answer
148 views

How to notify the user from a Task

Is it possible to somehow notify the user from a completing task? I am walking trough a set of .csv files and on completion i would like to notify the user. // last step $stepIndex = $step + 1; if ( $...
2
votes
1answer
266 views

How to add assets field to control panel plugin template

So, a date field can be added to a plugin template within the control panel using: {% from "_includes/forms" import date %} {{ date({ id: 'fields-invoiceDate', name: 'fields[...
1
vote
1answer
84 views

How can I access or set a Task's properties inside a class or method?

How am I able to get or set additional properties on a Task model inside a plugin. Eventually I would like to influence the Totalsteps of a task. $task = craft()->tasks->createTask('Reroute', '...
3
votes
0answers
130 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&...
1
vote
1answer
47 views

Can anything be done to suppress or limit the clickable area of the checkbox in a Matrix block header?

You know, the one that gangs blocks together but never really gets explained in the docs. I hate that thing. I hate it because double-clicking (or single clicking) anywhere in a Matrix block header ...
3
votes
1answer
311 views

Listen for checkbox check event for assets table and modify action trigger menu item

I am able to listen to an event when the user checks the checkbox in the assets table. This is within my js file init file that extends garnish: Garnish.Base.extend When the checkbox is selected, I ...
3
votes
2answers
507 views

Is there a way to detect if a action is triggered from a control panel form?

We're building a content platform for a bank for a client of us. One required feature lets relationship managers add clients (members) to the platform which get assigned a specific group. We listen ...
3
votes
2answers
486 views

Cannot enable Craft plugin in control panel

I'm attempting to enable a plugin from within the Craft control panel but I am unable to do so. It shows Disabled and when I click "Enable" it shows "Plugin Enabled" at the top but still shows ...
3
votes
1answer
282 views

Settings in Admin Panel Blank

Have kind of a weird problem going on with my site, which I just moved over from my staging server to production. Originally, everything looked fine, except I couldn't get into the Admin Panel. I ...
2
votes
1answer
277 views

Moved from dev to prod server, admin page blank

I have a dev server (sandbox.site.com) and a prod server (www.site.com). I copied over the contents from sandbox to dev using cp -r. Loading up my website on the production site looks fine. Everything ...
3
votes
1answer
62 views

URI not shown anymore for structures?

In the entry list for structures, there used to be a column where my client could see the URI of each entry. Now that it dissapeared because of what seems to be the last update of Craft CMS, how can I ...
1
vote
1answer
382 views

How to edit the Date Created value that appears on the Entry page

I've just noticed that there's a Date Created value that appears for each entry in the control panel. Here's a screenshot: . How can I edit this Date Created value? I've just looked at the ...
1
vote
1answer
41 views

Can Matrix fields be added/shown on the entries listing of the control panel?

Is it possible to add a related matrix field and show the first entry in that field on the http://domain.com/admin/entries section of the control panel?
4
votes
3answers
613 views

Asset thumbs missing in control panel after Assets Source update

I've updated several Assets Sources on my production site. I've exported / imported the database from production into local - the new Assets Sources are in place but the asset thumbs are now missing. ...
2
votes
1answer
72 views

Separate time settings from user locale?

I would like to render the DateTime fields in the backend with european time format, even though the user I'm logged in with is set to English/US. Is this possible?
3
votes
2answers
385 views

Plugins in admin navigation

Is it possible to choose which plugins appear in the main admin navigation? I've installed Entry Count (https://github.com/putyourlightson/craft-entry-count) and it's now showing in the navigation (...
2
votes
2answers
182 views

Restrict entry editing to category / topic

How can I implement security which allows members to only publish an entry in an assigned category / topic? Example: The site is a business directory. Business listings are published in cities: New ...
2
votes
0answers
64 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' => ...
1
vote
1answer
292 views

Live Preview and CDN caching

We have a problem with using Live Preview on a site that uses CDN caching [CloudFront]. When opening Live Preview a POST is sent to the actual page URL containing the information and the response is ...
1
vote
0answers
60 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 ...
3
votes
2answers
303 views

When I flip the “Featured Entry” switch, disable it on other entries [duplicate]

Assuming I'm using a lightswitch to denote an entry as "Featured," how can I then disable that lightswitch on every other entry, so that no matter how many times I flip these switches only one entry ...
5
votes
1answer
256 views

Is there a way to see the total number of entries in a channel in the CP?

Is there a plugin or something I'm missing in the CP to just see how many entries are under any given channel or structure?
1
vote
1answer
85 views

Richt text change default configuration

Is it possible to change the default settings of the Rich text field? I know that I can change the configuration in Simple.json and Standard.json but I can't find a Default.json file.
1
vote
1answer
178 views

Log in as different users in backend front end at the same time?

Is it possible be logged in with different users in frontend and backend, and if so, how do I do that? It would be very convenient being able to test logging in/out different users in frontend, ...
2
votes
2answers
437 views

Filter entries in CP by Author

How can you filter entries in the CP by Author? I assumed entering something like author:tdavis (where tdavis is my username) would do it, but no results returned. I also tried substituting id for ...
2
votes
1answer
204 views

How to add a custom tab in the user editing page

I try to add a custom tab to user account editing page, but there is only one default tab called 'profile' to use and we are not allowed to add another tab there. I am just wondering if this is the ...
0
votes
2answers
73 views

How to allow Asset removal in the Control Panel for an Entry

I've installed Craft Personal 2.5.2763, and have set up my own simple blog. For each Entry in the Blog Channel, I've set up an Asset Field, which is used for the header image displayed on the blog ...
1
vote
1answer
728 views

Remove subdirectories from admin URL with .htaccess

I have Craft public files set up within subdirectories of a primary domain’s web root. public_html/ # default web root public_html/example.com/public_html/ # Craft public files here The following ....
3
votes
1answer
577 views

How do I properly use Twig syntax in dynamic title/URL fields?

I have an idea to create urls for entries that can't be guessed, but are automated without any extra effort from the content creator/editors. The intention is for the URL not require any ...
1
vote
1answer
321 views

How to set error message in element action?

I call a service function inside the performAction method of custom element-action and I'd like to show an error message to user if the service function returned false. I was able to set success ...
3
votes
1answer
301 views

Possible to speed up infinite scrolling?

In the control panel, on the entries index page, Craft uses ​infinite scrolling. However, when you scroll to the bottom, there's a slight delay while you wait for more entries to load. Unfortunately, ...
2
votes
1answer
106 views

Entries not being searched in the control panel

I have a 'person' channel that does away with the title field and instead uses custom fields like so {lastName}, {firstName}. However, I've noticed that when I'm looking at the entries listing in the ...
3
votes
1answer
1k views

Twig url() function returns CP path when called from plugin

I'm using Postmaster plugin to handle my e-mails using a custom service for SendGrid. In my templates I use Twig's url() function to create my URLs. When they are sent by Postmaster, craft->...
10
votes
1answer
573 views

How does the Craft Grid System work?

Plugins are able to extend Craft and embrace the existing UI nicely. While I'm comfortable extending it in many ways, I don't feel like I could clearly explain to somebody else how the grid system ...

1
4
5
6 7 8