• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Template Engine (Theming)
#1
It would be awesome, if you realize Template Engine (Theming) in UserSpice 5. The most popular PHP Template Engine is Smarty, but it hard to implement.

Why it's important: now if I want to change view of back-end and front-end I need to edit core files that will be updated with new version. There is some views, but they using only for header and footer.

I want something, like in WordPress - core files never edited, they easily updated without loss. Theme files are standalone and not depending from core updates. It called MVC pattern Smile
  Reply
#2
Hi! Thanks for the feedback. The version of the template engine we're working on is going to be primarily for the front end in the beginning. It allows you to use either bootstrap 3 or 4. It's pretty easy to implement. The only thing that gets a little complicated (with any template) is how you want to handle your menus. But we'll walk you through it. I expect at least an alpha by mid June. The bones are there.

Sorry for the delay in responding. We had some spam issues and things got lost in the middle.
  Reply
#3
Dear Bogan,

You can already change a lot with CSS if you use the usersc folder. It overwrites the standard styling from the users folder. This will prevent updates from overwriting your own CSS.

There will be a few templates in the new version to get some inspiration on how you could use themes in the new version of Userspice. Like different looking or working nav's or change the appearance or colors from bootstrap elements etc.
  Reply
#4
Hi! 

I know about usersc folder. 

When I say about theming I mean that:
  • admin interface (back-end) build-ed on bootstrap from core and no need in changes.
  • front-end has some file structure (header.php, footer.php etc) and store in themes\default folder.
Anyone can create new sub-folder in themes folder and create own theme based on default theme.


For best understanding look on AnchorCMS where it already released:
https://github.com/anchorcms/anchor-cms/...es/default
https://docs.anchorcms.com/theming/file-structure/
  Reply
#5
Following.....

I've been trying to use front-end templates from wrapbootstrap.com on userspice but with no success..

It's taking me some time to understand the full structure of all the PHP includes and getting the wrapbootstrap menu and overall html structure incorporated.

Is there anyone out there who has done this successfully and willing to share some tips?!?
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)