Including content classes in newsletters

Author Message

Christian BELLET

Monday 15 September 2008 2:41:09 am

Hello, I managed to run EZ newsletter 1.5.3 on PHP5, Debian nearly perfectly.
I created only one template (located in extension/eznewsletter_designs/design/eznewsletter_designs/templates) for the newsletter and I can select it in the newsletter builder.
The newsletter builder is accessible from a dedicated siteaccess : newsletter_editor
When I create my newsletter, I have the possibility to include objects (articles from example) that are already called in others siteaccess : fr, en and es.
The newsletter is ok when I send a preview to an email address : all the content elements/object's attributes appear on the newsletter.

However, when I send the newsletter with php ./runcronjobs.php -s newsletter_editor -send_newsletter, the objects attached (relations) to the newsletter are gone, I mean it's like they didn't get parsed by EZ publish. Only texts that are on the newsletter_issue object like pretextn posttext, introduction are displayed.

Did I miss something ?

Thanks

Christian BELLET

Monday 15 September 2008 2:52:48 am

I forgot to mention the following setting in settings/override/eznewsletter.ini.append.php
[NewsletterTypeSettings]
ClassLimitation[]=newsletter_issue

I also declared that i wanted to include other classes in the newsletter_issue class definition.

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 18 2025 05:07:32
Script start
Timing: Jan 18 2025 05:07:32
Module start 'layout'
Timing: Jan 18 2025 05:07:32
Module start 'content'
Timing: Jan 18 2025 05:07:32
Module end 'content'
Timing: Jan 18 2025 05:07:32
Script end

Main resources:

Total runtime0.3927 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.1953152.6563
Module start 'layout' 0.00490.0035 740.851639.5078
Module start 'content' 0.00840.3829 780.3594427.7891
Module end 'content' 0.39130.0013 1,208.14848.1016
Script end 0.3927  1,216.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.9132160.0002
Check MTime0.00190.4912160.0001
Mysql Total
Database connection0.00060.154610.0006
Mysqli_queries0.353389.9767540.0065
Looping result0.00040.0999520.0000
Template Total0.360791.920.1803
Template load0.00300.760120.0015
Template processing0.357791.085720.1788
Template load and register function0.00020.040210.0002
states
state_id_array0.00100.250110.0010
state_identifier_array0.00140.354020.0007
Override
Cache load0.00250.6352160.0002
Sytem overhead
Fetch class attribute can translate value0.00080.209010.0008
Fetch class attribute name0.00090.223120.0004
XML
Image XML parsing0.00020.060610.0002
class_abstraction
Instantiating content class attribute0.00000.001320.0000
General
dbfile0.00070.1803100.0001
String conversion0.00000.002340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs