Conditional statements in skin
Last Post 04/02/2009 1:59 PM by tacfit. 3 Replies.
Author Messages
tacfit
Nuke Newbie
Nuke Newbie
Posts:8


--
03/25/2009 8:32 AM
    Hey, was wondering if there was a way to put conditional statements in a skin so certain panes etc only display if there is something in them?

    Thanks,

    Jack
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    03/25/2009 2:36 PM
    Yes, you can. There are some examples in these forums that mostly point to Snapsis.com and the DotNetNuke forums there.

    BUT ... a proper skin design will collapse panes that have no contents. Check the skin design tutorials.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    tacfit
    Nuke Newbie
    Nuke Newbie
    Posts:8


    --
    04/02/2009 1:51 PM
    thanks for your reply.

    sorry i messed up my terminology a little.... the panes are dissapearing when they are empty.... what i need is for a div around them to only display if the pane is empty...

    here's an example of what I'm trying to do....

    if ContentPane&r>
    tacfit
    Nuke Newbie
    Nuke Newbie
    Posts:8


    --
    04/02/2009 1:59 PM
    wow thats messd up... wont let me edit my reply...

    heres my example

    if contentpane

    a div
    my content pane

    end div
    endif


    ---