1

I am planning to use tmpl=component within the URL for some pages on my site to enable them to be embedded in iframes conveniently and only show the document content.

However, I want any links within those pages to forcibly load in the parent frame. Consequently, I need to add the following element into the head of the pages in question.

<base target="_parent">

I don't see a method on JDocument that will allow me to inject this off-hand though. Any suggestions?

1 Answer 1

1

I also had to show component output in an iframe on another domain. I ended up creating a very simple template showing only the component output. I added the base target line in the template's header. Then instead of tmpl=component I used tmpl=simpletemplatename.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.