Loader::('url')

Permalink
Hi,

I'm developping some single pages in the dashboard.
i have some soon pages like 'Full Sitemap' 'Folder ViewPage' 'SearchAccess' in the sitemap.
All is ok but i don(t find the way to build a url from one soon to her neighbor.
I have a 'edit' button in a page and want to redirect to de 'edit page' with some $POST variable. I don't find the way or the Helper..

Thanks

Seb

sebastienj
 
olsgreen replied on at Permalink Reply
olsgreen
Hi,

Not sure I have understood the 'neighbor' part of your question, but this should help you on the way:

<?php 
$form = Loader::helper('form'); 
$ih = Loader::helper('concrete/interface');
?>
<form method="post" action="<?php echo $this->url('/dashboard/youraddon/','edit'); //Post to your single page named edit under youraddon ?>" id="edit-form">
<?php print $form->hidden('myhiddenfield',"myvalue"); //Your POST variable ?>
<?php print $ih->submit("Edit", 'edit-form'); //C5 submit button ?>
</form>


I haven't tested this but should be fine.

KR

O
sebastienj replied on at Permalink Reply
sebastienj
Thanks Kr,

I think that is exactly what i want. I will test that later and tell you the result.

Thanks again,

Seb