hi
many thanks for your reply.
I widget i passed the query string like still i cant able to view in new page..
Please tell me how to pass the query string in the widget.
http://localhost/pro/Projects/mywid/Story?id=2&action_results=Story
Like this i pass the widget query string
<% if MyStory %>
<% control MyStory %> $Link
<a href="Story?id=$ID&action_results=Story">$Desc</a><br>
(Please tell me how to pass the widget query string)
<% end_control %>
<% end_if %>
THis is my NewStoryWidgetHolder page,
<?php
/**NewStoryWidgetHolder
* Defines the ArticlePage page type
*/
class NewStoryWidgetHolder extends Page {
static $db = array(
);
static $has_one = array(
"Widget" => "WidgetArea",
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Widgets", new WidgetAreaEditor("Widget"));
return $fields;
}
}
class NewStoryWidgetHolder_Controller extends Page_Controller {
function Story()
{
return 'srg';
}
}
?>
Once again thanks :D