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 Listdetail view and listdetail view and list
Previous
 
Next
New Post
4/22/2009 3:57 AM
 

Hi, i'm pretty new to dnn so please pardon my mistakes...

I'm trying to make a Tab/page with a product list, but i only have pieces of it working. I'm using form and Lists 5.0.0, i can build the form and display the list approx how i like it.

What I'm not able to do is:

1) show a detailed view of a single product (a single record). I have the "edit" icon, but not a "view" icon. Where is my mistake?

2) I wish i could have the list of other products (record) under the detail view, with a kind of "previous" and "next" button. Is this possible using XLST, or this would require a specific module development?

Thanks in advance,

Max

 
New Post
4/22/2009 6:27 AM
 

Hi Max,

Master/Detail requires to use either provided advanced XSL or custom XSL rendering. Go to configuration and switch the rendering mode appropriately. If you want an individual layout, use "custom XSL" and click "generate XSL" to enter the Editor & generator. Please read the UDT 3.5.1 manual for details.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
4/22/2009 9:23 AM
 

Thanks Sebastian,

I'm  trying to play with custom XSL right now... some work done, some work still to do, but I've understood the framework...

thanks a lot,

max.

 
New Post
4/22/2009 10:37 AM
 

Still need some help, if possible...

I now have a xlst that renders the list of products, and the detail, after clicking, as i desired.

What I need (and I'm not able to achive) is the list of all the records after the single record user decides to view.

I added after the last </table> in the detail view the following code:

<p>detail view</p>
<xsl:call-template name="ProductList" />

and i made a xsl:template named "PrdocutList" as follows:

  <xsl:template name="ProductList" match="/udt:UserDefinedTable">
        <xsl:variable name="currentData" select="udt:Data" />
        <xsl:if test="$currentData">
          <ul class="prodotti">
            <xsl:apply-templates select="$currentData" mode="list">
            </xsl:apply-templates>
          </ul>
        </xsl:if>
  </xsl:template>

wich is a copy of the xlst code that generates the full listing, but nothing appears, so I must be misunderstanding something.

Some suggestions please?

TIA,

max.

 
New Post
4/22/2009 2:26 PM
 

I suggest the following changes:

  <xsl:template name="ProductList" >
        <xsl:variable name="currentData" select="/udt:UserDefinedTable/udt:Data" />
        <xsl:if test="$currentData">
          <ul class="prodotti">
            <xsl:apply-templates select="$currentData" mode="list">
            </xsl:apply-templates>
          </ul>
        </xsl:if>
  </xsl:template>

or (even simpler)
  <xsl:template name="ProductList">
     <ul class="prodotti">
       <xsl:apply-templates select="/udt:UserDefinedTable/udt:Data" mode="list" />
     </ul>   
  </xsl:template>


 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsForm and ListForm and Listdetail view and listdetail view and 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