2017 © Pedro Peláez
 

silverstripe-module searchresultspage

SilverStripe 3 Search Page

image

iqnection-pages/searchresultspage

SilverStripe 3 Search Page

  • Monday, April 17, 2017
  • by iqmeckert
  • Repository
  • 4 Watchers
  • 0 Stars
  • 20 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

SilverStripe Search Page with Fulltext

Searches all pages and data objects (that have a proper index), (*1)

All DataObject subclasses that include a fulltext index named "SearchFields" will be searched Specify the database columns you want to be searched as follows:, (*2)

private static $indexes = [
    'SearchFields' => [
        'type' => 'fulltext',
        'columns' => ['MyField1', 'MyField2'],
    ]
];

You'll also need to set the tabel engine as follows, (*3)

private static $create_table_options = [
    MySQLSchemaManager::ID => 'ENGINE=MyISAM'
];

Build your search form setting the search input with the name "s", and post to the search page action "results", (*4)

<form method="get" action="{$SearchPage.Link(results)}">
    <input type="search" name="s" value="" />
    <input type="submit" value="Search" />
</form>

see: https://docs.silverstripe.org/en/4/developer_guides/search/fulltextsearch/ for more information on full text search, (*5)

The Versions

17/04 2017

dev-master

9999999-dev

SilverStripe 3 Search Page

  Sources   Download

The Requires

 

search pages iqnection

17/04 2017

1.0.1.1

1.0.1.1

SilverStripe 3 Search Page

  Sources   Download

The Requires

 

search pages iqnection

27/03 2017

1.0.1

1.0.1.0

SilverStripe 3 Search Page

  Sources   Download

The Requires

 

search pages iqnection

15/07 2016

1.0.0

1.0.0.0

SilverStripe 3 Search Page

  Sources   Download

The Requires

 

search pages iqnection

05/10 2015

0.0.3

0.0.3.0

SilverStripe 3 Search Page

  Sources   Download

The Requires

 

search pages iqnection

30/09 2015

0.0.2

0.0.2.0

SilverStripe 3 Search Page

  Sources   Download

The Requires

 

search pages iqnection

24/09 2015

0.0.1

0.0.1.0

SilverStripe 3 Search Page

  Sources   Download

The Requires

 

search pages iqnection