exponential.earth / exponential / documentation / day to day use / 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
Kai Winnem
Friday 30 July 2004 12:00:22 pm
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...
Kai Winnem
Tuesday 20 July 2004 6:37:44 pm
Got it at last!...
Graham Daley
Monday 07 June 2004 10:42:39 am
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
Rami Grossman
Sunday 06 June 2004 8:49:02 am
Inline images? Why so hard?
Graham Daley
Saturday 05 June 2004 12:30:32 pm
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
Kai Winnem
Friday 14 May 2004 5:19:38 pm
~~~~~~~
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...
Leif Andre Brekke
Saturday 03 April 2004 12:18:40 am
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 ...
Geir Pedersen
Sunday 28 September 2003 3:18:41 am