Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Preserving Input Format
  • Posted: 28.04.2006, 20:30
     
    shannonmorgan
    rank:
    Freshman Freshman
    registered:
     June 2004
    Status:
    offline
    last visit:
    04.10.06
    Posts:
    24
    I have created a new module. One problem I am having the preservation of the forma tof the text that input form the form. I am a novice to PostNuke, but have some experience with PHP and MySQL.

    I have tried using the pnVarPrepFroStore before the data is INPUT to the database. I have also tried pnVarPrepForDisplay when printing the text to the page. However, the returns are not preserved.

    Can someone point me in the right direction?
  • Posted: 29.04.2006, 02:43
     
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    offline
    last visit:
    27.11.08
    Posts:
    1678
    Might help if you told us exactly what type of format you're trying to preserve, an example would be good.

    --
    Under Construction!
  • Posted: 29.04.2006, 04:58
     
    cyber_wolf
    rank:
    Helper Helper
    registered:
     June 2002
    Status:
    offline
    last visit:
    09.09.08
    Posts:
    288
    To show the returns, you need to use the nl2br modifer

    Code

    <!--[$FieldToDisplay|pnvarprepfordisplay|nl2br]-->


    --
    cyber_wolf
    www.bkbsolutions.com - My Zikula module development site.

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula