evan Posted December 8, 2011 Share Posted December 8, 2011 Hi all, Is any kind of formatting possible in the field description? Linebreaks would make it more readable for lengthier descriptions about how information should be entered. Thanks! -evan Link to comment Share on other sites More sharing options...
ryan Posted December 9, 2011 Share Posted December 9, 2011 Currently that's not possible, but I think it would be easy for us to add an nl2br() function to convert newlines to <br /> tags in the field description output. Let me know if that's what you are looking for and I can add it. Link to comment Share on other sites More sharing options...
evan Posted December 9, 2011 Author Share Posted December 9, 2011 That's basically what I was thinking, yes. Thanks! Link to comment Share on other sites More sharing options...
ryan Posted December 13, 2011 Share Posted December 13, 2011 Linebreaks are now supported in the field descriptions (dev branch). It just runs the description text through PHP's nl2br() before outputting it. While I was there, I also made it so that you can use markdown style links in field descriptions as well. i.e. [ProcessWire](http://processwire.com) 1 Link to comment Share on other sites More sharing options...
evan Posted July 6, 2012 Author Share Posted July 6, 2012 Did this ever make it to the master 2.2 branch? Doesn't seem to be working for me. Thanks! EDIT: Oops, thought I was supposed to type out newlines, looks like it just recognizes them. Works great! Link to comment Share on other sites More sharing options...
Martijn Geerts Posted July 22, 2012 Share Posted July 22, 2012 While I was there, I also made it so that you can use markdown style links in field descriptions as well. i.e. [ProcessWire](http://processwire.com) This is great, now we can link to information whatever we want. To explain how to use MarkDown For example. 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