Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListStyling the listStyling the list
Previous
 
Next
New Post
7/18/2012 6:59 PM
 

What is the best resource for explaining how to style the list of the Form and List module?  I created and configured the FNL and it has my data in it now I just want to float some elements and give them background colors, etc. Is the only way to do this via XSLT?  Looks like it is defaulting to a table/grid by default. If possible I would like to remove this from the table structure and only deal with DIVs.

Thanks in advance for any insight!


 
New Post
7/18/2012 7:43 PM
 

Hi Clint,

Not sure about any reference materials that you wouldn't already be aware of but basically you just style your xsl like you would html. First use the form list to automatically generate the template for you. Then take that template and customize it. I think the last time I did one the template list mode generated was a table and I replaced that code with divs and assigned my tags css which I placed in the skin.css.

The part you are interested in is the <xsl:template> tag at the top. For example here is that section for one of my mine:

<xsl:template match="udt:Data" mode="list">
    <xsl:param name="from" select="1" />
    <xsl:param name="to" select="count(*)" />
    <xsl:if test="position() &gt; $from and position() &lt; $to">
      <div class="udtDiv">
        <xsl:call-template name="EditLink" />
        <h2 class="udtTitle">
          <xsl:value-of select="udt:Title" disable-output-escaping="yes" />
        </h2>
        <div class="NewsDesc">
          <xsl:value-of select="udt:Description" disable-output-escaping="yes" />
        </div>
      </div>
    </xsl:if>
  </xsl:template>

and the css:

.udtDiv {padding-top:8px; padding-bottom:7px; padding-right:30px;}
.udtDiv p { font-size: 10pt;  font-weight:bold; color:#7B7B7B;}
.udtDiv h2 { font-size: 10pt; font-weight:bold; color:black;}
.udtDiv h3 {display:block;  width: 618px; color: #000000; font-size: 12pt; font-weight: 600; border-bottom-color: #D0D0D0; border-bottom-style: solid; border-bottom-width: 1px; margin-top: 15px; margin-bottom:15px; padding-bottom: 8px; }
.NewsDesc { font-size: 10pt; font-weight:bold; color:#7B7B7B;}

One thing I learned when working with the custom xsl editor in the form list is to always save the xsl as a new file. If you try over writing the existing file it crashes and goes back to the default.

Let me know if have more questions. Maybe Armand will have more to offer.

Rich





 
New Post
7/18/2012 7:48 PM
Accepted Answer 

Thanks Richard! That is helpful... I also just downloaded the Form and List user guide... that always helps (looks for corner to hide in) ;-)  Part I needed was on page 36!

Download it if you need it... http://www.formandlist.com/LinkClick....

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and ListStyling the listStyling the list


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out