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, biapar, Willr, Ingo, swaiba, simon_w

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


36 Posts   2526 Views


29 August 2010 at 11:09pm Community Member, 218 Posts

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.


29 August 2010 at 11:50pm Community Member, 218 Posts

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

works perfectly.


30 August 2010 at 4:51am 4085 Posts

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.


30 August 2010 at 5:04am Community Member, 218 Posts

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: