zota Posted March 8, 2016 Share Posted March 8, 2016 Hi! Suppose you were intrigued by this line: $field->attr('type','password'); Question is: how do you find more info on, fort instance, the $field->attr(); thing? or, in general, how do you find those specifics that don't show up on processwire's search box, neither on the Soma's cheatsheet... Thanks, Julio Link to comment Share on other sites More sharing options...
adrian Posted March 8, 2016 Share Posted March 8, 2016 Not necessarily the answer you are looking for, but searching on Github is often very enlightening: https://github.com/ryancramerdesign/ProcessWire/search?utf8=%E2%9C%93&q=%22%24field-%3Eattr%22 1 Link to comment Share on other sites More sharing options...
zota Posted March 8, 2016 Author Share Posted March 8, 2016 Not necessarily the answer you are looking for, but searching on Github is often very enlightening: https://github.com/ryancramerdesign/ProcessWire/search?utf8=%E2%9C%93&q=%22%24field-%3Eattr%22 Oh! I'm doomed! Ok, I'll try github search. Thanks Link to comment Share on other sites More sharing options...
LostKobrakai Posted March 8, 2016 Share Posted March 8, 2016 I'd also suggest taking a look at this topic: https://processwire.com/talk/topic/2089-create-simple-forms-using-api/ It's essentially a community driven "what you need to know about the forms api". I wouldn't call it documentation, but you can learn a lot from the examples. Also attr() is essentially meant for those html attributes, which are not input specific, which type is. Link to comment Share on other sites More sharing options...
kongondo Posted March 8, 2016 Share Posted March 8, 2016 (edited) Depending on your needs...http://kongondo.github.io/ProcessWireAPIGen/ E.g. method attr() Edited March 8, 2016 by kongondo 1 Link to comment Share on other sites More sharing options...
dragan Posted March 8, 2016 Share Posted March 8, 2016 fwiw, I often use Google search like this: $field->attr site:.processwire.com i.e. https://www.google.ch/search?q=%24field-%3Eattr+site%3A.processwire.com&oq=%24field-%3Eattr+site%3A.processwire.com 1 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