AssetsTK
No edit summary
No edit summary
Line 1: Line 1:
AssetsTK is the strategy to move files along with your model onto the server that runs your Turnkey application everytime you upload your model.
AssetsTK is the strategy to move files along with your model onto the server that runs your Turnkey application every time you upload your model.


Your model has a file name ending with either .[[ecomdl]] (multi file format) or .[[modlr]] (zip format).
Your model has a file name ending with either .[[ecomdl]] (multi-file format) or .[[modlr]] (zip format).


You create a folder next to your model file and name it <Your Model file name without extension>_AssetsTK.
Create a folder next to your model file and name it <Your Model file name without extension>_AssetsTK.


Now any files put into the _AssetsTK folder will be uploaded along with your model - and expanded out from your application root.
Now, any files put into the _AssetsTK folder will be uploaded along with your model - and expanded out from your application root.


If you need to put a image in Cthe ontent folder of your app then create a Content folder in _AssetsTK and put your image in there.
If you need to put an image in the Content folder of your app, create a Content folder in _AssetsTK and put your image in there.


AssetsTK is further detailed in the section on [[Theme_and_style]] - but note that that AssetsTK is usable for more things that sending style information to the server.
AssetsTK is further detailed in the section on [[Theme_and_style]] - but note that AssetsTK is useful for more things than sending style information to the server.


=== Common overrides you can try ===
=== Common Overrides You Can Try ===
<YouModelFileName>_AssetsTK/Views/EXT_OverridePages/index.cshtml
<YouModelFileName>_AssetsTK/Views/EXT_OverridePages/index.cshtml


Now the Index ViewModel will be replaced with the html you have in index.cshtml - but still framed by the Turnkey app (Main menu and left menu).  
Now the Index ViewModel will be replaced with the HTML you have in index.cshtml - but still framed by the Turnkey app (Main menu and left menu).  


<YouModelFileName>_AssetsTK/favicon.ico (or .png) will change the tab-logo in the browser
<YouModelFileName>_AssetsTK/favicon.ico (or .png) will change the tab logo in the browser.
[[Category:MDriven Turnkey]]
[[Category:MDriven Turnkey]]

Revision as of 07:50, 24 March 2023

AssetsTK is the strategy to move files along with your model onto the server that runs your Turnkey application every time you upload your model.

Your model has a file name ending with either .ecomdl (multi-file format) or .modlr (zip format).

Create a folder next to your model file and name it <Your Model file name without extension>_AssetsTK.

Now, any files put into the _AssetsTK folder will be uploaded along with your model - and expanded out from your application root.

If you need to put an image in the Content folder of your app, create a Content folder in _AssetsTK and put your image in there.

AssetsTK is further detailed in the section on Theme_and_style - but note that AssetsTK is useful for more things than sending style information to the server.

Common Overrides You Can Try

<YouModelFileName>_AssetsTK/Views/EXT_OverridePages/index.cshtml

Now the Index ViewModel will be replaced with the HTML you have in index.cshtml - but still framed by the Turnkey app (Main menu and left menu).

<YouModelFileName>_AssetsTK/favicon.ico (or .png) will change the tab logo in the browser.

This page was edited 69 days ago on 02/10/2024. What links here