Loading...
 
Skip to main content

Features / Usability


[SOLVED] Reasons for customsearch sort impotence when search works? Bugs in tiki 25.x? e.g Uncaught TypeError: customsearch_0.load is not a function or other things?

posts: 8654 France

Well done Aris.

Aris Bernotas wrote:
Update1: The first trick is to use id="0" instead of id="customsearch_0"!!! Selecting sort dropdown then functions as expected.


My understanding is that underscore "_" are ok for html ids. (https://stackoverflow.com/questions/70579/html-valid-id-attribute-values)

We have also an example here with underscore: https://doc.tiki.org/PluginCustomSearch#Advanced_Pagination_in_Smarty_Template

So what's the conclusion of this discussion ?
Is it ok to use underscore for a customSearch id (like Tiki sample) or it is better not to use underscore (or any special character) ?

There are no comments at this time.