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 ForumsXMLXMLXML Description tag and FORMXML Description tag and FORM
Previous
 
Next
New Post
1/11/2008 6:39 AM
 

I got DNN 4.7 and Xml module v. 04.03.04

This is the question:
I got an RSS XML file with the following description field:
<description><![CDATA[<form class="mt-enclosure mt-enclosure-image" mt:asset-id="101"><a href="image/graffetta_small.jpg"><img class="mt-image-left" height="150" alt="graffetta_small.jpg" src="image/graffetta_small-thumb-100x150.jpg" width="100" /></a></form> <p>The PMO Europe Portal is your entry for support tools for the new European Project Process.</p> <p>You will find here our process flow explained and the templates for the various project documents that are available: </p> <ul> <li><strong>New Idea Form </strong>to be brought forward for assessment and approval by your management;</li> <li><strong>Project Plan (PID)</strong> to be included as part of the EJM submittal; </li> <li><strong>Project Highlight Report</strong> to be used for the regular project status reporting; </li> <li><strong>Project End Report</strong> to be submitted for the formal closure of the Project. </li></ul> <p>Questions or suggestions? Contact us:</p>]]></description>
and the following XSL selection:
<xsl:value-of select="description" disable-output-escaping="yes"/>

The trasformation output as inside the tag: 
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="" />
iside the value=" HERE " there is a huge string (I guess is the jpg image converted to string)

this will cause the page to loose is layout and all the module and text and the modules that follow the input tag are moved to the very bottom of the page.

 
New Post
1/14/2008 4:11 AM
 

where did you get the rss xml file. The viewstate field is not an image, but viewstate that is used by ASP.NET to track changes on a page between post backs. It should not be part of an rss feed


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
1/14/2008 11:53 AM
 
The RSS file is automatically generated by Movable Type (www.movebletype.org). MT is a CMS blogging interface, the fact is that images (those which unexperted users insert) are pubblished inside a FORM tag. This FORM tag makes the DNN XML/XSL module to generate an INPUT tag that was not inside the original RSS feed. If Edit the RSS feed and I remove the FORM tag everything goes right, but I can't do this for each image pubblished. I don't know nothink about Viewstate and why the module makes such output. Could you try replicate the error on your DNN installation ? You should make and empty RSS with the description I sent you and a simple XSL Transformation witch select the description as I do. So we would know if it's a module bug or something else. Thanks you for you time for any question write in the forum or at my mail address giorgiocard@hotmail.com
 
New Post
1/14/2008 3:11 PM
 

Giorgio Cardellini wrote

IThe trasformation output as inside the tag: 
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="" />
iside the value=" HERE " there is a huge string (I guess is the jpg image converted to string)

this will cause the page to loose is layout and all the module and text and the modules that follow the input tag are moved to the very bottom of the page.

The viewstate is part of every ASP:NET page and not causing any trouble! It is not a result of the XSL transformation.

 
New Post
1/14/2008 3:30 PM
Accepted Answer 

Sorry,  I did not catch all details during first read, please ignore my last post. 

  1. ASP.NET doesn't allow multiple form tags inside a page, even worse it would result in nested forms.
  2. DNN moves the viewstate which is normally placed at the beginning of the page towards the end. As it relies on having one single form element, it places that viewstate in front of the closing element.
    Note: DNN4.8.0 doesn't manipulate the position of viewstate anymore.
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsXMLXMLXML Description tag and FORMXML Description tag and FORM


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