The following warnings occurred:
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/printthread.php 203 postParser->parse_message



GetSimple Support Forum
Glossary plugin? - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Feature Requests (http://get-simple.info/forums/forumdisplay.php?fid=7)
+--- Thread: Glossary plugin? (/showthread.php?tid=6640)



Glossary plugin? - atstarr - 2014-08-12

I apologize if this should go in plugins not feature requests -- but anyone working on a glossary plugin? I could certainly just do a page with a long glossary but would be nice to have a plugin to manage this. I.e. have a word or phrase, with the possibility of multiple definitions, and perhaps images of links to examples.

Thanks


RE: Glossary plugin? - Tyblitz - 2015-04-30

(2014-08-12, 02:48:24)atstarr Wrote: I apologize if this should go in plugins not feature requests -- but anyone working on a glossary plugin?  I could certainly just do a page with a long glossary but would be nice to have a plugin to manage this.  I.e. have a word or phrase, with the possibility of multiple definitions, and perhaps images of links to examples.

Thanks

Yes this should be in the Plugins/ General Questions subforum, as the scope is probably too broad to include in the core. 
Although not its primary purpose; you could do this with GS Custom Settings, eg create a tab named 'glossary', and create a setting for each word, set the description to the word description, and the lookup 'word_x' where x is a number. You can reorder them alphabetically in the UI in Edit mode. If you're going to frequently update the list, you need to first return the settings in a for loop, and sort them with PHP sort() to avoid having to reset the numbers. 

[Image: ZxZESZK.png]

In your PHP template you could do something like:

PHP Code:
<?php $amount_of_words 8
for (
$i 1$i $amount_of_words$i++) { 

  $word 
return_setting('glossary''gloss_' $i'label');
  if ($i 0)
    $wordPrev return_setting('glossary''gloss_' . ($i 1), 'label');
  if ($i === || ($i && strtolower($wordPrev{0}) !== strtolower($word{0}))) {
    if ($i 0) echo '</dl>';
    echo '<h3>' strtoupper($word{0}) . '</h3>';
    echo '<dl>';
  }
  echo '<dt>' $word '</dt><dd>' return_setting('glossary''gloss_' $i'descr') . '</dd>';
  if ($i === $amount_of_words-1) echo '</dl>';
?>



This script outputs an HTML definition list with subtitles for each letter (glossary data from http://pc.net/glossary/):


[Image: ccdWkek.png]



RE: Glossary plugin? - shawn_a - 2015-04-30

Sooo fu@$#%ing pimp!
well done