This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

Journalt
Journalt

I want to create an autocomplete search form for articles (rainlab.blog), using the octobercms ajax framework.

Is there anyone that did something similar and could tell me where to start ?

I don't know if I should use a jQuery plugin like bootstrap Typeahead or if it could be done just using the october framework ?

Thanks for your tips

code200.miha
code200.miha

check out https://octobercms.com/docs/ajax/attributes-api

you will need something similar ...

    <input type="text" name="q"  data-request="search::onType" data-request-success="console.log(data)" data-track-input="true" autocomplete="off" />

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.