HI,
- SiteApp:
v2.0 allows to overwrite templates, here an extract from the API:
Allow users to overwrite ANY template by placing it at site's
ROOT/templates/Front and ROOT/templates/Back directories. These
directory has the highest priority when looking for template files. So in
other words, this directories behaves as some sort of "primary themes". Each
directory represents a "Frontend" and "Backend" respectively. For common
templates -shared across front & back- the ROOT/templates/Common
directory can be used instead.
- CLI:
In v2.0 CLI is now part of the core. It provides shells aimed for administrative/maintenance tasks. You can find CLI at "ROOT/bin", just open a new terminal there and run "qs" to start the CLI.
However, the new CLI
does not provide baking tasks for creating themes/plugin,
BUT dont worry in v2.0 all plugin & themes are just CakePHP plugins, actually any cakePHP plugin can be installed in QACMS. So if you need to create a new Theme or Plugin just use CakePHP's bake shell.
http://api.quickappscms.org/book/designers/themes.html
- Search API:
Simply import the "Contents" table (within the "Content" plugin) and use the "search()" method, for instance in your controller method:
$this->loadModel('Content.Contents');
$contentEntities = $this->Contents->search("type:CONTENT_TYPE_SLUG");
- Cache duration:
I dont get what you mean, what is "static::cache"?
If you are refering to QACMS's "StaticCacheTrait" I can tell you that it's not a persistent cache. Actually it is used for "Static" classes, commonly used to speed up script execution. Description from the API:
Allows classes to optimize their methods by providing a simple `cache()` static method for reading and writing values.
Regards!