valan Posted August 11, 2015 Share Posted August 11, 2015 I'd like to create field that renders runtime markup (=custom PHP snippet) in page edit interface. E.g. smth like combination of FieldtypeConcat (for runtime calc) with Inputfield (that holds PHP snippet). My own attempts to do this failed so far.) Being new in module development I can't figure out how&where to save PHP snippet and how to load it... w/o damaging smth...) E.g. should I create table? or dbScheme? where field settings are saved? please help. Thanks! Pleae have a look at what I've coded so far: https://github.com/valieand/FieldtypeRuntimeMarkup Link to comment Share on other sites More sharing options...
LostKobrakai Posted August 11, 2015 Share Posted August 11, 2015 You should take a look at this: https://processwire.com/talk/topic/9879-fieldtypereference/. It's essentially doing just minor things more than you seem to imagine. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now