Jump to content

linebreaks in field description?


evan
 Share

Recommended Posts

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

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)
  • Like 1
Link to comment
Share on other sites

  • 6 months later...

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

  • 3 weeks later...

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...