Questions tagged [control-panel]

Questions having to do with Craft's control panel.

Filter by
Sorted by
Tagged with
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". ...
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?
12
votes
2answers
1k 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. ...
11
votes
1answer
474 views

How can I utilize existing UI for my plugin's control panel views?

I'm new to building plugins and I need to make templates for the control panel. How can I use existing Craft UI components to keep things consistent and save myself from having to rebuild everything?
10
votes
1answer
547 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 ...
9
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 ...
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 ...
9
votes
1answer
740 views

How can I add a RichText-Field to my plugin's CP-section?

I'm trying to add a redactor richtext field to one of my plugin templates in the CP. I found macros for every field in craft/app/templates/_includes/forms, but a richtext macro is missing. I assume ...
9
votes
2answers
736 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
2answers
3k 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 {{...
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?
7
votes
1answer
169 views

Is it possible to change the title of “Quick Post” dashboard widgets?

For this particular build the client will frequently be creating 3 similar, but unique, types of content all housed in the same section which differ by a Content Type. When creating "quick post" ...
7
votes
1answer
996 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)?
6
votes
2answers
190 views

How to tweak login logo position?

When I add the company logo it appears aligned to the left with a lot of space on the right side. How can I make it appear to the center? I know that adding background-position: top center; to the ...
6
votes
1answer
184 views

Is it possible to reorder globals in the back end?

Right now Globals are listed in alpha order in the back end. I was wondering if it would be possible to reorder them somehow? Maybe when working under Settings > Globals, etc.?
6
votes
2answers
3k views

Javascript events when modal window is opened or closed

How can I detect when a modal window has been opened or closed? I am writing a plugin which wants to detect when a garnish elementeditor modal window has been opened or closed.
6
votes
1answer
171 views

Assets Control Panel searches only current folder, not sub folders?

When searching for an Asset in the Assets Control Panel, does it search everywhere? Does it search in subfolders? e.g., If I search for the title "image_1", does my search need to be done on the ...
5
votes
3answers
1k 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 ...
5
votes
3answers
1k 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?
5
votes
1answer
252 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?
5
votes
1answer
798 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 ...
5
votes
2answers
870 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 ...
5
votes
1answer
150 views

How are changes to the dashboard scoped?

I'm working on a Craft project with another developer. We're connected to the same shared database but my dashboard is different than his (I customized mine). This made us wonder how the custom ...
5
votes
1answer
528 views

Easiest way to make a table in the Control Panel sortable?

I know that if i have created a new ElementType for my plugin that I can use the same template that Entries uses: {% extends "_layouts/elementindex" %} {% set title = "Entries"|t %} {% set ...
5
votes
1answer
270 views

Is there a user stats plugin available?

I am looking for a plugin or simple method that can add some stats to the User Admin. We have a membership site running for a client and it would be good to add either a count to the sidebar User ...
4
votes
7answers
4k views

Live Preview not working

Live Preview isn't working for any kind of entry. Dev or production. I get the following error on chrome's console. jquery-2.1.1.min.js?d=1409764106:4 POST http://undiario.dev/ 500 (Internal Server ...
4
votes
3answers
586 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. ...
4
votes
1answer
2k views

How to create subfolders in the Assets view?

I can't find any information on this issue, but I'm not seeing any way to create subfolders in the Assets view of the control panel. I just see all of my images with no folders. Is this feature ...
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
2answers
607 views

Is there any way to change the CP navigation item for a plugin?

I'm wondering if I can have another name for my Plugin CP navigation item? Let's say my plugin is called "Company name Social Media" but I want the navigation item to just say "Social Media". Might ...
4
votes
2answers
315 views

Disable modification of assets title and name

I want to disable the modification of both the file name and title of a specific asset type. How can I do that ?
4
votes
1answer
296 views

Prevent ALL templates from being rendered directly? [closed]

I attempted to set the privateTemplateTrigger to an empty string in my config/general.php file, because I don't ever want Craft to serve up a template file on its own just because a visitor happens to ...
4
votes
1answer
308 views

ElementType CP section does not display table

I can not for the life of me figure out why my cp page will not generate the elements table. On other elementtype pages in the cp there is an XHR request made to a controller called "getElements" and ...
4
votes
1answer
1k 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 ($...
4
votes
1answer
294 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.
4
votes
1answer
1k 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 ...
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). ...
4
votes
1answer
501 views

Slow Assets Listing in CP

Our client has created a lot of folders and sub-folders to keep their assets organised. I would guess they've made around 700 to 800!! (Basically two folders for each post) The assets page in the CP ...
4
votes
1answer
179 views

How can I submit a form from a Garnish HUD footer?

I'm working on a Dashboard widget from which users can submit entries for review from a Garnish HUD, like so... I've started by placing a hidden form next to each little Submit button... <form ...
4
votes
1answer
575 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 ...
4
votes
2answers
1k views

Getting “Internal Server Error: Function 'dump' does not exist” when accessing/creating custom fields

On my in-development version of a site I'm working on, I'm unable to access any of my custom fields without Craft displaying an error that reads: Internal Server Error Function "dump" does not ...
4
votes
1answer
408 views

Allow a User Group to access plugin pages (without hasCpSection)

I'm facing a problem which, on the surface, seems similar to this thread... Like that other thread, I've found that a specific user group is unable to access my plugin's pages because the plugin is ...
3
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-...
3
votes
2answers
356 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
506 views

Possible have matrix rows collapsed by default in the Control Panel?

Is it possible to have all Matrix rows in the Control Panel entry be in the collapsed state by default? Thanks. Lori
3
votes
1answer
293 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, ...
3
votes
2answers
421 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
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->...
3
votes
3answers
558 views

Rename Entries to Content on CP top menu

A purely cosmetic change, but just wanted to know if its possible to change the menu item for Entries to something like Content? From a client point of view, I just know some will beg me to change ...
3
votes
1answer
644 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://...

1
2 3 4 5
8