Path

exponential.earth / exponential / documentation / day to day use / how to add objects to an article


How to add objects to an article

These documentation pages are no longer maintained. Please visit the new documentation site.

Often you want to add pictures to a site. Sometimes you want pictures in an article or for a product, or perhaps your site is an image gallery. This is done very easily in eZ publish. Use exactly the same procedure as you use when making folders or articles. Mark "Image" and click "Create here".

In the "Edit image - New image" window you name the image and write a caption/ picture text to the image. Get the image and click on the desired function for the picture. Voila, the picture is published.

Usually you want to add a picture to an article or a product. To do this you go into the article where you want to add a picture. The picture that you add at the bottom of the article edit page will be a standard picture that is connected with your article.

If you want to add more pictures than this one in your article you can use the "Related objects" function in eZ publish. With this function you can include other files in your article, Including other articles, images, MPEG's etc. Click the "Find object" button (magnifying glass) and find the object that you want to add to your article. Select the file with the check box and click the "Select" button.

This will take you back to the "Edit article" page and show the selected file in the "Related objects" box. If you want to show this file in the article, copy the and paste it wherever you want in the text.

Repeat the procedure if you want to add more objects to your article.

Comments

images in article problem resolved

in the end, the problem with displaying images in articles turned out to be quite a basic one. in the template file DESIGN/CORPORATE/OVERRIDE/TEMPLATES/article.tpl
I just had to remove the {* *} tags to allow images to be shown...

FROM:
{*
<div class="imageright">
{attribute_view_gui attribute=$node.object.data_map.thumbnail image_class=medium}
</div>
*}

TO:
<div class="imageleft">
{attribute_view_gui attribute=$node.object.data_map.thumbnail image_class=medium}
</div>

Wonder why they were there in the first place...?

still not working for me...

I have followed the instructions to override the embed image template. I have tried with jpg, gif, png. Everything shows up in the admin mode, but nothing shows in the normal viewer mode. What am I doing wrong??? Is this only happening to me???

Got it at last!...

OK, Rami, I think I understand how to do this now. You need to:

1. Override the template: /content/view/embed.tpl
2. Create a new one, selecting "Image" as the class to use for the match condition.
3. Copy and paste the contents of this template: design/admin/override/templates/embed_image.tpl

It only took me 4 days to find out..! But what I can't work out is why this doesn't seem to be anywhere in the documentation!


Cheers,

Graham.

I have the same problem with inline images in the article

I put a message in the forum and got no reply :(

Inline images? Why so hard?

I am also finding that images that are inserted into articles in this way do not come out embedded in the article, as I need them to.

Instead, I am just getting a link to the image...!

Why is this so hard? How I wish I could go back to plain ol' HTML and PHP, but my customer wants content management!

Frustrated... but hopeful of a helpful reply.


Thanks in advance.

Article Thumbnail

I just read this: "The picture that you add at the bottom of the article edit page will be a standard picture that is connected with your article."
~~~~~~~

Not been able to fix this either. I have been able through the advice in the forum to enable the embedded images from the 'Related Objects' box by coying in template files from the admin folder, but the Thumbnail associated with the article seems to still elude me.

Would be good to have this function working as I plane to have complete novices publishing content and don't want them to have to manage more tags than absolutely necessary (if any...)

What template file do I need to ammend or copy in? By the way, I can see the thumbnail in the admin mode.

Adding images doesn't work in my installation and not in the coporate demo website either...

I just read this: "The picture that you add at the bottom of the article edit page will be a standard picture that is connected with your article."

Well... I've just added a picture of my house to the "Staff News" section and article called "Mr Smith Joined Us". Clicked on publish, but the picture does NOT show in the demo site. And no other article seem to have pictures either. Getting very frustrated over this.

missing word ...

The last line of the second to last paragraph reads: "article, copy the and paste it wherever you". A word or more is missing between "the" and "and". Please be very clear in this docuumentation as it is probably read by new users of ezpublish.

Contents

Day to day use

The admin interface
How to create a folder
How to add content in a folder
How to add objects to an article
Search for content
Drafts
Publish in several locations
Remove objects
Edit objects
Related objects
Version control
Preview your content
Translate content
Sorting content
Discount rules
VAT types
Adding a class to your VAT types
Order list
Wishlist


Created

24/07/2003
1:18:54 pm
by Terje Gunrell-Kaste

Last updated

25/07/2003
9:47:42 am
by Terje Gunrell-Kaste

Authors

Terje Gunrell-Kaste



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.