Posted by Kai Uwe (kaiuwe) on 2011-06-09T07:13:33.000+0000
Hi Jiri,
Any comments on this?
Posted by Jiri Havlik (havlikjiri) on 2011-06-09T07:53:38.000+0000
Hi Kai,
my problem is that it is not possible to remove pages in subcontainers. Eg. page DVD cant be deleted by calling something like $container->removePageByUri(dvd, true); Where "true" means Search all containers recursively. You have to get the right container first and then delete your page.
I think that it would be nice to have a function which searches all containers recursively for page given to delete.
Posted by Kai Uwe (kaiuwe) on 2011-06-09T08:41:10.000+0000
Comments
Posted by Kai Uwe (kaiuwe) on 2011-03-20T17:16:54.000+0000
I don't understand your problem. Can you give an example?
Output 1:'; echo $view->navigation($container)->menu(); // Remove page "Products" $container->removePage(1); echo 'Output 2:'; echo $view->navigation($container)->menu();Output 1:Home ProductsDVD Games Music Contact imprintOutput 2:Home Contact imprintPosted by Kai Uwe (kaiuwe) on 2011-06-09T07:13:33.000+0000
Hi Jiri, Any comments on this?
Posted by Jiri Havlik (havlikjiri) on 2011-06-09T07:53:38.000+0000
Hi Kai,
my problem is that it is not possible to remove pages in subcontainers. Eg. page DVD cant be deleted by calling something like $container->removePageByUri(dvd, true); Where "true" means Search all containers recursively. You have to get the right container first and then delete your page.
I think that it would be nice to have a function which searches all containers recursively for page given to delete.
Posted by Kai Uwe (kaiuwe) on 2011-06-09T08:41:10.000+0000
Ah, I understand.
|findOneBy|removeOneBy| |findAllBy|removeAllBy| |findBy|removeBy|
I think for the implementation, we can use all "find" methods.
I will write some unit test.
Thanks for your fast feedback!
Posted by Frank Brückner (frosch) on 2011-09-23T08:15:28.000+0000
Based on the new filter options ({{useRegex}}). See ZF-9994