Hi Banal
I'm sure you'r right and that I over complicate things and that template language and logic is more sipmle than what I think.
But I made progress like I'm using swfobject like you said and it works like a charm .
Regarding the site tree (my nightmare):
At first wanted to retrieve it tottally then I realised that it would be (even in the flash file) much easier for me if I could just retrieve the section that is currently visible on screen and use it in my flash layer instead of processinf the all tree.
I just tried to create:
templates/export/ExportProductPage.ss with this in it :
<node id="$ID" label="$Title" link="$Link" classname="$ClassName">
<% control Children %>
$ExportContent
<% end_control %>
</node>
but I get the same results :
If I do :
http://mysite/products/productname/show/export
i get the error
user_error("DataObject::get_by_id passed a non-numeric ID #$id", E_USER_WARNING);
If I do :
http://mysite/products/productname/show/5/export
i get the regular page
If I do :
http://mysite/products/productname/export
i get the error :
Action 'export' isn't allowed on class ProductPage_Controller
What I dont get is that with the other export it works fine but here if I do $Link/export it would mean in my case :
http://mysite/products/productname/show/5/export
And in your example (the html one ) it seems that by juts creating "templates/export/ExportPageTemplateName.ss it should work.
I think I missed something topugh I'm really trying to undertstand the process and I read it carefully.
Thank again if you can explain me