codemonauts / craft-readonly-field Goto Github PK
View Code? Open in Web Editor NEWRead-only Field for Craft CMS
License: MIT License
Read-only Field for Craft CMS
License: MIT License
While installing the plugin the following error is thrown. I'm guessing this is an error that is thrown when using PHP version 8.1. "readonly" is a reserved name. Check this article
ParseError: syntax error, unexpected token "readonly", expecting identifier in /var/www/vendor/codemonauts/craft-readonly-field/src/Readonly.php:14 Stack trace: #0 /var/www/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile() #1 [internal function]: Composer\Autoload\ClassLoader->loadClass() #2 /var/www/vendor/craftcms/cms/src/services/Plugins.php(914): is_subclass_of() #3 /var/www/vendor/craftcms/cms/src/services/Plugins.php(229): craft\services\Plugins->createPlugin() #4 /var/www/vendor/craftcms/cms/src/base/ApplicationTrait.php(1487): craft\services\Plugins->loadPlugins() #5 /var/www/vendor/craftcms/cms/src/web/Application.php(93): craft\web\Application->_postInit() #6 /var/www/vendor/yiisoft/yii2/base/BaseObject.php(109): craft\web\Application->init() #7 /var/www/vendor/yiisoft/yii2/base/Application.php(204): yii\base\BaseObject->__construct() #8 [internal function]: yii\base\Application->__construct() #9 /var/www/vendor/yiisoft/yii2/di/Container.php(419): ReflectionClass->newInstanceArgs() #10 /var/www/vendor/yiisoft/yii2/di/Container.php(170): yii\di\Container->build() #11 /var/www/vendor/yiisoft/yii2/BaseYii.php(365): yii\di\Container->get() #12 /var/www/vendor/craftcms/cms/src/Craft.php(66): yii\BaseYii::createObject() #13 /var/www/vendor/craftcms/cms/bootstrap/bootstrap.php(242): Craft::createObject() #14 /var/www/vendor/craftcms/cms/bootstrap/web.php(51): require('...') #15 /var/www/public/index.php(20): require('...') #16 {main}
I get an error on installation:
Class 'craft\feedme\services\Fields' not found
Looks like a problem here
Add the possibility to show a copy button next to the field so a user can easily copy/paste the value from the field.
Thanks for the plugin!
It would be great to be able to define the database column type of the readonly field. Right now it's hardcoded to Schema::TYPE_STRING
, but we need Schema::TYPE_INTEGER
instead.
Hi and thanks for creating this plugin. ๐ I would like to use this plugin for a read-only id field imported via FeedMe. But I was not able to import to the field when configuring the FeedMe feed. To fix this it seems possible to register this field with FeedMe.
It would be nice if you'd be able to use data from let's say globals etc. in the field.
For example: make a global instruction field that's editable by the user. Use that global in the readonly field (where instructions is the handle of the global ).
{{ instructions.fieldHandle }}
It makes the content a lot more managable.
This field is fantastic for what we need, but is there a way to make it sortable?
When applied to user accounts, the field is displayed as a column in the Users view, but can't be used to sort.
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.