Du vil sikkert også gå inn og endre verdier også. Jeg har satt spesielle verdier for å demonstrere muligheter. Men du vil f.eks. sikkert ønske mer enn fem uttrykk på en side, og du vil ønske å slette mine eksempel uttrykk og kategorier.'; $lang['postuninstall'] = 'Ble fjernet.'; $lang['uninstalled'] = 'Modul avinstallert.'; $lang['installed'] = 'Modul versjon %s installert.'; $lang['prefsupdated'] = 'Modul innstillinger oppdatert.'; $lang['accessdenied'] = 'Tilgang nektet. Vennligst sjekk dine rettigheter.'; $lang['error'] = 'Feil!'; $lang['upgraded'] = 'Modul oppgradert til versjon %s.'; $lang['title_mod_prefs'] = 'Modul innstillinger'; $lang['title_mod_admin'] = 'Modul administrasjonspanel'; $lang['title_term'] = 'Uttrykk'; $lang['title_definition'] = 'Definisjon'; $lang['column_definition'] = 'Definisjon'; $lang['title_default_template'] = 'Standard visnings mal'; $lang['title_default_single_term_template'] = 'Standard visnings mal for sprettopp vindu'; $lang['title_filter_site'] = 'Filtrer nettsted for uttrykk?'; $lang['title_filter_news'] = 'Filtrer Nyhetersartikler for uttrykk?'; $lang['title_number_show'] = 'Antall uttrykk å vise pr side'; $lang['title_default_number_show'] = 'Standard antall uttrykk å vise pr side'; $lang['title_filter_site_label'] = 'Aktiver alle uttrykk på nettstedet? (advarsel - bremser nettstedet)'; $lang['title_glossary_page'] = 'Ordliste side (mål for aktive lenker)'; $lang['title_disable_prettyurls'] = 'Koble ut vakre nettadresser for denne modulen'; $lang['title_disable_prettyurls_label'] = 'Koble ut'; $lang['title_glossary_inline'] = 'Vise linkede uttrykk inline?'; $lang['title_show_termids'] = 'Vis Uttrykk ID-nummere i admin'; $lang['title_display_tab'] = 'Ordliste visningsvalg'; $lang['title_single_term'] = 'Vise linkede uttrykk på egen side?'; $lang['title_single_term_label'] = 'Vise enkle uttrykk (i motsetning til full ordbok)'; $lang['title_wysiwyg_definitions'] = 'Benytt WYSIWYG for å skrive uttrykksdefinisjoner?'; $lang['title_wysiwyg_terms'] = 'Benytt WYSIWYG for å skrive uttrykk?'; $lang['title_wysiwyg_terms_help'] = 'Vennligst vær oppmerksom på at markup inne i utrykk kan påvirke bokstavinndeling(aphabetizing) og med aktiverte uttrykk!'; $lang['title_link_tab'] = 'Ordbok Link valg'; $lang['title_admin_tab'] = 'Administrasjonspanel valg'; $lang['title_filtering_tab'] = 'Nettsted Uttrykk-filtreringsvalg'; $lang['title_number_spining_chars'] = 'Maksimum antall bokstaver å bruke av et uttrykk i Ordbok lenken'; $lang['title_process_smarty'] = 'Prosesser Smartytagger i definisjoner?'; $lang['filter_link'] = 'Link til Ordbok siden'; $lang['column_term'] = 'Uttrykk'; $lang['column_termid'] = 'Uttrykk ID'; $lang['column_action'] = 'Handling'; $lang['column_category'] = 'Kategori'; $lang['title_admin_panel'] = 'Ordliste / Ordbok / (FAQ)'; $lang['title_term_list'] = 'Uttrykk'; $lang['title_name'] = 'Navn'; $lang['title_cats'] = 'Kategorier'; $lang['title_filter_category'] = 'Vis kun denne kategorien:'; $lang['title_all'] = 'Alle kategorier'; $lang['column_template'] = 'Mal navn'; $lang['title_template'] = 'Mal definisjon'; $lang['addterm'] = 'Legg til nytt Uttrykk'; $lang['termadded'] = 'Uttrykk ble lagt til.'; $lang['termdeleted'] = 'Uttrykk ble slettet.'; $lang['edit'] = 'Rediger uttrykk'; $lang['no'] = 'Nei'; $lang['yes'] = 'Ja'; $lang['filter'] = 'Filtrer'; $lang['delete'] = 'Slett uttrykk'; $lang['suredelete'] = 'Er du sikker på at du vil slette uttrykket %s?'; $lang['listterms'] = 'Behandle uttrykk'; $lang['listtempl'] = 'Behandle maler'; $lang['listcats'] = 'Behandle kategorier'; $lang['addcat'] = 'Legg til kategori'; $lang['editcat'] = 'Rediger kategori'; $lang['delcat'] = 'Slett kategori'; $lang['manageprefs'] = 'Admin innstillinger'; $lang['templatelist'] = 'Maler'; $lang['unknown_term'] = 'Ukjent uttrykk %s forespurt.'; $lang['glossary_page_help'] = 'Velg en side her som inneholder en tagg for å vise ordbok informasjonen, f.eks., en side som inneholder {cms_module module="Glossary"}'; $lang['glossary_prettyurls_help'] = 'Å koble ut vakre nettadresser for denne modulen kan hjelpe i tilfeller hvor noen av søkeuttrykkene har ikke-alfanummeriske tegn eller mellomrom.'; $lang['glossary_inline_help'] = 'Bruk følgende valg om du ønsker at dine aktive-uttrykk definisjoner skal vises in-line. Dette er gjensidig eksklusivt for linking til Ordbok siden.'; $lang['title_glossary_inline_label'] = 'Vis inline'; $lang['notemplates'] = 'Ingen maler i databasen.'; $lang['nocats'] = 'Ingen kategorier i databasen.'; $lang['addtemplate'] = 'Legg til mal'; $lang['templateupdated'] = 'Mal oppdatert'; $lang['templatedeleted'] = 'Mal slettet'; $lang['catupdated'] = 'Kategori oppdatert'; $lang['catdeleted'] = 'Kategori slettet'; $lang['areyousure'] = 'Er du sikker på du vil slette %s?'; $lang['next'] = ' : Neste »'; $lang['prev'] = '« Forrige : '; $lang['moddescription'] = 'Denne modulen tillater deg å lage en liste med uttrykk og definisjoner å vise frem. Et uttrykk kan være et ord, et ofte spurt spørsmål eller noe lignende.'; $lang['changelog'] = '
This allows the administrator to create a list of terms, which will appear on a page. Clicking on the term will expand it to include the definition.
Install it by placing the module in a page or template using the smarty tag {cms_module module='Glossary'}
You can have it start with a term expanded by passing a term=Term parameter, or passing a tid=term_id.
You can limit it to a specific category by passing a cat="Category" parameter.
You can override the default template by passing a template="template_id" parameter (use the numeric id for the template, or the template name).
You can limit it to definitions containing a keyword by passing a keyword="keyword".
This module also will read the URL, and support specifications of "term" or "cat" on the URL. So, for example, you could have an URL like http://mysite/index.php?page=10&term=myterm. If page 10 includes the Glossary module, it will expand the definition of "myterm".
Sometimes, you will want a short list of terms, but have clicks on those terms to load a full list. For example, you might want three random terms in the sidebar, but clicking on those terms should show the selected term in a complete term list. To do this, set the "no_pass_restriction" variable.
For example, on your sidebar you want three random terms from category "foo". Clicking on a term should show a full, alphabetical list of category "foo" with the specific term open. Your tag for the sidebar will then look like:
{cms_module module='Glossary' cat='foo' sort='random' term_count='3' no_pass_restriction='sort,term_count'}
In the admin, you can enable the WYSIWYG editor for terms and term definitions. Because of the way the system uses terms, it is not recommended to use markup in the terms themselves. If you insist on doing it (and some people do, in fact, have good reasons to do so), be aware that site filtering will probably break, and the glossary page nav may be messed up.
You can also enable smarty processing on term definitions. This will permit you to do all sorts of wild stuff like self-linking and other smarty madness. Hey -- if you know enough to go on the black diamond run, you know the risks! I will say no more.
You can make terms that show up in your pages link to their definitions, either "inline" (where it replaces the content of your page), or by linking to your main Glossary page. This is the "inline" option which you can set in the "Glossary Links Options" section of the Glossary Admin Prefs.
You can also choose to have links go to a page with only the definition of your term, and you can control the display of this by altering the template. This also set in "Glossary Links Options" section of the Glossary Admin Prefs.
You can tag specific words to be linked to the Glossary if you want, by placing the following tag in a page: {cms_module module='Glossary' action='def' term='foo'}, where you replace "foo" with a term that you have in your glossary.
If you turn on site filtering, every instance of each of your terms that shows up on the site will become a link. Depending on the mode you choose in the admin, this will either be a link to your main Glossary page or open to the term in question.
Site filtering is an intensive process, and will slow your site down somewhat. There is an alternate, faster implementation that I may use to replace the existing one, if there are enough complaints. It's more complicated, and I'm lazy, but given sufficient demand, I'll fix it.
Development of this module has been generously sponsored by Matt Hornsby.
Extensive testing, QA, ideas, and non-negotiable demands provided by Paul "InSiPiD" Noone and Daniel "Westis" Westergren.
This module does not include commercial support. However, there are a number of resources available to help you with it:
As per the GPL, this software is provided as-is. Please read the text of the license for the full disclaimer.
Copyright © 2006, Samuel Goldstein <sjg@cmsmodules.com>. All Rights Are Reserved.
This module has been released under the GNU Public License. You must agree to this license before using the module.