Posted on 2005-09-15 21:48:59-07 by bob
insertParagraph -- path and position
Thanks for the tolerance in putting up with these posts. I'm having difficulty with some of the basics of the modules.

I don't understand what is to be used for path and position. I've not found any examples in the documentation. Are there some that I have missed ? Could someone give me an example ?

If my template file contained a marker/token such as "INSERT PARAGRAPH HERE", how would I go about replacing that token with an arbitrary paragraph of text.

Thanks again for all your patience.

Bob

insertParagraph(path, position [, options])<br><br> insertParagraph(element [, options])<br><br> Same as appendParagraph, but a new paragraph is inserted at the given position.<br><br> Position is that of an existing element which can be another paragraph or a header. Can be given by [path, position] or by element reference. <br><br> Options are the same as for appendParagraph, with the additional option 'position' which determines whether the paragraph is inserted before or after the element at the given position. Possible values for this options are 'before' and 'after'. By default, the element is inserted before the given element.
Direct Responses: 1002 | Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.