Jump to content

Recommended Posts

Posted (edited)

We can download and upload HTML templates for Pages (database, blocks, pages). However, there is no such possibility for JS and CSS.

screenshot-2021_07_07-12_45_18.png.4cc90cb4b5588d42bc059503dad35a24.png

There is also no possibility to deliver CSS and JS with an application like HTML Templates to make them upgradable during app update. You already do it for HTML templates including conflict screen if something has changed.

Is it an oversight, or are there technical restrictions for not doing it?

Right now, CSS and JS must be copied/updated manually between the installation.

screenshot-2021.07.07-13_04_48.png

Edited by Sonya*
Posted (edited)

use the default ips css framework https://invisioncommunity.com/4guides/themes-and-customizations/css-framework/introduction-to-the-css-framework-r88/ 

everything will look nice and will match the user theme. and if you have a bit of js code then add it inside the html template 

if you are creating a plugin then add your js/css files in the plugin dev folder and in the developer center settings in acp, ips recently added options to select your pages templates to be installed with your plugin. your plugin will install/delete/update the pages templates for you 😛 

 

 

Edited by TAMAN
Posted
1 minute ago, TAMAN said:

I know, I can do it, but this is not the same. 

1. The scope of app CSS is inside the app, I would like to have it included into the page.

screenshot-2021_07_07-13_15_06.thumb.png.ec245df5948ff6393d19a4bcf7673631.png

2. CSS of the app is edited via Themes, I would like to have them under Pages template where other HTML templates belonging to Databases and Pages are.

3. There is no conflict screen during upgrade for CSS/JS. I like the same conflict screen we have for the HTML templates included into the app. 

4. I do not have a bit of JS code. I have "huge" JS codes 😊 that should be loaded only if the database page is loaded. If I need the code in display, category listings, form etc. I have to add it manually to every template. Binding via Page is cleaner and not redundant.

5. These CSS and JS belongs to Pages, they do not make sense without Pages. They do not make sense inside Themes as they are normally used only for one database/page. 

6. If I download/upload templates, I would like to have them all (HTML/JS/CSS) in one file to port easy to another installation without doing manual copy/paste. 😉

Posted
33 minutes ago, TAMAN said:

ips recently added options to select your pages templates to be installed with your plugin. 

I just wish the same for CSS/JS. 😊 

And the ability to download HTML/CSS/JS as XML and upload into another installation. Entirely without app or plugin.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...