Hello,
I would like to sort terms of the vocabularies in a particular way
I don’t inderstand how it sorted in admin (in fact not in relation with ‘id’ in DDB) and I can’t modify it…
Do you have any idea ?
Thanks in advance.
Gil
Hello,
I would like to sort terms of the vocabularies in a particular way
I don’t inderstand how it sorted in admin (in fact not in relation with ‘id’ in DDB) and I can’t modify it…
Do you have any idea ?
Thanks in advance.
Gil
Hello Gil!
What vocabulary are you referring to? Is it anything created with a particular plugin?
Hello Daniele,
Thank you for your reply.
I am using the plugin SimpleVocabPlus.
Gil
Hello Gil.
SimpleVocabPlus plugin’s displayed suggestions are retrieved via the suggestProxyAction()
function in controllers/EndpointController.php
file.
You might play around with that function’s line
$results = $termTable->findBySql('vocab_id = ? and term like ?',array($svAssign->vocab_id,$term.'%'))
to alter the terms order.
While you’re at there: I’ve created an improved fork of the plugin, still waiting to get it merged with the original one. If you’re interested in trying it, you can find it at https://github.com/DBinaghi/plugin-SimpleVocabPlus
Hope this helps.