WordPress.org

Ready to get started?Download WordPress

Forums

Custom Field Template
[resolved] singleList (3 posts)

  1. medium.sth
    Member
    Posted 3 years ago #

    I have one question:

    The textarea can be used as "singleList".
    (Adds the attribute of singleList attribute in order to output with <ul><li> if the value is single. ex) singleList = true)

    This is my code to create the single list:

    [fragen]
    type = textarea
    label = Zentrale Fragen
    rows = 10
    cols = 60
    singleList = true

    When I look in my database, the input is not saved with <ul><li>.
    There are <p> and <br/>...

    Can somebody help me with this problem?

    --- This is my complette Custom-Field-Template"-Code ---

    [fragen]
    type = textarea
    label = Zentrale Fragen
    rows = 10
    cols = 60
    singleList = true
    valueCount = true
    search = true

    [ergebnis]
    type = textarea
    label = Zentrale Ergebnisse
    rows = 15
    cols = 40
    tinyMCE = true
    htmlEditor = true
    mediaButton = true
    mediaOffVideo = true
    mediaOffAudio = true
    mediaOffMedia = true
    valueCount = true
    search = true

    [upload]
    type = file
    label = Upload PDF
    size = 30
    mediaLibrary = true
    relation = true

    [upload]
    type = file
    label = Upload PPT/PPTX
    size = 30
    mediaLibrary = true
    relation = true

    [upload]
    type = file
    label = Upload ZIP/RAR
    size = 30
    mediaLibrary = true
    relation = true

  2. Hiroaki Miyashita
    Member
    Plugin Author

    Posted 3 years ago #

    When the single value is output by [cft] shortcode with the output = true attribute, <ul> and <li> are added by use of the singleList attribute. So basically it is used with checkbox, radio, and select types. Thanks.

  3. medium.sth
    Member
    Posted 3 years ago #

    ok thanks for your fast reaction!
    And also thanks for this great Plug-in! It's fantastic!

    --------

    I think about my idea...
    and now, I use textfields with mutliple and multipleButton.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic