Hi,
I took another stab at this. Anyway I made a ad_include_contract. As of now basically it runs ad_page_contract.
So my .tcl file has something like this:
----------------------------
ad_page_contract {
display search results
} {
name_search:optional
title_search:optional
content_search:optional
content_type_search:optional
{display_search_results:optional 0}
{bulk_actions:optional ""}
{bulk_action_export_vars:optional ""}
{orderby:optional}
{page:optional}
}
ad_include_contract {
display search results
} {
name_search:optional
title_search:optional
content_search:optional
content_type_search:optional
{display_search_results:optional 0}
{bulk_actions:optional ""}
{bulk_action_export_vars:optional ""}
{orderby:optional}
{page:optional}
}
-------------------------------
Looks a bit odd. But both ad_include_contract and ad_page_contract on my example has the same validation functions. Anyway its a bit hard since ad_page_contract will complain that it has 2 values of foo. Since I pass foo on the include tag. If I remove ad_page_contract things are fine. But I really would like my page to be either called alone or within a page. I use my search.tcl when searching or included on relating items page.
Anyway I have given up. I will not post a tip anymore. I need to get my project underway. Thanks.