Jump to content
Guy Incognito

Way to make an empty field front-end editable

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.

Share this post


Link to post
Share on other sites

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

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

 

  • Like 1

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...