Da ich hier und da kleinere schnelle Berechung auf dem Numpad machen muss, stört im deutschen Tastaturlayout das Komma, da zum Beispiel bc kein Komma als Dezimaltrenner sondern einen Punkt erwartet. Wie das halt im englischen so üblich ist. Da her habe ich mir eine keine Funktion gebaut, bei der man Kommata ein und die diese auch wieder ausgibt.
Das ganze funktioniert nur mit einfachen Berechnungen und rundet auf die zweite Dezimalstelle.
Einfach in die .bashrc eintragen:
# simple calculator
calc () {
echo "scale=2;$@" | sed "s/,/\./" | bc | sed "s/\./,/"
}
This Textpattern plugin lists a custom field in the admin article list. Additonally the article search/filter is extended with the custom field (see screenshot below).

Download compiled and source:
yab_cf_article_list_v0.1.tar.gz
yab_cf_article_list
List a custom_field in admin article list and search article list for this custom field.
Version: 0.1
Table of contents
- Plugin requirements
- Configuration
- Changelog
- License
- Author contact
Plugin requirements
Minimum requirements:
Configuration
Install and activate the plugin.
The function yab_cfal_config() in the plugin code contains an array with some config values:
'custom_field': Number of the custom field
Default: 1
'name_for_list': Name of the custom field in the table head and in article search.
Default: empty (The given name for this custom field will be shown.)
Changelog
Licence
This plugin is released under the GNU General Public License Version 2 and above
Author contact
Da sind Sie um, die ersten Zehn Jahre bloggen. Naja zumindest hier unter der Domain. Es gab vorher schon eine Pivot-Installation auf meinem Uni-Account aber nur ein halbes Jahr lang.
Zum 100-jährigen mach ich dann auch ein richtiges Review. Mit »Best-Ofs« natürlich. Versprochen.
Stay tuned.
Btw. Der erste Eintrag hier war dieser: Alles neu macht der …
trenc am 15. Februar 2014
Linkhub |
This Textpattern plugin is a replacement for upm_savenew. It generates a button in the write tab. By clicking the button you can copy the article content to a new one.
Download compiled and source: yab_copy_to_new_v0.2.tar.gz
yab_copy_to_new
Displays a new button in article write tab to copy the current article to a new one.
Version: 0.2
Table of contents
- Plugin requirements
- Configuration
- Changelog
- License
- Author contact
Plugin requirements
yab_copy_to_new’s minimum requirements:
- Textpattern 4.x
- Modern browser capable of HTML5 sessionStorage
Configuration
Install and activate the plugin.
The following form fields will not be copied by default:
- all of hidden type
- an exclude array of posted day and time and the url_title
You can modify this exclude array on your own,
The function yab_ctn_config() contains an array with some config values and a commented example of the array which places the button near the top »Create new button«.
'exclude': Javascript array with field to excluded from copying
'position_selector': a valid jQery selector (used by position_method)
'position_method': any jQuery DOM insert method (after, prepend, append, before etc.)
'class': html class applied to teh button
'style': inline style attribute aplied to the button
Changelog
Install and activate the plugin.
The following form fields will not be copied by default:
- all of hidden type
- an exclude array of posted day and time and the url_title
You can modify this exclude array on your own,
The function yab_ctn_config() contains an array with some config values and a commented example of the array which places the button near the top »Create new button«.
'exclude': Javascript array with field to excluded from copying
'position_selector': a valid jQery selector (used by position_method)
'position_method': any jQuery DOM insert method (after, prepend, append, before etc.)
'class': html class applied to teh button
'style': inline style attribute aplied to the button
Licence
This plugin is released under the GNU General Public License Version 2 and above
Author contact
This simple Textpattern plugin simply remembers the selected categories in the admin write tab while creating an article. It’s saves the values in the Browsers HTML5 localStorage.
Download compiled and source: yab_remember_categories_v0.2.tar.gz
Version: 0.2
Table of contents
- Plugin requirements
- Configuration
- Changelog
- License
- Author contact
Plugin requirements
yab_remember_categories’s minimum requirements:
Configuration
Install and activate the plugin. The Plugin remembers the previously selected category 1 and category 2 in write tab while creating an article by saving with HTML5 localStorage.
Changelog
- v0.1: 2014-02-04
- v0.2: 2014-02-06
- bugfix: does now only work on article create step
Licence
This plugin is released under the GNU General Public License Version 2 and above
Author contact