Jump to content

Create themes with Wireframe


Ivan Gretsky
 Share

Recommended Posts

Good day @teppo!

Another question from me)

I am building a solution based on PW and Wireframe, that needs the theming functionality. That is switching theme (default views) for all the views and components. Layouts and partials probably too. Is there an easy way to achieve this with current code? Maybe a couple of hooks?

I can see two ways how it could work.

  1. Put `alternative-default.php` everywhere the `default.php` files are and somehow tell Wireframe to use those prefixed files. If there is another view except the default one, the prefix should work as well. Like `alternative-json.php`. Probably an option should be available whether to fallback to defaults without the prefix or not.
  2. Create an overrides or theme folder somewhere and have somehow point Wireframe to use views from there.

For my personal need the 1st approach seems to be a better one. But just maybe it is easy enough to provide possibility for both?

Thanks!

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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