On Tue, May 21, 2013 at 7:29 AM, Ken in Nashua <kcola...@live.com> wrote:

> ok good answers guys... thanks...
>
> I cant say I am happy about it.
>
> I have to write a component just to embed a page ?
>
>
No, you don't have to. You can use HTML <FRAME> or <IFRAME> to embed pages.


> Shouldn't there be a generic tapestry component to already do this ?
>


Not sure about yours but my pages usually have headers (with navigation and
login/logout links) and footers (with links to social networks etc) (and
some of them has sidebars, with help tips and advertising maybe).


If I embed one of this page to another then what would I have? Two footers,
two headers and 2x sidebars?

I doubt this is something that my users will like.

But, if implement my pages with blocks, like:

Page1.tml:
<t:layout>
    <t:delegate to="block:mainBlock" />
    <t:block id="mainBlock">
       Page1
    </t:block>
</t:layout>

Page2.tml
<t:layout>
    <t:delegate to="block:mainBlock" />
    <t:block id="mainBlock">
       Page2
    </t:block>
</t:layout>

Then on page3 I can embed contents of mainBlocks from page1 and page2 like
this:

Page3.tml
<t:layout>

        <t:delegate to="page1.mainBlock" />
        <t:delegate to="page2.mainBlock" />

</t:layout>


I think this is something you want to do, isn't it?



> ░░░░░░░░░░░░░░░░░▒█████████▓░░░░░░░░░░░░░░░░░
> ░░░░░░░░░░░░░░░▓██████████████▒░░░░░░░░░░░░░░
> ░░░░░░░░░░░░░▒████▓▒░░░░░░▒▓████▒░░░░░░░░░░░░
> ░░░░░░░░░░░░████▒░░░░░░░░░░░░▒████░░░░░░░░░░░
> ░░░░░░░░░░░███▒░░░░░░░░░░░░░░░░▒███░░░░░░░░░░
> ░░░░░░░░░░███░░░░░░░░░░░░░░░░░░░░███░░░░░░░░░
> ░░░░░░░░░██▓░░░░░░░░░░░░░░░░░░░░░░███░░░░░░░░
> ░░░░░░░░██▓░░░░░░░░░░░░░░░░░░░░░░░░▓██░░░░░░░
> ░░░░░░░██▓░░░░░░░░░░░░░░░░░░░░░░░░░░███░░░░░░
> ░░░░░░███░░░░░▒░▒░▒░░░░░░░▒░▒░▒░▒░░░░██▓░░░░░
> ░░░░░▒██░▒░▒▒▒▒▒░▒░▒░▒░▒░▒░▒░▒▒▒▒▒░░░░██░░░░░
> ░░░░░██░░░▒▒▒▒▒▒▒▒▒░▒░▒░▒░▒░▒▒▒▒▒▒▒▒▒░▒██░░░░
> ░░░░██▓░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░▒░██▒░░░
> ░░░░██░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░██░░░
> ░░░██▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░▓█▓░░
> ░░░██░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░▒███░░██░░
> ░░▓█▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░▒██████▓░▓█▒░
> ░░██░▒▒░░░▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░░▓█████████▓░██░
> ░░██░░▒▓▒▒░░░░░░░▒▒▒▒▒▒▒░░░░███████████▓▒░██░
> ░▓█▒░░████████▓▒░░░░░░▒░░░████████▓██▒░░▒░▓█░
> ░██░░█████████████▓▒░░░░████████░░░░█▓▒▒▒▒▒█▓
> ░██░▓████████████████▓▒█████████▒░░░█▓▒▒▒▒░██
> ▒█▓░▒▓▓██░░▒██████████▒█████████▒░░░█▓▒▒▒▒░██
> ▓█▒░▒░▒██░░░███████▓█▓░█▒▓█░▓███▒░░░█▓▒▒▒▒▒▓█
> ██▒▒▒▒▒██░░░██░████░▓▓░▓▓░█████▓░░░▒█▒▒▒▒▒▒▒█
> ██░▒▒▒▒██░░░▓█████▓░█▒░▓█░▒███▓░░░░▓█▒▒▒▒▒▒▒█
> ██░▒▒▒░██░░░░▓███▓░░█▒▒▒█▒░░░░░░░░▒█▓▒▒▒▒▒▒▒█
> ██░▒▒▒▒▓█▒░░░░▒▒▒░░▓█░▒▒▓█▒░░░░░░░██░▒▒▒▒▒▒▒█
> ██░▒▒▒▒▒██░░░░░░░░▒█▒▒▒▒░▓█▓░░░░▒██▒▒▒▒▒▒▒▒▒█
> ██▒▒▒▒▒░▒██░░░░░░▒█▓▒▒▒▒▒░▒██▓▓██▓░▒▒▒▒▒▒▒▒▒█
> ██▒▒▒▒▒▒░▓██▒▒▒▒▓█▓░▒▒▒▒▒▒░▒▒▓▓▒░░▒▒▒▒▒▒▒▒▒▓█
> ▓█▓▒▒▒▒▒▒░▒▓████▓▒░▒▒▒▒▒▒▒▒▒▒░░░▒▒▒▒▒▒▒▒▒▒▒██
> ░██▒▒▒▒▒▒▒░░▒▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░██
> ░██░▒▒▒▒▒▒▒▒▒░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒█▓
> ░▓█▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓█░
> ░░██▒▒▒▒▒▒▒▒▒▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██░
> ░░██▒▒▒▒▒▒▒▒▒▒██░▒▒▒▒▒▒▒▒▒▒▒▒▒░▓▓▒▒▒▒▒▒▒▒▒██░
> ░░▒██▒▒▒▒▒▒▒▒▒▒██▓░░▒▒▒▒▒▒▒▒▒▒██▒▒▒▒▒▒▒▒▒▒██░
> ░░░██▒▒▒▒▒▒▒▒▒▒▒███▒░░░░░▒▒▒▓███▒▒▒▒▒▒▒▒▒▓██░
> ░░░░██▒▒▒▒▒▒▒▒▒▒▒▒███████████▒▒▒▒▒▒▒▒▒▒▒██░░░
>>
>> ░░░░▓██▒▒▒▒▒▒▒▒▒▒▒░▒▓█████▓▒░▒▒▒▒▒▒▒▒▒▒██▒░░░
> ░░░░░███▒▒▒▒▒▒▒▒▒▒▒▒▒░░░░░░▒▒▒▒▒▒▒▒▒▒▒██▓░░░░

░░░░░░███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒███░░░░░
> ░░░░░░░███▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓███░░░░░░
> ░░░░░░░░████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓███▓░░░░░░░
> ░░░░░░░░░▒████▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▓████░░░░░░░░░
> ░░░░░░░░░░░▓█████▓▒▒▒▒▒▒▒▒▒▒▓█████▓░░░░░░░░░░
> ░░░░░░░░░░░░░▓██████████████████▒░░░░░░░░░░░░
> ░░░░░░░░░░░░░░░░▒███████████▓▒░░░░░░░░░░░░░░░
>




-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Reply via email to