Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba

Help with basic table - managed via modelAdmin - with display limit & multiple page results

Go to End

36 Posts   3872 Views


Community Member, 219 Posts

29 August 2010 at 11:09pm

P.P.S - been exploring the code of the default search function. found this:

so i've implemented that into the code you gave earlier to give a cleaner way of getting around that security issue we were having!

public function ProductSearchForm() {
$f = new Form (
new FieldSet(new TextField('s','','Search by title')),
new FieldSet(new FormAction('doProductSearch','Search'))
return $f;

not sure if we can take out: $f->setFormMethod('get'); now?
i tried that but then the second page of search results threw an error up, so ive left it in for now.


Community Member, 219 Posts

29 August 2010 at 11:50pm

Update: as for the "clear on focus" question i had, found a nice tutorial for anybody else who may require this:

works perfectly.


Forum Moderator, 4102 Posts

30 August 2010 at 4:51am

Why would you remove the security token? Is it causing problems? You definitely want the form method as "get", because it allows users to bookmark the search results or send someone a link. POST doesn't have that capability.


Community Member, 219 Posts

30 August 2010 at 5:04am

no, but before it was parsing the secure token in the URL.
which would expire (i think) making the bookmark and sending URLs useless.

its not needed at all for the search function so may as well just disable it, just for this function.
plus other posts in this forum said the only6 option was to disable ALL tokens in the config file, which isn'tideal.

fine to leave the "get" method in, i just wondered if it was obsolete now i had found another way round the secure token.

(p.s- if i've missed something important with this secure token issue please do correct me!)

can you shed any light on the "sort" issues im having?
i started a new thread here:

Go to Top