embedding HTML produced by a template inside an XML block

Author Message

Pascal Specht

Thursday 28 June 2007 9:55:14 am

Hello,

I think this may be easy to do, but I still can't figure out how to do it:

I want to have a frontpage that uses an XML-Text block in the middle column, and there, I'd like to produce the same HTML output that I would see when I request /user/register

can this be done with a embed tag using a href="ezobject://xxx" ? I don't either know what number I would have to put in for xxx, nor if this is even the way to do it...

I was also looking into building a special template operator which uses {include uri='design:user/register.tpl'} but that started looking too weird for such a simple task.
Thanks a lot in advance for any advice!

Pascal

Brian Baxter

Saturday 30 June 2007 2:20:52 pm

which version of ez are you using?

depending on your exact question, I may have the same issue as well

Behind every great fortune lies a crime.
http://www.3cwired.com - Web Design/SEO/Repair/Sales/Upgrades
http://www.galants.org - The Home for Galant Enthusiasts
http://www.locatemyip.com - More than just free IP displays

Pascal Specht

Monday 02 July 2007 12:03:15 am

Hi Brian,

I'm using 3.9.2 together with ezwebin 1.2 - I've more or less given up on this one: The closest I could get was to build a template function that itself called the template through include uri=design:user/register.tpl, the template did show up, but incorrectly, as all variables from the user module context were missing. I think it really has to be called from within the user module. Maybe one solution to embed that very url would be using frames, but I don't like that solution. So for now, I have no solution.

Pascal

Mingxing Chen

Monday 02 July 2007 1:03:37 am

Hi Pascal,

I don't think you can use 'href="ezobject://xxx"' to embed the XML-Text block which is an <b>*Attribute*</b>!
Why not use 'fetch', fetch the single Node(perhaps yours is node_id=2) and get the attribute content in /user/register.tpl?

More infomation:
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/node
http://ez.no/doc/ez_publish/technical_manual/3_9/reference/modules/content/fetch_functions/object

Best regards.

Shinetech is the leader in next generation global application outsourcing. Shinetech combines world class technical skills, recognized expertise in advanced development methodologies and industry experience to deliver results for global enterprises. Shinetech utilizes distributed Agile methods for rapid and precise systems development.
------------------------------------------------------------------------------------------
Blog: http://www.mingxing.me
Email: chenmx@shinetechchina.com

Heath

Monday 02 July 2007 1:30:44 am

I think the only solution which comes to mind has already been mentioned ... kinda.

I would think you could create a custom tag which you could insert into a content object ezxmlblock attributes contents. The custom tag could be as simple as a small iframe which includes /user/register within your page.

While one may not prefer this solution. I think it could meet your most basic needs without further modifications to the system.

hth,

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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

Main resources:

Total runtime1.2559 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.1719152.6563
Module start 'layout' 0.00530.0034 740.828139.5078
Module start 'content' 0.00861.2457 780.3359645.6719
Module end 'content' 1.25430.0016 1,426.007816.0938
Script end 1.2558  1,442.1016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2552160.0002
Check MTime0.00130.1042160.0001
Mysql Total
Database connection0.00060.049110.0006
Mysqli_queries1.191794.8926670.0178
Looping result0.00080.0601650.0000
Template Total1.222797.420.6113
Template load0.00200.161220.0010
Template processing1.220697.193120.6103
Template load and register function0.00010.009110.0001
states
state_id_array0.00130.101810.0013
state_identifier_array0.00230.179320.0011
Override
Cache load0.00180.1399340.0001
Sytem overhead
Fetch class attribute can translate value0.00060.047340.0001
Fetch class attribute name0.00150.116780.0002
XML
Image XML parsing0.00180.142640.0004
class_abstraction
Instantiating content class attribute0.00000.001390.0000
General
dbfile0.00140.1078290.0000
String conversion0.00000.000640.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs