Closed (fixed)
Project:
Import HTML
Version:
master
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2006 at 01:13 UTC
Updated:
12 Feb 2007 at 23:47 UTC
Jump to comment: Most recent file
Comments
Comment #1
L0rne commentedI would love to be able to assign newly created nodes to particular taxonomy categories! I've been playing with this, but have not been able to get it to work.
I have also found it useful to be able to set publishing options (published, promoted, etc). I was able to hard-code the settings I wanted for these, but a form element for this would be great.
Thanks!
Comment #2
dman commentedIt's on the wish list. Please feel free to give it a go. Shouldn't be too tricky.
Add a form element to the import page, much like the menu root selector.
Tag it in the code during the node build, and saving should just work.
When thinking of this, I'd also thought of fixing up a bulk category assignment page, but that's a different project. I ended up doing neither.
Comment #3
L0rne commentedHere are a few things that I added to import_html.module for my own purposes; I hope they will be of use to someone.
Under "administer" -> "import HTML" I added three new form elements
Other publishing options might easily be added; these were useful for my project.
I have attached a patch file. Comments and criticisms greatfully accepted!
Comment #4
dman commentedCool, I've patched that in.
I shifted the bit where it adds the new properties to the node into the bit where the node is built and the other properties (body/title/teaser) are being added - _import_html_process_html_page()
It was happening a bit late in the process where you had it, (immediately before the save) and was causing errors for re-imports.
Otherwise, seems to work.
I tweaked a few other bits while I was there. Gosh I left a lot of debugs in there! Code looks a mess. Still, they come in handy , you're in no doubt about what's happening.
Anyway. New version in CVS now.
.dan.
Comment #5
dman commentedThanks for the inputs. They've been working well for a while now (although I shifted them into a subroutine)
Comment #6
dman commentedI've patched in user selection support
Current version diff
Not fully tested, but did the job.