Jump to content

Way to make an empty field front-end editable


JayGee
 Share

Recommended Posts

Pretty much as the title - does anyone have a snazzy way to make a field that doesn't yet have any content front-end editable? Currently, the field cannot be double-clicked if empty but I would like to give users the ability to add missing content to a few specific fields.

Link to comment
Share on other sites

1 hour ago, elabx said:

What if you just output placeholder text? (I'd guess you'd have to use <edit> tags)


$page->text ? $page->text : "Input text here.."

  

Perfect thanks - so simple!... I had tried basically every combo of conditionals and was beginning to think it wouldn't work!

  • Like 1
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...