Giter Club home page Giter Club logo

Comments (3)

kringkaste avatar kringkaste commented on June 28, 2024

Hi! Interesting feature request. But I'm not sure I got you right. Where/how do you want to enter the "Twig-style" template

{{ instructions.fieldHandle }}

into the field? Should this be possible in the field settings? As "unchangeable" predefined content or as default when empty? And when should it be rendered and the content be replaced? Whenever you save the entry or only the first time?

Could you give some more informations how the workflow should be?

from craft-readonly-field.

jan-dh avatar jan-dh commented on June 28, 2024

I'm using the Read-only field at the moment to populate an instructions field for each type of matrix block in a Craft matrix field. Works fine, however I would like an "editor" to be able to edit those instructions without having access to the field settings.

I was thinking of making a couple of global fields, or maybe even a channel with instructions that I'd be able to link to the read-only field, so that the relation is set up in the fields section of the admin panel, but the actual content is maintainable from some place else.

I do realize that there would have to be some relationship defined somewhere so you can trigger the resaving of the matrix field whenever the content of the link channel or global is updated. Not really sure what the best way to go about this would be.

from craft-readonly-field.

kringkaste avatar kringkaste commented on June 28, 2024

FYI: With the new release 2.0 we added the feature of Twig templates for output.

from craft-readonly-field.

Related Issues (8)

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.