how to call for templete from original design

Author Message

Marek Tryliński

Sunday 13 April 2008 8:47:44 pm

hi

i'd like to make a small easy extension for sending sms

it would be very nice if i could use one of allready written template,that is located in original /design folder, not inside the extension

that is because i'm a beginner and when i simply copied this template to extensions directory it didnt work

also i actually didnt found simple solution in documentation,so please help me :)

pssorry for duplicating post but i didnt know where to put it

http://ez.no/developer/forum/extensions/how_to_call_for_templete_from_original_design

--
http://trylik.pl/kategorie/ez-publish/

Maxime Thomas

Sunday 13 April 2008 11:05:16 pm

Hi,

I redirect you to this article :

http://ez.no/developer/articles/an_introduction_to_developing_ez_publish_extensions

In my point of view, it's better to put your design in an extension. You will manage it better and faster than in your original design directory ans you will have design and process files in the same place.

Maxime Thomas
maxime.thomas@wascou.org | www.wascou.org | http://twitter.com/wascou

Company Blog : http://www.wascou.org/eng/Company/Blog
Technical Blog : http://share.ez.no/blogs/maxime-thomas

Piotrek Karaś

Monday 14 April 2008 9:14:55 am

Just as Maxime suggested, this is not a task to be handled within presentation layer. It might require programming, therefore you will have to create an extension with some PHP logic. Then you will also need to decide the interface for using your extension from within eZ Publish (HTTP request for a module/view, datatype, template operator, cronjob, etc...) - without that your logic will not be accessible by anything/anyone...

Good luck!

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 15:14:57
Script start
Timing: Jan 18 2025 15:14:57
Module start 'layout'
Timing: Jan 18 2025 15:14:57
Module start 'content'
Timing: Jan 18 2025 15:14:58
Module end 'content'
Timing: Jan 18 2025 15:14:58
Script end

Main resources:

Total runtime0.8607 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0050 588.0469152.6406
Module start 'layout' 0.00500.0025 740.687539.4766
Module start 'content' 0.00750.8518 780.1641580.7969
Module end 'content' 0.85930.0014 1,360.960912.1250
Script end 0.8607  1,373.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3693160.0002
Check MTime0.00140.1621160.0001
Mysql Total
Database connection0.00060.073510.0006
Mysqli_queries0.815194.6949590.0138
Looping result0.00050.0632570.0000
Template Total0.831996.720.4160
Template load0.00200.229920.0010
Template processing0.830096.425120.4150
Template load and register function0.00020.027610.0002
states
state_id_array0.00070.082110.0007
state_identifier_array0.00120.139420.0006
Override
Cache load0.00160.1822200.0001
Sytem overhead
Fetch class attribute can translate value0.00050.056030.0002
Fetch class attribute name0.00130.148850.0003
XML
Image XML parsing0.00130.147830.0004
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00150.1779230.0001
String conversion0.00000.001040.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs