Forums / Setup & design / embedding HTML produced by a template inside an XML block

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

eZ debug

Timing: Jan 30 2025 01:03:15
Script start
Timing: Jan 30 2025 01:03:15
Module start 'content'
Timing: Jan 30 2025 01:03:15
Module end 'content'
Timing: Jan 30 2025 01:03:15
Script end

Main resources:

Total runtime0.2777 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.1875180.7969
Module start 'content' 0.00570.0069 768.984497.9766
Module end 'content' 0.01260.2650 866.9609530.6719
Script end 0.2776  1,397.6328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.1495200.0002
Check MTime0.00130.4662200.0001
Mysql Total
Database connection0.00070.266510.0007
Mysqli_queries0.222680.15741410.0016
Looping result0.00130.47691390.0000
Template Total0.264795.310.2647
Template load0.00080.301710.0008
Template processing0.263995.027510.2639
Override
Cache load0.00060.208510.0006
Sytem overhead
Fetch class attribute can translate value0.00090.312210.0009
XML
Image XML parsing0.00030.111610.0003
General
dbfile0.01254.5089200.0006
String conversion0.00000.001530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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