It could be an alternative way

...but only if you don't care about end-users being able to edit things in the UI. That's the one thing the method in the article has the advantage of (e.g., create the node with the tools of your choice in a file, but in the end make it editable via the UI). I guess you could always take the stuff out of your tpl.file and put it in the node, but at that point it's kind of a potatoe/potato thing.

Please come back and share your code though - I'm sure there are people who would be interested to be able to use it.

Update: if this is the method you are talking about, and I think it probably is, it's better suited for different purposes than what I am describing in the article.

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <code> <src> <p> <b> <i> <a> <em> <br> <tt> <hr> <li> <ol> <ul> <pre> <img> <blockquote> <strike> <tt> <strong> <font> <h1> <h2> <h3> <h4> <h5> <h6> <del> <q> <sub> <dl> <dt> <dd> <a> <b> <u> <i> <sup> <div>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

Captcha Image: you will need to recognize the text in it.
Please type in the letters/numbers that are shown in the image above.