blekerfeld / donut

Donut, dictionary toolkit
MIT License
9 stars 3 forks source link

Multiple linking tables upon the same section should be allowed! #8

Closed blekerfeld closed 7 years ago

blekerfeld commented 7 years ago

That way it would be possible to have two linking tables for words within words (synonyms and antonyms).

blekerfeld commented 7 years ago

This should look like this in the outgoing links section of the structure:

'words' => array( array( 'section' => 'words', 'surface' => "Synonyms", 'icon' => 'fa-clone', 'table'=> 'synonyms', 'field' => 'word_id_2') ), array( 'section' => 'words', 'surface' => "Antonyms", 'icon' => 'fa-venus-mars', 'table'=> 'antonyms', 'field' => 'word_id_2') ), ),

blekerfeld commented 7 years ago

Linking tables accept this know, instead a different key is needed to use the same section again :)