Questions tagged [control-panel]

Questions having to do with Craft's control panel.

Filter by
Sorted by
Tagged with
12
votes
2answers
976 views

Why are some entry detail views empty in the control panel?

I can't seem to edit entry details all of a sudden: in this Products section (and only this one section), the page title and "Current Version" button will render, but the rest of the page is missing. ...
18
votes
2answers
5k views

Can a plugin add JS or CSS to the control panel?

Say for example, I wanted to add a "Expand/Collapse All" button to Matrix fields. Is there any way to do this, or is this something more appropriate for a feature request for P&T?
23
votes
1answer
2k views

How can my plugin generate a generic modal window in the Control Panel?

I'm working on a plugin, and it requires a modal to be displayed when the user interacts with a field of my Field Type. When the user finishes interacting with the modal, they would click "Done". ...
9
votes
2answers
1k views

Plugin Dev - Load third party library

What is the preferred way of loading a third party library in a plugin? I'm trying to develop a plugin to extend SproutForms so that users get signed up to Campaign Monitor. So far I've got an ...
7
votes
2answers
2k views

Does Craft Have Publishing Workflow?

Is it possible to allow some users to write content & an editor can edit & publish / approve it?
8
votes
1answer
3k views

{parent.uri}/{slug}

In Craft 2.x you have the option of setting the top-level entries URL format for a structure section separately from nested entries i.e. top-level/{slug} and {parent.uri}/{slug} But in Craft 3 the ...
5
votes
3answers
937 views

Can I disable the control panel?

Is it possible? I have a situation where a client needs the production site to be completely shut down and void of content updates. They do all of their content management on a staging site, then ...
2
votes
2answers
1k views

Live Preview XMLHttpRequest error

When I watch my site trough live preview the previewframe is left blank, and in the console there appears the error: ` XMLHttpRequest cannot load http://domain.com/template . No 'Access-Control-...
4
votes
1answer
984 views

Adding additional attributes to modifyEntryTableAttributes()

Using the example code from the docs, I'm attempting to add a value from my custom field to the Entries listing. public function modifyEntryTableAttributes(&$attributes, $source) { if ($...
5
votes
1answer
716 views

How to reference the current entry element in custom Control Panel templates?

This might provide it's own answer, but I thought I would ask to be sure. How do you reference the current entry in custom fieldType or CP templates? I have tried {{ entry.id }}, {{ element.id }} but ...
4
votes
3answers
1k views

Getting “Session Ended” popup in admin

Every minute or so I get the "Your session has ended" popup in the admin. Entering my password just pops the message back up. If I reload the page I'm still logged in. I'm running Craft in vagrant so ...
4
votes
1answer
994 views

The file does not appear to be an image. Bug?

I've installed the latest ImageMagick on my ubuntu 14 server. If I force imageDriver to use 'imagick', I can only upload Gif images. And if I force it to use GD, I can upload all images but only ...
3
votes
1answer
2k views

Deleting Stale Template Caches Failed

I continue to see these pile up. If I clear my template cache, I can hit retry on each and they go away, but that's getting tedious. I have the following from a P&T support request on these a ...
7
votes
2answers
2k views

Get Entry Edit Link in Twig

I want to add an "Edit entry" button on each page for admin users. Am I overlooking a simple way to output the Edit link to the CP edit page for the current entry? Curious if there is something like {{...
2
votes
2answers
3k views

Change system language

I have a craft installation (that's up to date), that was installed with english as the system language. Now that Craft has quite a lot of system languages, is there a way to change to another ...
3
votes
1answer
410 views

Set custom sort order for index pages in the CP?

Good chance this is more of a feature request than a question you can help out. But as I am new to Craft plugin development and might oversee something I ask it anyways: Now that it is possible to ...
5
votes
3answers
939 views

Filter entries by entry type in the CP?

We have a channel called Articles with multiple entry types. Is it possible to filter the entries within Craft (on the Entries page) by entry type?
3
votes
1answer
479 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
425 views

Possible to add category field to modifyEntryTableAttributes?

I'm playing around with the modifyEntryTableAttributes() and tried adding a category field. I get an unknown error has occurred. Guessing there's a problem with it being a category field and not ...
9
votes
2answers
702 views

How can I run the Control Panel from a separate domain?

Is it possible to separate the public site and the Control Panel on separate domains (i.e. www.domain.com and admin.domain.com)? With baseCpUrl you're able to force the admin URL to admin.domain.com, ...
7
votes
1answer
807 views

Filtering/searching for entries by category in the control panel

Is there any way of filtering by category in the control panel entries list? Likewise, is there for an "entries" field (like how Playa lets you filter by channel, category)?
2
votes
1answer
333 views

Possible to redirect elsewhere after saving an entry?

I'm editing an entry in the CP... mysite.com/admin/entries/mySection/33-my-awesome-entry Now when I save this entry, it will redirect me back to the entry index page. However, I'd like to override ...
1
vote
1answer
340 views

German locale & English CP language resulting in disappeared entries

I have just one locale (German, de). Now, I've changed my CP language to English ('defaultCpLanguage' => 'en' in general.php). But now, all my entries have disappeared in the CP (Craft Pro 2.4.2670). ...
1
vote
2answers
646 views

Content / fields of newly created single don't show up

After a fresh install of Craft on my localhost, two problems occur: 1) The modal window to upgrade Craft only says "An unknown error occured." 2) Newly created singles are not editable, the edit ...
4
votes
1answer
535 views

Account verification error

I have created a new account and attempted to verify the account by clicking the activation link in the verification email. On doing so I get the following error. Bad Request Param “id” doesn’t ...
3
votes
1answer
622 views

Environment Variable siteURL ignored

In my general.php file I have a siteUrl environment variable declared: 'ontherocks.dev' => array( 'devMode' => true, 'environmentVariables' => array( 'siteUrl' => 'http://...
3
votes
1answer
261 views

Setup default Matrix blocks and default values for sub-fields?

Question is what table can't achieve, can be achieve by matrix but problem is matrix cannot have default row value like table have. Anyway to achieve it? Thanks.
3
votes
2answers
279 views

How to change the display order of columns in Entry List view?

When adding a custom column to an Entry List view using the modifyEntryTableAttributes hook, how would you also set the display order of columns?
2
votes
2answers
919 views

/admin/actions/users/login 404

When trying to login to my live env on craft, I get the following error in the javascript console. [Error] Failed to load resource: the server responded with a status of 404 (HTTP/2.0 404) (login, ...
2
votes
1answer
244 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 ...
2
votes
2answers
399 views

Control Panel access. Greyed out button [closed]

The Admin login screen for my site is not working. The button to submit my credentials is greyed out and submission by pressing enter is not working either. Not sure how to go about solving this one ...
2
votes
2answers
155 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 ...
1
vote
1answer
382 views

Correct behaviour for 'Login as user' when user cannot access CP? [closed]

A client uses the 'Login as user' behaviour to be able to see what users of the site are seeing, useful as it's an e-learning site and each user can see different content based on their progress. The ...
1
vote
1answer
104 views

SSL now CP unknown errors

I have a Craft 3 site that's been running on a production server. Recently we switched over to https but this has caused issues in the CP (multiple 'An unknown error occurred' red flags, can't view ...
1
vote
1answer
290 views

postCpLoginRedirect wrong redirect when used with autoLoginAfterAccountActivation

See below updates and accepted answer for a full solution I finally discovered postCpLoginRedirect which solves my needs, even though I only need users to access their profile (which includes lots of ...
1
vote
3answers
758 views

Get the current entry element in the CP (edit entry view)?

You can listen to entries.onSaveEntry or entries.onDeleteEntry events and then get or modify the entry via $event->params['entry'];. But how would I get the entry element and its properties in the ...
1
vote
1answer
460 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 ...
1
vote
1answer
566 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 ....
1
vote
1answer
698 views

Craft CMS 3 admin panel returns 404 with SSL

I'm using MAMP Pro for local development and was gong to set up my site with SSL this time around. I got a self-signed cert for local dev and I can go to my development site over https:// without any ...