So how do I use the code in that tpl? I'm very new to EZpublish I should point out! I have worked out how to use override templates for full pages, but I still don't understand how to embed the content of another object/form/article/poll/whatever into another page. Do I need to copy that tpl file into my override homepage template file?
You get embed content when you click the attachement icon while editing a xml-Block ( ~Rich text area ) and adding a existing page (in your case a poll). http://ez.no/doc/extensions/online_editor/4_x/usage/the_toolbar/the_object_button
You can also display the embed view of something in templates manually using this: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/visualization/content_view_gui
Thanks, yes I just realised that I was trying to add the embed code to a Text Line section instead of XML Block, which is why it kept coming out as text link instead.
*sigh* ok I am almost there. The content_view_gui, as pointed out, is obviously what I need to use, but I still cannot work out from the documentation HOW I use it. I have established that you can embed objects by referring to their NODE id if you're embedding thru the admin area. But do I still use the node id when adding content_view_gui to a template file, and if so where do I put it?
So in: {content_view_gui content_object=object view=embed }
where do I state what object it needs to add? "content_object=object"?
I appreciate any help, as I'm finding the official documentation to be extremely lacking.