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 ForumsBlogBlogHow to import a XML/RRS datas inside ???How to import a XML/RRS datas inside ???
Previous
 
Next
New Post
11/22/2005 10:44 AM
 

Sorry,

but there is no answer for  "when".

There is an import export feature implemented in the blog module. With this import feature you can export the blog entries and you can import the entries on another site.

If you need any special import in what format ever, you can develop it by yourself, or you can provide the data in the format of the implemented interface.

That is the reason, why I gave you the hint for looking into the source code.

As far as there is no universal interface specification available for blog modules, it doesn't make sense to implement another import interface.

regards

HP


Best regards
Hans-Peter Schelian
www.schelian.com (English)
German DotNetNuke Community
 
New Post
11/22/2005 12:04 PM
 
.... ok after long search i find the link to import page (is there a doc that discribe the module ???)
Now it asks me for a file ... what type of file / format ? Is there a documentation ? where ?
 
Hope i will find a solution for the gallery )
 
Thanks
IZ
 
New Post
11/24/2005 6:26 AM
 
Sorry i've done some mistakes:
 
i was using an old/last version of NEWBLOG ...
 
Here is the link to download the last one called "BLOG":
 
Now i will try to import my datas .... if this is a succeed i will write how to do
 
IZ.
 
 
 
 
New Post
11/24/2005 12:35 PM
 
Ok after installing last module "core" version called "BLOG" ... now i've got the import/export ...
 
 
Import/export use .XML files ... i entered some test news in the blog ... and i exported the content to an XML file to identify structure/form. Now i've to generate the same from my old site ... seems easy.
 
IZ
 
I will post ASP code for Access to generate the page :-p
 
(now i've some bug to bypass ... in the new blog module after updating the old one ... i will tell you to how i correct his)
 
IZ
 
 
 
 
New Post
11/29/2005 5:04 PM
 

This is a "success" ... here is a sample ASP file i used to extract datas from my access database The only pbl i've is that i've 8000 news in the database ... and only 300 news appears ... but it's still good The script works I hope this will help some

IZ.

allnews.asp

 

<%
Server.ScriptTimeout = 360


xml = "<?xml version=""1.0"" encoding=""utf-8"" ?><content type=""Blog"" version=""03.01.20""><blogs><blog><allowAnonymous><![CDATA[True]]></allowAnonymous><allowComments><![CDATA[True]]></allowComments><blogID><![CDATA[1]]></blogID><childBlogCount><![CDATA[5]]></childBlogCount><created><![CDATA[11/24/2005 10:55:22 AM]]></created><culture><![CDATA[en-US]]></culture><dateFormat><![CDATA[r]]></dateFormat><description><![CDATA[Actualites]]></description><emailNotification><![CDATA[False]]></emailNotification><lastEntry><![CDATA[11/24/2005 5:30:54 PM]]></lastEntry><parentBlogID><![CDATA[-1]]></parentBlogID><portalID><![CDATA[0]]></portalID><public><![CDATA[True]]></public><showFullName><![CDATA[False]]></showFullName><syndicated><![CDATA[True]]></syndicated><syndicateIndependant><![CDATA[False]]></syndicateIndependant><syndicationEmail><![CDATA[]]></syndicationEmail><syndicationURL><![CDATA[]]></syndicationURL><timeZone><![CDATA[2]]></timeZone><title><![CDATA[Actualites]]></title><userFullName><![CDATA[SuperUser Account]]></userFullName><userID><![CDATA[1]]></userID><userName><![CDATA[iznogoud]]></userName></blog><blog><allowAnonymous><![CDATA[True]]></allowAnonymous><allowComments><![CDATA[True]]></allowComments><blogID><![CDATA[2]]></blogID><childBlogCount><![CDATA[0]]></childBlogCount><created><![CDATA[11/24/2005 10:55:22 AM]]></created><culture><![CDATA[en-US]]></culture><dateFormat><![CDATA[g]]></dateFormat><description><![CDATA[Generales]]></description><emailNotification><![CDATA[False]]></emailNotification><lastEntry><![CDATA[11/24/2005 5:28:46 PM]]></lastEntry><parentBlogID><![CDATA[1]]></parentBlogID><portalID><![CDATA[0]]></portalID><public><![CDATA[True]]></public><showFullName><![CDATA[False]]></showFullName><syndicated><![CDATA[True]]></syndicated><syndicateIndependant><![CDATA[True]]></syndicateIndependant><syndicationEmail><![CDATA[]]></syndicationEmail><syndicationURL><![CDATA[]]></syndicationURL><timeZone><![CDATA[2]]></timeZone><title><![CDATA[Generales]]></title><userFullName><![CDATA[SuperUser Account]]></userFullName><userID><![CDATA[1]]></userID><userName><![CDATA[iznogoud]]></userName></blog><blog><allowAnonymous><![CDATA[True]]></allowAnonymous><allowComments><![CDATA[True]]></allowComments><blogID><![CDATA[3]]></blogID><childBlogCount><![CDATA[0]]></childBlogCount><created><![CDATA[11/24/2005 10:55:22 AM]]></created><culture><![CDATA[en-US]]></culture><dateFormat><![CDATA[g]]></dateFormat><description><![CDATA[Logiciels]]></description><emailNotification><![CDATA[False]]></emailNotification><lastEntry><![CDATA[1/1/0001 12:00:00 AM]]></lastEntry><parentBlogID><![CDATA[1]]></parentBlogID><portalID><![CDATA[0]]></portalID><public><![CDATA[True]]></public><showFullName><![CDATA[False]]></showFullName><syndicated><![CDATA[True]]></syndicated><syndicateIndependant><![CDATA[True]]></syndicateIndependant><syndicationEmail><![CDATA[]]></syndicationEmail><syndicationURL><![CDATA[]]></syndicationURL><timeZone><![CDATA[2]]></timeZone><title><![CDATA[Logiciels]]></title><userFullName><![CDATA[SuperUser Account]]></userFullName><userID><![CDATA[1]]></userID><userName><![CDATA[iznogoud]]></userName></blog><blog><allowAnonymous><![CDATA[True]]></allowAnonymous><allowComments><![CDATA[True]]></allowComments><blogID><![CDATA[4]]></blogID><childBlogCount><![CDATA[0]]></childBlogCount><created><![CDATA[11/24/2005 10:55:22 AM]]></created><culture><![CDATA[en-US]]></culture><dateFormat><![CDATA[g]]></dateFormat><description><![CDATA[Administration]]></description><emailNotification><![CDATA[False]]></emailNotification><lastEntry><![CDATA[11/24/2005 10:55:22 AM]]></lastEntry><parentBlogID><![CDATA[1]]></parentBlogID><portalID><![CDATA[0]]></portalID><public><![CDATA[True]]></public><showFullName><![CDATA[False]]></showFullName><syndicated><![CDATA[True]]></syndicated><syndicateIndependant><![CDATA[True]]></syndicateIndependant><syndicationEmail><![CDATA[]]></syndicationEmail><syndicationURL><![CDATA[]]></syndicationURL><timeZone><![CDATA[2]]></timeZone><title><![CDATA[Administration]]></title><userFullName><![CDATA[SuperUser Account]]></userFullName><userID><![CDATA[1]]></userID><userName><![CDATA[iznogoud]]></userName></blog><blog><allowAnonymous><![CDATA[True]]></allowAnonymous><allowComments><![CDATA[True]]></allowComments><blogID><![CDATA[5]]></blogID><childBlogCount><![CDATA[0]]></childBlogCount><created><![CDATA[11/24/2005 10:55:22 AM]]></created><culture><![CDATA[en-US]]></culture><dateFormat><![CDATA[g]]></dateFormat><description><![CDATA[WoW]]></description><emailNotification><![CDATA[False]]></emailNotification><lastEntry><![CDATA[11/24/2005 10:55:22 AM]]></lastEntry><parentBlogID><![CDATA[1]]></parentBlogID><portalID><![CDATA[0]]></portalID><public><![CDATA[True]]></public><showFullName><![CDATA[False]]></showFullName><syndicated><![CDATA[True]]></syndicated><syndicateIndependant><![CDATA[True]]></syndicateIndependant><syndicationEmail><![CDATA[]]></syndicationEmail><syndicationURL><![CDATA[]]></syndicationURL><timeZone><![CDATA[2]]></timeZone><title><![CDATA[WoW]]></title><userFullName><![CDATA[SuperUser Account]]></userFullName><userID><![CDATA[1]]></userID><userName><![CDATA[iznogoud]]></userName></blog><blog><allowAnonymous><![CDATA[True]]></allowAnonymous><allowComments><![CDATA[True]]></allowComments><blogID><![CDATA[6]]></blogID><childBlogCount><![CDATA[0]]></childBlogCount><created><![CDATA[11/24/2005 4:53:33 PM]]></created><culture><![CDATA[en-US]]></culture><dateFormat><![CDATA[r]]></dateFormat><description><![CDATA[News Ancien site]]></description><emailNotification><![CDATA[False]]></emailNotification><lastEntry><![CDATA[11/28/2005 3:54:34 PM]]></lastEntry><parentBlogID><![CDATA[1]]></parentBlogID><portalID><![CDATA[0]]></portalID><public><![CDATA[True]]></public><showFullName><![CDATA[False]]></showFullName><syndicated><![CDATA[True]]></syndicated><syndicateIndependant><![CDATA[True]]></syndicateIndependant><syndicationEmail><![CDATA[]]></syndicationEmail><syndicationURL><![CDATA[]]></syndicationURL><timeZone><![CDATA[2]]></timeZone><title><![CDATA[_News Ancien site]]></title><userFullName><![CDATA[SuperUser Account]]></userFullName><userID><![CDATA[1]]></userID><userName><![CDATA[iznogoud]]></userName><entries>"

 

Set objconn= server.CreateObject("ADODB.connection")
Set objrec=Server.CreateObject("ADODB.recordset")
objconn.open "izsurfing"

SQL = "SELECT * FROM news ORDER BY id_news DESC"

objrec.ActiveConnection = objconn
objrec.Source = SQL
objrec.CursorType = 0
objrec.CursorLocation = 2
objrec.LockType = 3
objrec.Open()

i = 10

if Not Objrec.eof Then

   While not Objrec.eof

i = i + 1

id = objrec("id_news")
source = Server.HTMLEncode(objrec("urlsource1_news"))
source2 = Server.HTMLEncode(objrec("urlsource2_news"))
source3 = Server.HTMLEncode(objrec("urlsource3_news"))
titre = Server.HTMLEncode(ucase(objrec("Titre_News")))
news = Server.HTMLEncode(objrec("libelle_news"))

xml = xml &"<blogEntry>"
xml = xml &"<addedDate><![CDATA[11/28/2005 01:00:00 PM]]></addedDate>"
xml = xml &"<allowComments><![CDATA[True]]></allowComments>"
xml = xml &"<blogID><![CDATA[6]]></blogID>"
xml = xml &"<commentCount><![CDATA[0]]></commentCount>"
xml = xml &"<copyright><![CDATA[]]></copyright>"
xml = xml &"<description><![CDATA[]]></description>"
xml = xml &"<displayCopyright><![CDATA[False]]></displayCopyright>"
xml = xml &"<entry><![CDATA["& news &" &lt;A href=&quot;"& source &"&quot;&gt;"& source &"&lt;/A&gt;  &lt;A href=&quot;"& source2 &"&quot;&gt;"& source2 &"&lt;/A&gt;  &lt;A href=&quot;"& source3 &"&quot;&gt;"& source3 &"&lt;/A&gt;]]></entry>"
xml = xml &"<entryID><![CDATA["& i &"]]></entryID>"
xml = xml &"<permaLink><![CDATA[http://wwwizsurfingcom.dyndns.org/Default.aspx?tabid=52&EntryID="& i &"]]></permaLink>"
xml = xml &"<published><![CDATA[True]]></published>"
xml = xml &"<title><![CDATA["& titre &"]]></title>"
xml = xml &"<userFullName><![CDATA[SuperUser Account]]></userFullName>"
xml = xml &"<userID><![CDATA[1]]></userID>"
xml = xml &"<userName><![CDATA[iznogoud]]></userName>"
xml = xml &"</blogEntry>"


      objrec.movenext  
   Wend
End If
 objrec.close()

xml = xml &"</entries></blog></blogs></content>"

Response.Write xml
%>

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsBlogBlogHow to import a XML/RRS datas inside ???How to import a XML/RRS datas inside ???


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