Coder Social home page Coder Social logo

meta's People

Contributors

nateiler avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

meta's Issues

After saving field that's a Matrix with Meta, logged out and can't log back in

2017-06-16 11:22:11 [172.28.128.1][-][er6ubvlnat5np19m4qtgpnrq63][error][craft\base\ApplicationTrait::getTargetLanguage] Tried to determine the user’s preferred language, but got this exception: Declaration of craft\behaviors\ElementQueryBehavior::events($value) should be compatible with yii\base\Behavior::events()
2017-06-16 11:22:11 [172.28.128.1][-][er6ubvlnat5np19m4qtgpnrq63][error][yii\base\ErrorException:64] yii\base\ErrorException: Cannot declare class craft\behaviors\ContentBehavior, because the name is already in use in /var/www/html/storage/runtime/compiled_classes/ContentBehavior.php:0
Stack trace:
#0 /var/www/html/vendor/craftcms/cms/src/elements/db/ElementQuery.php(49): Craft::autoload()
#1 /var/www/html/vendor/craftcms/cms/src/elements/db/ElementQuery.php(49): ::spl_autoload_call()
#2 /var/www/html/vendor/yiisoft/yii2/BaseYii.php(288): yii\BaseYii->unknown()
#3 /var/www/html/vendor/craftcms/cms/src/elements/db/UserQuery.php(30): yii\BaseYii::autoload()
#4 /var/www/html/vendor/craftcms/cms/src/elements/db/UserQuery.php(30): ::spl_autoload_call()
#5 /var/www/html/vendor/yiisoft/yii2/BaseYii.php(288): yii\BaseYii->unknown()
#6 /var/www/html/vendor/craftcms/cms/src/elements/User.php(138): yii\BaseYii::autoload()
#7 /var/www/html/vendor/craftcms/cms/src/elements/User.php(138): ::spl_autoload_call()
#8 /var/www/html/vendor/craftcms/cms/src/services/Users.php(166): craft\elements\User::find()
#9 /var/www/html/vendor/craftcms/cms/src/controllers/UsersController.php(108): craft\services\Users->getUserByUsernameOrEmail()
#10 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): craft\controllers\UsersController->actionLogin()
#11 /var/www/html/vendor/yiisoft/yii2/base/InlineAction.php(57): ::call_user_func_array:{/var/www/html/vendor/yiisoft/yii2/base/InlineAction.php:57}()
#12 /var/www/html/vendor/yiisoft/yii2/base/Controller.php(156): yii\base\InlineAction->runWithParams()
#13 /var/www/html/vendor/yiisoft/yii2/base/Module.php(523): craft\controllers\UsersController->runAction()
#14 /var/www/html/vendor/craftcms/cms/src/web/Application.php(246): craft\web\Application->runAction()
#15 /var/www/html/vendor/craftcms/cms/src/web/Application.php(385): craft\web\Application->runAction()
#16 /var/www/html/vendor/craftcms/cms/src/web/Application.php(206): craft\web\Application->_processActionRequest()
#17 /var/www/html/vendor/yiisoft/yii2/base/Application.php(380): craft\web\Application->handleRequest()
#18 /var/www/html/web/index.php(21): craft\web\Application->run()
#19 {main}
2017-06-16 11:22:11 [172.28.128.1][-][er6ubvlnat5np19m4qtgpnrq63][info][application] $_GET = [
'p' => 'admin/actions/users/login'
]

Enable field layouts

Currently, the fields are displayed based on their order. Move away from this and allow fields to be constructed via a field layout.

Sort order not being saved on meta field reorder

screen shot 2017-06-16 at 11 59 44 am

Steps to recreate:

  • Create a Matrix field with a Block Type and a Meta field.
  • Configure multiple fields for that Meta field and Save.
  • Reorder the Meta fields and Save.
  • Sort changes aren't saved.

Create mechanism to render the contents of a meta field

We typically take a meta field (and matrix field for that matter) and render it via a twig macro/template. It would be nice to define this at the field level and somehow call the rendering.

Approaches

  1. A property on the field, and a twig filter to render it.
  2. A property on the field and a class method.
  3. A twig filter/function indicating the template/macro to parse

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.