Log in | Register | Lost password

Bottom
Tip: Show list of names without using HTMLArea
  • Posted: 17.02.2004, 10:13
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    This tip is maybe usefull for some people. If you want to show something like that on your publication from a single field:

    Quote


    name 1
    name 2
    name 3

    You don't need to use an HTML field, you can do it with a text field. The carriage returns are not showed in HTML so if you live the variable call in smarty like this:

    Quote




    you will have as result:

    Quote


    name 1 name 2 name 3

    Instead you must use:

    Quote




    To replace the carriage returns with a
    or whatever you want. With this method you can control much better the input of the users and you don't need to put a full and powerfull HTMLArea to do something so simple.
  • Posted: 17.02.2004, 12:16
     
    Converted
    rank:
    12
    registered:
     March 2009
    Status:
    offline
    last visit:
    Posts:
    0
    Check also Smarty's nl2br ...

Template courtesy of Designs By Darren.