anubarak / craft-relabel Goto Github PK
View Code? Open in Web Editor NEWRelabel Plugin for Craft
License: MIT License
Relabel Plugin for Craft
License: MIT License
Description
Running a new Craft install with a project.yml that includes settings from relabel
produces the following error during the install database migration step:
Exception: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'fieldLayoutId' cannot be null
The SQL being executed was: INSERT INTO `relabel` (`uid`, `fieldId`, `fieldLayoutId`, `instructions`, `name`, `dateCreated`, `dateUpdated`) VALUES ('df7a1cf5-4ef3-4c6f-8991-01b188b9bf7f', 62, NULL, '', 'Content', '2019-10-27 14:20:55', '2019-10-27 14:20:55') (/home/vagrant/code/proejct/craft/vendor/yiisoft/yii2/db/Schema.php:664)
Example entry from project.yml looks like:
relabel:
016043c5-bb96-46d6-b148-811900a56f14:
field: 686a3021-a8b1-4213-b8b5-4e4886823ed8
fieldLayout: e9270c63-c469-418f-b352-5bf4d56b9cea
instructions: ''
name: 'Show Facebook on page'
MySQL v5.7
PHP v7.2
Craft v3.2.10
As of right now it does not appear to work with NEO in Craft 3. All appears well except nothing is saved. You can click to save it however on refresh of the field, it is as if you never set any relabel.
Craft allows Markdown inside the native field instructions. This comes handy when you want to italicise something, or provide a link. Relabel appears to support raw HTML but does not appear to process Markdown inside the descriptions. It would be great if you can add support for that.
Cheers, and thank you for the plugin!
I am getting a Javascript error when editing entries with Relabel 1.1.6 and Craft CMS 3.0.35
http://cloud.johnhenry.ie/6a8f0fd07a79
The entry has multiple Entry Types and has matrix fields with multiple blocks. I am unable to add any rows to matrix with this error
First of all, thanks for this plugin! It makes managing fields a lot easier. 🎉
I'm using the Solspace Calendar plugin, and while I'm able to change labels when I'm setting up my fields for each calendar, the new labels don't display when adding/editing an entry.
I see in your docs that you don't officially support Solspace events yet. Is this something that Solspace can add support for on their end? If so, what can I tell them? Thanks!
An entry type which has a field called “Label” with the handle label
also has a Matrix field, some of whose block types have fields with the handle label
. If I relabel the regular field from "Label" to "Objective", the fields inside the Matrix field’s block types with the same handle also end up getting relabeled.
After the plugin installs from the Plugin Store, I try to install from /Settings/Plugins/ and I get: "Could't install plugin". I don't see any errors in the logs.
I've tried multiple times with the same results and other plugins install with no issues.
For the Relabel options on a field, if I do not specify a value for 'New Label' in the HUD, when the field is rendered it is rendered without a label. I would have thought that if no label is specified in the HUD, then when the field is rendered it should fall back to using the field's default label.
There are scenarios where the plugin can leave the project config in a state that prevents importing into another site.
It seems that if, for example, a matrix block type gets deleted, the corresponding labels in the project config do not get removed, even though the field layouts no longer exist.
This leaves the project config in a state, where if you apply it to a different environment, a DB error will be thrown because of non-nullable columns.
The easiest way to hotfix this is to check if any of these calls return null, and, if so, skipping the (re)label.
Just updated to the latest Relabel (1.3.5.2) on my local machine and all relabels are no longer in CP. I have not updated on my live site, and relabels are working just fine. Seems like something broke with the update. Is anyone else seeing this?
Just a heads up that Relabel doesn't seem to work with Entries, URLs, or Super Table type fields. I haven't exhaustively tested all of them but seems like something is up.
A security issue reported in Relabel for Craft 2 (nearly 21 months ago) still exists in the Craft 3 version. Originally reported at spicywebau/craft-fieldlabels#12 but I'll repost here.
I just noticed that when viewing the source code of my Craft login screen, the relabel plugin seems to be dumping all its JSON data there. Since this could potentially include private data that includes field names and instructions intended for admin users only, this should be excluded from the login screen and any other screens that are potentially accessible by non-admins.
See Craft 3 example here: https://aspect.staging3.yump.com.au/admin/login
I don't have time right now to submit a patch, but thought you should be aware.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.