Skip to content

Commit 6e6058c

Browse files
author
Jason Smith
committed
Updated docs
1 parent ae463a8 commit 6e6058c

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# pkplugins
22

33
Panels based plugin that wraps a pattern-builder/patternkit library of components.
4+
This code will hit the patternkit RESTful endpoints to generate a list of "content types" in panels that can be drag/dropped into panel variants. The configuration screen is simply an iframe wrapper of a simplified version of the patternkit schema builder.
45

6+
When pattern configurations are saved, the template is downloaded locally (to mitigate origin failures and lock in version at time of configuration.)
7+
8+
Rendered twigs may contain drupal tokens, which are then processed in context.
9+
10+
## Important Variables
11+
12+
* pkplugins_cache_enabled - Whether or not the metadata and render cache are enabled. (Disable during development)
13+
* pkplugins_pk_host - The scheme://hostname:port/ of the patternkit library host.
14+
* pkplugins_default_module_ttl - How long the rendered pattern should be cached.
15+
* pkplugins_show_errors - Whether or not to display messages on the site.
16+
* pkplugins_log_errors - Whether or not to log errors to php error log.
17+
18+
## TODOs
19+
20+
* Error handling.
21+
* Better information about available tokens.
22+
* More investigation into the appropriate handling of web component configuration.
23+
* Finalize the CSS/JS management strategy.
524
More documentation will be added.

0 commit comments

Comments
 (0)