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

Support Forum

Start ::  Developers Corner ::  Module Development ::  Preserving Input Format

Moderated by: Support Team

Bottom
Preserving Input Format

  • Link to this postingPosted: 28.04.2006, 20:30
    Profile Homepage
    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?
  • Link to this postingPosted: 29.04.2006, 02:43
    Profile
    Topiatic
    rank:
    Professional Professional
    registered:
     November 2003
    Status:
    offline
    last visit:
    05.10.08
    Posts:
    1666
    Might help if you told us exactly what type of format you're trying to preserve, an example would be good.

    -----
    Under Construction!
  • Link to this postingPosted: 29.04.2006, 04:58
    Profile Homepage
    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
    http://www.bkbsolutions.com - My Zikula module development site.

Start ::  Developers Corner ::  Module Development ::  Preserving Input Format

Main Menu

Extensions Database

Documentation

Development

Login





 


 Log in Problems?
 New User? Sign Up!

Donate to Zikula