Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

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
  • 6 months later...
Posted

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!

  • 3 weeks later...
Posted

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.

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
  • Recently Browsing   0 members

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