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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 08:16:57
Script start
Timing: Jan 31 2025 08:16:57
Module start 'layout'
Timing: Jan 31 2025 08:16:57
Module start 'content'
Timing: Jan 31 2025 08:16:57
Module end 'content'
Timing: Jan 31 2025 08:16:57
Script end

Main resources:

Total runtime0.0181 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.1563151.2109
Module start 'layout' 0.00680.0029 739.367236.6484
Module start 'content' 0.00960.0070 776.015694.1563
Module end 'content' 0.01660.0014 870.171933.9922
Script end 0.0180  904.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.1322140.0002
Check MTime0.00137.1427140.0001
Mysql Total
Database connection0.00084.190310.0008
Mysqli_queries0.004524.727530.0015
Looping result0.00000.060710.0000
Template Total0.00105.610.0010
Template load0.00084.522910.0008
Template processing0.00021.046610.0002
Override
Cache load0.00063.211010.0006
General
dbfile0.002513.806380.0003
String conversion0.00000.043640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs