Questions tagged [control-panel]

Questions having to do with Craft's control panel.

Filter by
Sorted by
Tagged with
2
votes
2answers
390 views

Assign user group to group of entries

In the CP, is it possible to assign a user group to selected entries within a section. For example, say I have a section called Events. Within that section I have a fieldType called company. Can I ...
9
votes
2answers
769 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, ...
3
votes
1answer
60 views

How can I make an entry (in this case a page from structure) only visible to users with cp access?

I tried 'draft page' but that only shows it in live preview. I need it accessible through the navigation as well. I was expecting a concept button in the CP that would allow this? Do I need to make a ...
1
vote
0answers
44 views

Listen to replacing files through CP's assets section

Admin users can replace asset files without having to deal with re-uploading/re-creating a new asset using the feature/technique described in Peter's answer here: Is it possible to replace uploaded ...
1
vote
1answer
88 views

Limitation of adding a Category from the CP field modal within an entry

Is there a way to either add a parent selector to the category field modal, or remove/hide the "+ New Category" button when editing an entry? We are using a category group to contain Locations, which ...
1
vote
1answer
169 views

Access logged-in user info when `baseCpUrl` is different than `siteUrl`

Our site's control panel needs to be on a subdomain for security purposes. So our baseCpUrl setting in our general.php file is http://craft-admin.domain.com/ while our siteUrl is set at http://www....
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 ...
0
votes
1answer
98 views

Headings Not Shown When Adding Custom Source

When adding custom sources as per the docs https://craftcms.com/docs/plugins/hooks-reference#modifyEntrySources like so: foreach($this->regions as $region) { $sources[] = ['heading' => $...
1
vote
1answer
175 views

How to show details on linked entry in CP (another field inside related entry)

I'm using a row layout SuperTable to create a recipe (ingredients are entries). Is there a way to show another field inside the related entry (not just the title) together with the entry title? I need ...
1
vote
1answer
515 views

Getting error “Your session has ended. Enter your password to log back in.” every 30 seconds or so

This is happening for all users and only on production environment. "Your session has ended. Enter your password to log back in." Entering your password does not allow you to actually see the admin ...
1
vote
1answer
524 views

Add an add entry button to my Plugin in Craft CP

Hey I'm writing my first Craft plugin and would like to add a button to have a dialog box in . I want to create a link to a page entry with this and save it to the database. This is the code I want ...
2
votes
1answer
367 views

Control panel field name & instructions translations

I've installed a Craft Pro site with 3 locales: Dutch, French & English, but the people who are going to input data will speak those languages too, so I need to translate the instructions field in ...
4
votes
1answer
453 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 ...
1
vote
1answer
320 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 ...
1
vote
1answer
55 views

LastPass causing incorrect email address to be saved in new user form

I already have a solution for this but am writing it up in case others run into the same issue. After creating a new user, my email address was showing up as the username of the new user. (This site ...
1
vote
1answer
61 views

How can my plugin render a generic Matrix block in the Control Panel?

Here's a sample of a matrix block: I would like to have my own fields inside the block and retain the basic functionalities like Collapse, Disable, etc. Basically, just use the Matrix block UI ...
3
votes
1answer
133 views

Plugin to “check/uncheck” all matrix blocks while editing entries?

I did a brief search and didn't pull anything up. Is there a native or easy way to "check/uncheck" all matrix blocks? We have a considerable number of them and this would be extremely helpful. Thanks.
1
vote
0answers
78 views

Search syntax for searching matrix fields (in the CP)

Looking for a way to search (in the CP), for elements where a matrixField is empty or not. This seems to work: - with matrix rows: myMatrixField::* - without matrix rows: -myMatrixField::* However, ...
1
vote
1answer
79 views

Add Entry Button Not Shown When Overriding Entry Sources

We're putting together a site where there is regional content managed by regional editors. I want to override the sources to only list entries from regions they are allocated to. I also want to group ...
0
votes
1answer
20 views

Move Icon Disappears from Categories editor

The move symbol - the one that allows you to move a category in the list up or down, etc. -- is gone from one of my category groups. It's the one that appears just after the checkbox to select a ...
2
votes
1answer
324 views

How to duplicate an element type model with content?

Duplicating models is easy if you do it from the edit view, where you can just omit the ID and pass it along to save(). But how would I go about doing that programmatically without having a POST ...
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 ...
1
vote
1answer
228 views

Inline help text for entries

As a content strategist, I'm trying to take the memory and guesswork out of my client's experience while updating the site (check out this great article, "Training the CMS"). Field instructions are ...
2
votes
1answer
461 views

Changing the asset url for the Control Panel

I'm attempting to get the Control Panel assets to load from a CDN instead of locally from Craft. Going through the config options here and here I can't seem to find a way to change the asset URL. Is ...
2
votes
1answer
455 views

How can I add images to field instructions?

I'd like to have images in my field instructions, but adding the Markdown code doesn't work, nor does HTML. Is there a way to include images and other HTML within?
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&...
3
votes
1answer
164 views

How can I dynamically remove some unwanted formatting tags inside rich text fields?

I set up a Redactor config to add h3 headings only. If I copy-paste texts from a text edition software like Microsoft Word and uses h1 or h2 for example in his document, these un-wanted headings will ...
3
votes
0answers
98 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
493 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
1answer
515 views

Craft redirect loop after logging in

I'm experiencing weird cookie/redirect issues after logging in the admin/cp. Keeps redirecting to / (even on /) untill I've deleted my cookies. Clean download/install, no errors occured. I have no ...
11
votes
1answer
502 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?
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?
2
votes
1answer
212 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
3answers
488 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
530 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
959 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 ...
2
votes
2answers
429 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
1answer
115 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
194 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
395 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
265 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[...
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 ...
2
votes
0answers
346 views

control panel login redirects back to login

First, I just took over administration of our Craft site from a previous employee, and the original site was set up by a contractor, so I'm still trying to figure things out. Yesterday it was ...
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 ( $...
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', '...

1
4
5
6 7 8