Jump to content

Include Page CSS in custom block?


Recommended Posts

I have created Page CSS. It works on the page with database. Now I would like to include it into custom block (Plugin) based on this database. This does not work:

{{\IPS\Output::i()->cssFiles = array_merge( \IPS\Output::i()->cssFiles, \IPS\Theme::i()->css( 'myfolder/general.css', 'cms', 'front' ) );}}

And using a template plugin, I get 'ErrorException: template_store_missing (0)':

{template="includeCSS" app="cms" group="myfolder/general" location="front" params=""}

Is there any other idea of how to include Page CSS in the block or other templates?

Note: I do not have any app or plugin. This is just a simple Pages database.

Edited by Sonya*
Link to comment
Share on other sites

  • Recently Browsing   0 members

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