summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/SemanticMediaWiki/docs/technical/code-snippets/README.md
blob: 2136293837a45c223c246b54a1846b0707ccba12 (plain)
1
2
3
4
5
6
7
8
9
10

## Examples and code snippets

* [register.datatype.md](register.datatype.md) Shows how to register a new dataType/dataValue
* [approve.update.md](approve.update.md) Shows how to alter the data representation in Semantic MediaWiki with the help of selected hooks in connection with the `ApprovedRevs` extension

### Using hooks

* [hook.datatype.inittypes.md](hook.datatype.inittypes.md) Shows how to register a new dataType/dataValue using the the `SMW::DataType::initTypes` hook
* [hook.pagecontentsavecomplete.md](hook.pagecontentsavecomplete.md) Creating subobjects using the `PageContentSaveComplete` hook (see [#2974](https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues/2974))