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

Dizkus

Bottom
html output
  • Posted: 11.03.2005, 22:29
     
    rowjoe
    rank:
    Helper Helper
    registered:
     February 2004
    Status:
    offline
    last visit:
    26.07.06
    Posts:
    129
    I have a module that pulls text from a database and displays it on 'mymod_user_display.htm' template. How can I get that text to render has HTML instead of just plain text?
  • Posted: 12.03.2005, 20:18
     
    ganja
    rank:
    Freshman Freshman
    registered:
     December 1969
    Status:
    offline
    last visit:
    03.10.06
    Posts:
    26
    i assume that you use pnrender, since you mentioned an HTML-template.
    so if you want the output of your variable to render as HTML, just use it in the following format in mymod_user_display.htm:

    Code

    <!--[$yourcontentvariable|pnvarprephtmldisplay]-->

    hope i could help =)
  • Posted: 14.03.2005, 01:08
     
    rowjoe
    rank:
    Helper Helper
    registered:
     February 2004
    Status:
    offline
    last visit:
    26.07.06
    Posts:
    129
    Thanks!

    That was easier than I thought it was going to be.. :D
  • Posted: 06.07.2005, 19:19
     
    cannibus
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    20.09.08
    Posts:
    401
    i have some text, its not HTML formatted, but it has line breaks etc.


    its lyrics for a song




    but it does not format it to reflect the new lines.


    is there another thing i need to call?
  • Posted: 06.07.2005, 20:03
     
    craigh
    rank:
    Professional Professional
    registered:
     June 2003
    Status:
    offline
    last visit:
    27.08.08
    Posts:
    1147
  • Posted: 06.07.2005, 21:40
     
    cannibus
    rank:
    Helper Helper
    registered:
     November 2004
    Status:
    offline
    last visit:
    20.09.08
    Posts:
    401
    THANKS!



    by the way

    Code

    <!--[$yourcontentvariable|nl2br]-->



    is the way to do it with pnrender
  • Posted: 25.07.2005, 18:50
     
    Jeanie
    rank:
    Freshman Freshman
    registered:
     September 2002
    Status:
    offline
    last visit:
    26.06.08
    Posts:
    42
    I have almost the same prob, I'm pulling text from a file;
    But all linebreaks are ignored. How do I correct it to show linebreaks?

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula