Git Product home page Git Product logo

comsolit / comsolit_suggest Goto Github PK

View Code? Open in Web Editor NEW
2.0 9.0 7.0 1.94 MB

This Plugin extends the TYPO3 searchform with an autocomplete and suggest feature of words indexed from Ext:indexed_search based on a ajax request and typeahead lib, simple add just class="typeahead" to your searchbox input field

License: Other

PHP 83.35% HTML 14.47% CSS 2.19%
looking-for-maintainer unmaintained

comsolit_suggest's Introduction

THIS REPO IS UNMAINTAINED / A NEW MAINTAINER IS NEEDED

Search Word Suggestion / Autocompletion

This Plugin extends the TYPO3 searchform with an autocomplete and suggest feature of words indexed from Ext:indexed_search based on a ajax request and typeahead lib, simple add just class="typeahead" to your searchbox input field

Features

  • autocomplete and suggest with single words of the search index database table
  • the extension includes a searchbox for easy integration in your page
  • simple adding autocomplete/suggest to an input field with class="typeahead"
  • jQuery on/off mode
  • Styling autocomplete/suggest pulldown via CSS and HTML template file
  • add autocomplete/suggest to the standard indexed_search form template
  • configuration of minLenght and Limitation of suggested words

Extension Documentation <https://typo3.org/extensions/repository/view/comsolit_suggest>

comsolit_suggest's People

Contributors

akoenig-clickstorm avatar alexanderschneider avatar clecherbauer avatar misenring avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

comsolit_suggest's Issues

Multidomain Installation shows results from all page trees, not just single

Hi,

I'm using the extension on multidomain setup with several page trees, one for each website (e.g. .com, .de,. fr, .it, ...).

When I'm on .de and type something in the search box, I also get results shown from the other page trees, e.g. English or French content, which are not inside the website (page tree) I'm currently visiting. Am I missing a configuration to only show the search results matching the current website/page tree?

Otherwise please see this as a bug report, I'm looking forward hearing from you and am happy to provide further information if needed.

How to set up an own suggest Query

great Extension - the only autocompleter which still works with Typo3 7.* - thanks !
But how can I set up an individual suggest Query ? - when I create a new data-item (type: Query),
there are no input fields to edit ...?

Please add hint to documentation to use static templates

Your documentation does not include the hint to use the static template of
comsolit_suggest - but only with this constant/setup settings
any extension code will be available in the indedex_search button with the class="typeahead"
setup.

Bug report: On 9.5 the ext. gives some errors

I'm using the extension on multidomain setup (TYPO3 9.5).

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1294587217: The page is not configured! [type=999][]. This means that there is no TypoScript object of type PAGE with typeNum=999 configured. | TYPO3\CMS\Core\Error\Http\ServiceUnavailableException thrown in file /kunden/.../rp-hosting/.../.../typo3cms/typo3_src-9.5.5/typo3/sysext/frontend/Classes/Controller/TypoScriptFrontendController.php in line 2597. Requested URL: http://....webseiten.cc/?type=999&no_cache=1&tx_comsolitsuggest_suggest[search]=Search%%20&tx_comsolitsuggest_suggest[method]=suggest

I get the following error while typing into search field:
8a2540bc2a.js?1554495103:11 Uncaught TypeError: $.ajax is not a function
at transport (8a2540bc2a.js?1554495103:11)
at Transport.wrapper [as _send] (typeahead.bundle_mod.js?1552805466:785)
at Transport._get (typeahead.bundle_mod.js?1552805466:374)
at later (typeahead.bundle_mod.js?1552805466:113)
transport @ 8a2540bc2a.js?1554495103:11
wrapper @ typeahead.bundle_mod.js?1552805466:785
_get @ typeahead.bundle_mod.js?1552805466:374
later @ typeahead.bundle_mod.js?1552805466:113
setTimeout (async)
(anonymous) @ typeahead.bundle_mod.js?1552805466:118
get @ typeahead.bundle_mod.js?1552805466:406
get @ typeahead.bundle_mod.js?1552805466:638
search @ typeahead.bundle_mod.js?1552805466:881
withAsync @ typeahead.bundle_mod.js?1552805466:829
update @ typeahead.bundle_mod.js?1552805466:1705
updateDataset @ typeahead.bundle_mod.js?1552805466:1882
reverseArgs @ typeahead.bundle_mod.js?1552805466:968
each @ jquery-3.3.1.min.js?1554621400:2
each @ typeahead.bundle_mod.js?1552805466:966
update @ typeahead.bundle_mod.js?1552805466:1878
onFocused @ typeahead.bundle_mod.js?1552805466:2028
(anonymous) @ typeahead.bundle_mod.js?1552805466:2216
reverseArgs @ typeahead.bundle_mod.js?1552805466:968
each @ jquery-3.3.1.min.js?1554621400:2
each @ typeahead.bundle_mod.js?1552805466:966
(anonymous) @ typeahead.bundle_mod.js?1552805466:2215
flush @ typeahead.bundle_mod.js?1552805466:1264
trigger @ typeahead.bundle_mod.js?1552805466:1255
onFocus @ typeahead.bundle_mod.js?1552805466:1382
i @ jquery-3.3.1.min.js?1554621400:2
dispatch @ jquery-3.3.1.min.js?1554621400:2
v.handle @ jquery-3.3.1.min.js?1554621400:2

Looking forward hearing from you and am happy to provide further information if needed.

multilanguage

it doesnt show suggestions of languages if im in L=1 it shows only L=0 results but if i enter ... it goes to the index search where are results in L=1 are showing ... any ideas or a known problem ?

Under TYPO3 10 each query creates an entry in typo3.log

Example:
Mon, 12 Jul 2021 17:20:41 +0200 [WARNING] request="63475e337452e" component="TYPO3.CMS.Frontend.Controller.TypoScriptFrontendController": $TSFE->set_no_cache() was triggered. Reason: &no_cache=1 has been supplied, so caching is disabled! URL: "https://www.example.com/?type=999&no_cache=1&tx_comsolitsuggest_suggest%5Bsearch%5D=test&tx_comsolitsuggest_suggest%5Bmethod%5D=suggest". Caching is disabled!

This can be avoided by changing the following in Setup.typoscript:
plugin.tx_comsolit_suggest = USER_INT (instead of "USER")
and remove &no_cache=1 from url in page.jsFooterInline.999

v1.0.5 from TER: stuffes input field with elements but: Does nothing at all

Using typo3 v7.2.6 with php 5.6 and comsolit_suggest 1.0.5 from TER.
The input field has the class="typeahead tx-indexedsearch-searchbox-sword sword"
Lots of code is added to this and some other fields in the html-code of the search-page.
The index-search itsself is working pretty well.
Im including for other jqueries on the page jQuery 2.1.4 from Google.
So this is the same version you are using, right?
I can see the js-code of your extension in the html, included after all other js-code of the page in the
/TS_inlineFooter/ section.
But suggestions are not given.
Do you have any ideas?

JavaScript error on result handling / JSON parsing

Following JavaScript error is reported when searching via searchbox:
SyntaxError: JSON.parse: unexpected character at line 5 column 1 of the JSON data

Input field layout:
<input dir="auto" spellcheck="false" autocomplete="off" class="form-control typeahead tt-input" name="tx_indexedsearch[sword]" value="" placeholder="Suche" type="search">

Environment:
dev context - Windows 8.1 - local xampp server (PHP 5.6.3)

My test result data read from JS: (sorry, would not let me attach a file)
=> onSuccess(JSON.parse(removeHTML(data)));
data:
`

<title>XAMPP 5.6.3</title> ` data: (removeHTML) `"XAMPP 5.6.3 "`

I see two things:

  1. the <title> attribute content remains before parsing JSON
  2. no results, there should be some, because
    /?type=999&no_cache=1&tx_comsolitsuggest_suggest[search]=erdgas&tx_comsolitsuggest_suggest[method]=suggest
  • actually returns JSON content

TYPO3 10 Support

Hello,
I am using this Extension on TYPO3 10 and it works quite well till now. So could you please add constraints for TYPO3 10 in ext_emconf and composer.php, so I dont have to use a local git repository to install this extension via composer?

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.