Page 1 of 1
Adding image to excisiting code
Posted: Thu Apr 08, 2010 3:31 am
by Arjan
I need to add an image to an excisting code , so is there a complete code to like copy paste?. I really need it badly and canĀ“t seem to work it out.
Any help is welcome , thank you
Re: Adding image to excisiting code
Posted: Thu Apr 08, 2010 10:56 am
by adrian
Hi,
What type of document are you using? XHTML, DocBook, something else?
For an image with the name "image.jpg" the code for (X)HTML looks like this:
For DocBook it looks like this:
Code: Select all
<mediaobject>
<imageobject>
<imagedata fileref="image.jpg"/>
</imageobject>
</mediaobject>
If it's a common document type(XHTML, DocBook, DITA, TEI) in Oxygen all you would have to do is switch to Author mode and use the
Insert image action from the toolbar.
Regards,
Adrian
Re: Adding image to excisiting code
Posted: Thu Apr 08, 2010 6:00 pm
by Arjan
This is part of the code
<link linkType="readMoreLink">
<item name="title"><![CDATA[
Read more 3
]]></item>
<item name="linkText"><![CDATA[
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Praesent vestibulum molestie lacus. Aenean nonummy hendrerit mauris.
<br><br>
Donec accumsan malesuada orci. Donec sit amet eros. Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
<br><br>
Quisque nulla. Vestibulum libero nisl, porta vel, scelerisque eget, malesuada at, neque. Vivamus eget nibh. Etiam cursus leo vel metus.
<br><br>
<font color="#ffffff"><a href="asfunction:link">
info@companyname.com</a></font>
]]></item>
</link>
Where do i put a code to see a image in this section and where will it popup? the position? Thank for your help
Re: Adding image to excisiting code
Posted: Mon Apr 12, 2010 9:05 am
by adrian
Hi,
This all depends on your document type and I can't recognize anything from your snippet so I'm guessing it's a custom document type. That means I can't possibly know what the image element looks like. This should be in the document's DTD/schema.
Do you have a DTD(<!DOCTYPE ...) associated with this document?
Regards,
Adrian