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