0
I Use This!
Inactive

News

Analyzed about 12 hours ago. based on code collected 2 days ago.
Posted almost 13 years ago by spflanze
I have found that when the boost module is enabled Import HTML will import an html file into a node but that node will not get into the menu system. It is because somehow in boost_nodeapi the menu array object ends up a blank title. This prevents ... [More] menu_nodeapi from putting the node in the menu. This incompatibility needs to be documented just as the incompatibility with pathauto is. [Less]
Posted almost 13 years ago by eyolf
I have a (fairly) well marked-up site with the following structure for the static html pages: ... Header stuff, incl. Title la la la ... [More] Title la la la etc. with more songversions I would like to 1. turn the class="songversion" divs into separate nodes 2. use the h2 class="songversion-title" as the node title, 3. turn the other divs under the songversion into CKK fields, 3. bring in the general h1 as a CCK field field_songtitle in all the nodes, 4. and the same for the "references" div in as a field in all the nodes. I've tried to tweak the proof-of-concept template linked here: #138174: "This node has no body" error when importing HTML ( ../ path rewriting error) and discussed here: #139770: problems with multiple nodes from one HTML file, to someting like and tweaked the get-content template, but I can't get anything through. The module does seem to try to create several nodes, but it can't find any contents. This is my first attempt at doing something with XSL, and I could use a pointer to where I'm going wrong, and what I should do instead. I attach the file in a state which currently gives the following output: Imported 6 items warning: DOMDocument::loadXML() [domdocument.loadxml]: ID pagetitle already defined in Entity, line: 31 in E:\wamp\www\dc_d6\sites\all\modules\import_html\coders_php_library\xml-transform.inc on line 165. and several more lines like this one. Despite the "imported 6 items" line, I only get one file, which only contains the title of the first of the six songversions and the contents of chordcharts, but none of the other divs/spans with classes matching my content type. [Less]
Posted almost 13 years ago by eyolf
I have a (fairly) well marked-up site with the following structure for the static html pages: ... Header stuff, incl. Title la la la ... [More] Title la la la etc. with more songversions I would like to 1. turn the class="songversion" divs into separate nodes 2. use the h2 class="songversion-title" as the node title, 3. turn the other divs under the songversion into CKK fields, 3. bring in the general h1 as a CCK field field_songtitle in all the nodes, 4. and the same for the "references" div in as a field in all the nodes. I've tried to tweak the proof-of-concept template linked here: #138174: "This node has no body" error when importing HTML ( ../ path rewriting error) and discussed here: #139770: problems with multiple nodes from one HTML file, to someting like and tweaked the get-content template, but I can't get anything through. The module does seem to try to create several nodes, but it can't find any contents. This is my first attempt at doing something with XSL, and I could use a pointer to where I'm going wrong, and what I should do instead. I attach the file in a state which currently gives the following output: Imported 6 items warning: DOMDocument::loadXML() [domdocument.loadxml]: ID pagetitle already defined in Entity, line: 31 in E:\wamp\www\dc_d6\sites\all\modules\import_html\coders_php_library\xml-transform.inc on line 165. and several more lines like this one. Despite the "imported 6 items" line, I only get one file, which only contains the title of the first of the six songversions and the contents of chordcharts, but none of the other divs/spans with classes matching my content type. [Less]
Posted almost 13 years ago by eyolf
I have a (fairly) well marked-up site with the following structure for the static html pages: ... Header stuff, incl. Title la la la ... [More] Title la la la etc. with more songversions I would like to 1. turn the class="songversion" divs into separate nodes 2. use the h2 class="songversion-title" as the node title, 3. turn the other divs under the songversion into CKK fields, 3. bring in the general h1 as a CCK field field_songtitle in all the nodes, 4. and the same for the "references" div in as a field in all the nodes. I've tried to tweak the proof-of-concept template linked here: #138174: "This node has no body" error when importing HTML ( ../ path rewriting error) and discussed here: #139770: problems with multiple nodes from one HTML file, to someting like and tweaked the get-content template, but I can't get anything through. The module does seem to try to create several nodes, but it can't find any contents. This is my first attempt at doing something with XSL, and I could use a pointer to where I'm going wrong, and what I should do instead. I attach the file in a state which currently gives the following output: Imported 6 items warning: DOMDocument::loadXML() [domdocument.loadxml]: ID pagetitle already defined in Entity, line: 31 in E:\wamp\www\dc_d6\sites\all\modules\import_html\coders_php_library\xml-transform.inc on line 165. and several more lines like this one. Despite the "imported 6 items" line, I only get one file, which only contains the title of the first of the six songversions and the contents of chordcharts, but none of the other divs/spans with classes matching my content type. [Less]
Posted almost 13 years ago by eyolf
I have a (fairly) well marked-up site with the following structure for the static html pages:...<body>    <div class="header">        Header stuff, incl. <h1 id="songtitle"></h1>    </div>    <div ... [More] class="content">        <div class="references"> </div>        <div class="songversion">            <h2 class="songversion-title">Title</h2>            <div class="preamble"> </div>            <div class="chords"> </div>            <div class="song">                la la la            </div>        </div>        <div class="songversion">            <h2 class="songversion-title">Title</h2>            <div class="preamble"> </div>            <div class="chords"> </div>            <div class="song">                la la la            </div>        </div>        etc. with more songversions    </div></body> I would like to 1. turn the class="songversion" divs into separate nodes 2. use the h2 class="songversion-title" as the node title, 3. turn the other divs under the songversion into CKK fields, 3. bring in the general h1 as a CCK field field_songtitle in all the nodes, 4. and the same for the "references" div in as a field in all the nodes. I've tried to tweak the proof-of-concept template linked here: #138174: "This node has no body" error when importing HTML ( ../ path rewriting error) and discussed here: #139770: problems with multiple nodes from one HTML file, to someting like<exsl:documents> <xsl:for-each select = "//xhtml:div[@class='songversion']"> <exsl:document> <xsl:call-template name="html_doc"/> </exsl:document> <xsl:text> and tweaked the get-content template, but I can't get anything through. The module does seem to try to create several nodes, but it can't find any contents. This is my first attempt at doing something with XSL, and I could use a pointer to where I'm going wrong, and what I should do instead. I attach the file in a state which currently gives the following output: Imported 6 items warning: DOMDocument::loadXML() [domdocument.loadxml]: ID pagetitle already defined in Entity, line: 31 in E:\wamp\www\dc_d6\sites\all\modules\import_html\coders_php_library\xml-transform.inc on line 165. and several more lines like this one. Despite the "imported 6 items" line, I only get one file, which only contains the title of the first of the six songversions and the contents of chordcharts, but none of the other divs/spans with classes matching my content type. AttachmentSize love2learn2simplehtml-modified.xsl_.txt4.91 KB [Less]
Posted about 13 years ago by tmo9d
I'm wondering if there is support for triggering a preconfigured import from a URL. I have an external process which generates a collection of HTML files which are then passed to the Import HTML module, and our current process requires someone to ... [More] load the Import HTML page and trigger an Import. It was hoping to be able to trigger an import from an external system. Is there any way to automate this process? If there isn't, what would be the best place to start looking if I were thinking of adding the ability to trigger a batch process from an external system. [Less]
Posted about 13 years ago by Varzil
Our Import HTML install has stopped working sometime in past month. When we go into the import html site and use any import profile, even default, when then click on the Next button, we always get "The requested page could not be found." Nothing ... [More] shows up in the reports section for Import, in the Drupal logs, the MySql logs or in the Apache logs. Demo mode works correctly on one file at a time, it just does not work in batch mode. Drupal 6.2 and all modules are up to date. Php is 5.2.9. MySql is 5.0.91 We use it once a month to import about 60 pages of new information. The html that we are importing is very simple, plain jane, html, with a a simple table. Any ideas on what to look at next would be appreciated. Thank you Varzil [Less]
Posted about 13 years ago by Trinorae
I've been testing HTML import and am stuck with a problem. I imported a manual for a piece of software and made a menu for it. After some suffering, everything finally was the way it supposed to be... I thought. It appeared that my images weren't ... [More] visibible. The problem is that their src isn't correct. I used a "Import Site Prefix" "fred/13/manual/". This was necessary to get all my pages to have a URL alias /fred/13/manual/* . So far so good. But it seems that the src's of my img's are also rewritten. My "Extra File Storage Path" is configured to be at "sites/default/files/imported/nl/fred/1.3/manual". A source of an image then should be "/sites/default/files/imported/nl/fred/1.3/manual/attachments/5177410/5373977.png" for example. BUT it is rewritten to "/fred/13/manual/sites/default/files/imported/nl/fred/1.3/manual/attachments/5177410/5373977.png". I have no idea why this is happening and I can't really find a solution. (I suppose this could be a mistake in the "rewriting" of the images?) Some help or a fix would be appreciated! [Less]
Posted about 13 years ago by Trinorae
I've been testing HTML import and am stuck with a problem. I imported a manual for a piece of software and made a menu for it. After some suffering, everything finally was the way it supposed to be... I thought. It appeared that my images weren't ... [More] visibible. The problem is that their src isn't correct. I used a "Import Site Prefix" "fred/13/manual/". This was necessary to get all my pages to have a URL alias /fred/13/manual/* . So far so good. But it seems that the src's of my img's are also rewritten. My "Extra File Storage Path" is configured to be at "sites/default/files/imported/nl/fred/1.3/manual". A source of an image then should be "/sites/default/files/imported/nl/fred/1.3/manual/attachments/5177410/5373977.png" for example. BUT it is rewritten to "/fred/13/manual/sites/default/files/imported/nl/fred/1.3/manual/attachments/5177410/5373977.png". I have no idea why this is happening and I can't really find a solution. (I suppose this could be a mistake in the "rewriting" of the images?) Some help or a fix would be appreciated! [Less]
Posted about 13 years ago by Trinorae
I've been testing HTML import and am stuck with a problem. I imported a manual for a piece of software and made a menu for it. After some suffering, everything finally was the way it supposed to be... I thought. It appeared that my images weren't ... [More] visibible. The problem is that their src isn't correct. I used a "Import Site Prefix" "fred/13/manual/". This was necessary to get all my pages to have a URL alias /fred/13/manual/* . So far so good. But it seems that the src's of my img's are also rewritten. My "Extra File Storage Path" is configured to be at "sites/default/files/imported/nl/fred/1.3/manual". A source of an image then should be "/sites/default/files/imported/nl/fred/1.3/manual/attachments/5177410/5373977.png" for example. BUT it is rewritten to "/fred/13/manual/sites/default/files/imported/nl/fred/1.3/manual/attachments/5177410/5373977.png". I have no idea why this is happening and I can't really find a solution. (I suppose this could be a mistake in the "rewriting" of the images?) Some help or a fix would be appreciated! [Less]