-
Create asset (if not a remote asset):
of this type in this directory stylesheet taccsite_cms/static/site_cms/css/src/
script taccsite_cms/static/site_cms/js/modules/
-
Load asset:
of this type in this file stylesheet taccsite_cms/static/site_cms/css/src/core-cms.css
script taccsite_cms/templates/assets_core_delayed.html
-
Create asset:
of this type in this directory stylesheet taccsite_cms/static/site_cms/css/src/
script taccsite_cms/static/site_cms/js/modules/
-
Load asset:
-
either before content
{% block assets_custom %} {{ block.super }} <!-- ... --> {% endblock assets_custom %}
for entire site
<link rel="stylesheet" href="{% static '__PROJECT__/css/build/site.css' %}"> <script src="{% static '__PROJECT__/js/site.js' %}"></script>
for one template
<link rel="stylesheet" href="{% static '__PROJECT__/css/build/template.___.css' %}"> <script src="{% static '__PROJECT__/js/template.___.js' %}"></script>
for one page
Warning Undesired. Create re-usable code (see CMS UI Organization).
-
or after content
{% block assets_custom_delayed %} {{ block.super }} <!-- ... --> {% endblock assets_custom_delayed %}
for entire site
<link rel="stylesheet" href="{% static '__PROJECT__/css/build/site.css' %}"> <script src="{% static '__PROJECT__/js/site.js' %}"></script>
for one template
<link rel="stylesheet" href="{% static '__PROJECT__/css/build/template.___.css' %}"> <script src="{% static '__PROJECT__/js/template.___.js' %}"></script>
for one page
Warning Undesired. Create re-usable code. See CMS UI Organization.
-
Warning Undesired. Create re-usable code. See CMS UI Organization.
{% block css %}
{{ block.super }}
<style>
/* ... */
</style>
{% endblock css %}
Note Loads before all markup.
{% block js %}
{{ block.super }}
<script type="module">
/* ... */
</script>
{% endblock js %}
Note Loads after all markup.
<style>
/* ... */
</style>
<script type="module">
/* ... */
</script>