[Typo3] How to have an inline fram directed to a Typo3 (dynamic) page

dario sirenovarado at yahoo.com
Fri Feb 18 10:41:32 CET 2005


Hi dario				

...[write your message here]...
Thanks, I think my question was answered.

I simply used ?id=pagenumber   in  the links in the static templates. That was the easiest solution since typolink would put <a href=  around the link .

I was  helped by Georg (Hamburg) who wrote:

Georg (Hamburg) advice:
Typo3 can generate 2 (or more) pages at the same time for you.
The trick is to have 2 PAGE top level objects in the your TS template
with _different_ types:

page = PAGE
page.typeNum = 0
page {
   ### your code for the main page
   ...
}

iframe = PAGE
iframe.typeNum = 1
iframe {
   ### your code for the content iframe
   ...
}

And instead of setting the src attribute of the iframe to a static
html you set it to fetch "index.php?id=<same as main page>&type=1".
This could be achieved by something along the lines:

temp.iframeurl = TEXT
temp.iframeurl {
   ### set id to current page
   typolink.parameter.data = field:uid
   ### but fetch type 1 instead of type 0
   typolink.parameter.wrap = |,1
   ### we don't want a complete a tag, only the correct url
   typolink.returnLast = url
}

Note, the code samples are untested, meant to give you the idea.

Compare:
http://typo3.org/documentation/document-library/doc_core_tsref/quot_PAGE_quot/
http://typo3.org/documentation/document-library/doc_core_tsref/typolink/

hth, Georg
-- 
Georg 

- dario (dariospain)

-----------------------
This thread is located in the archive at this URL:
http://typo3.org/documentation/mailing-lists/english-main-list-archive/thread/110110510/
					



More information about the TYPO3-english mailing list