Support » Plugin: Link Library » Custom fields with plain text

  • slabbi

    (@slabbi)


    Hi,

    it would be helpful when custom fields could also contain plain text only.

    In my case I use “Before” to create a link like
    “<td style=’vertical-align: top;”><img src=’https://xxx.xxx/images/flag&#8221;
    and “After”
    “.png’ width=’28’ style=’margin-top: 5px; border-radius: 0;’></td>”.
    So the field could contain “gb”, “us”, “de” or whatever.

    Another idea is to specify “custom selection lists”. E.g. specify a custom field that allows to select an entry from a list (e.g. “us|gb|de|it”).

    slabbi

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Yannick Lefebvre

    (@jackdewey)

    I will look at creating custom field with plain text soon. Just need to find enough time to work on this. Please consider donating to support this plugin’s development.

    Plugin Author Yannick Lefebvre

    (@jackdewey)

    Version 6.7.8 introduces custom text field and custom lists. I even made it so that you can associate custom HTML code to different entries of the custom list. That way, you could create a list with your flags, and assign the HTML code for each flag directly in the Custom Field section. The HTML fields only appear when you save the custom list with the entries.

    Please consider donating to support this plugin’s development.

    Thread Starter slabbi

    (@slabbi)

    Looks good but is not working yet.
    Neither the plain text not the html list fields are displayed.

    I entered a text before and after the field. This text is displayed. The field content itself not (for text fields the line in “advanced” set to “test” for html fields it tired both “html” and “list”).

    I do not know how, but after several edits one(!) library entry is displayed. But only this. A different entry with the same content is not displayed. Strange.

    Another problem: When you save html code in the html fields it is escaped again and again. So after some time you have something like \\\\\\’.

    • This reply was modified 7 months, 2 weeks ago by slabbi.
    • This reply was modified 7 months, 2 weeks ago by slabbi.
    Plugin Author Yannick Lefebvre

    (@jackdewey)

    This might sound like a silly question, but just to make sure, you did populate these new fields in the link editor, right? I am putting values in my text and list fields for my links and they are appearing correctly on my links page.

    Can you check in your database in the postmeta table called
    link_custom_text_? or link_custom_list_?, where ? is a number representing the custom field number.

    For the escaping of HTML code, I have just published a fix in version 6.7.9.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom fields with plain text’ is closed to new replies.