Forums / Setup & design / Displaying graphics in an article

Displaying graphics in an article

Author Message

Chuck Knight

Monday 09 February 2004 7:29:56 pm

I used the Corporate-Blue template in eZpublish 3.1 to create our site, http://www.marketis.com

The initial setup went generally OK, with some persistent (and unresolved) problem with clearing cahces, but nothing serious so far. The cache clearing issue is a real pain (templates never get deleted from /var) but I just replace them myself, and endure it.

Two problems persist, however, and I am out of clues (and almost out of patience :)

* Cannot publish graphics in an article
-- I follow the recommendations from the documentation. The graphics are stored in the Media section. I associate them to the article while editing it. Then, using the Online Editor, I insert the object containing the graphic wherever I want it. When I ask for a "Preview", the page displays in the preview as I would want it in the browser, with the graphic in the right place, caption included, etc. However, when I browse the actual page outside of the administration interface, the graphic shows as a LINK, identified by the name of the graphic object. Worse, when I click on the link/file name, it takes me to a "Create a new template for the object" page.
-- Does this make sense to anybody? What am I doing wrong?

* The form requesting data (it's in the "Contact us" section) does not do anything: I never receive the emails that are supposed to be sent by it.

I understand the system, run the "Build your own site" exercise, and still find the "canned" site quite useful. But I am buffled by this behavior... Any help will be, as always, EXTREMELY appreciated.

Cheers
ck

Alex Jones

Tuesday 10 February 2004 5:22:28 am

Chuck, have you made sure that the permissions on the Media section allow anonymous users to view the contents?

Sorry, I don't have any ideas on your contact form issue.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Tim Ross

Tuesday 10 February 2004 5:55:32 am

Hi CK,
On the first point it sounds like you are missing an override for the image class when embedding in an article. You need to override the content/view/embed.tpl file for the class image in your new design. It might work to just copy the one from the admin site design. So you have something like this in your override.ini.append:

[image_embed]
Source=content/view/embed.tpl
MatchFile=image_embed.tpl
Subdir=templates
Match[class]=_image_class_id_

where image_class_id is the id of the class in you installation.

Secondly, to submit a form you need to add to your site.ini.append a setting to say that you can submit forms on your site. this should read like this:

[FormProcessSettings]
# Whether the form module is allowed or not
# The form is by design insecure so don't enable unless you know
# what you are doing.
Module=enabled

This is copied straight out of the standard site.ini file and the module is set to enabled.

hope this helps

Tim

Chuck Knight

Tuesday 17 February 2004 3:01:55 pm

Alex, Tim,
thanks a lot for the response. I've been traveling, and thus haven't tried it yet, but I will do so immediately.

I greatly appreciate your cordiality and time

Cheers
ck