Goal: Include The Start Bootstrap Modern Business template in the available themes.
Template: https://startbootstrap.com/template-overviews/modern-business/
Preview: https://blackrockdigital.github.io/startbootstrap-modern-business/index.html
The idea would be to create it as a child theme of TheTheme. Ex: SBModernBusiness.
Create the recipe that will generate the sample content items:
The best way to achieve this will be to define the corresponding content types and make an equivalent of the preview site.
Some content alternates or Liquid templates will have to be added.
Then, create a deployment plan and export the site to obtain the json recipe that will be used as setup.
It is a very good learning exercice on creating and customizing a theme.
If anyone wants to start to contribute to it, please answer in the comments.
I can give some support if needed.
Let me work on this. I need a reason to get back to this project.
Ok, thank you. If you have any question, don't hesitate to ask.
If you would like any additional assistance, let me know. I was just getting ready to do some theme work on my own, I'm happy to contribute at the same time.
@dodyg Tell us if you made progress on this one. If you don't answer, @dsghi can contribute on it following the specs.
Fyi, we will make a separate theme, not an inherited one.
I am still working on it. I am not fast but I am working on it.
Push your branch and work together 馃槈
I understand that's ideal, but the task description says It is a very good learning exercice on creating and customizing a theme. and it's not a bottleneck for anything else. Let me figure out most of the parts myself (that's how I learn) and I'll push something soon. World Cup watching is taking too much free time.
Absolutely @dodyg, I didn't mean to imply any pressure or force my way in. Take your time, I'll be around if you want any help. :)
@dodyg how you coming along with this? I am a newbie and I would also like to learn how to build themes for Orchard Core.
Basically, you just install dotnet new templates and create a theme from the template.
There you have manifest which defines a theme info and recipe.json which initialized DB with content definitions and seed data. You can set content definitions up in existing theme and copy to recipe.json from database. They are saved in JSON too.
But I have no idea how Liquids are bound to data. And how can I use Razor if I want
@dodyg @agriffard any update/news about this "Modern Business theme"? It's an very good example to create a theme. Can you push your changes so we can learn and help on this task? Thanks.
Following the steps I explained, I made this theme: https://github.com/agriffard/Resume.OrchardCore :
It is based on https://startbootstrap.com/template-overviews/resume/
If you want to reference it from Nuget in an OC application, it is available here: https://www.nuget.org/packages/Resume.OrchardCore/1.0.0-beta3-1
@dodyg Can you please give us some feedback on your progress.
The whole point of this issue was to explain how to create an OC theme from an existing css template and to answer the questions people have about it.
If you do not give any feedback, we miss the educational purpose.
Tell us where you are and what you can share.
If you don't answer, I will do it myself or ask for other people to help.
@agriffard Please do it yourself. I would prefer to learn from you rather than wait months.
@agriffard I would like to help.
What is a deployment plan and how did you export it?
@xperiandri
@mdockal You can do it.
In the same time, it will be interesting to make the documentation about how to create a website and update the theme (#2173), and about deployment plan (#2239).
@agriffard OK, please forgive me, as I am a newbie at working on Github projects. I am used to working with Team Foundation Server, this git terminology is a little foreign to me. I was reading the Engineering Guidelines and I noticed it says "To create a new repo in .... org, contact @jetski5822" I have already created an OrchardCore fork under my account, can I use that one should I contact Jetski5822?
@mdockal Oh boy - I need to revisit those! :)
You are totally fine to fork... its only when creating a new repository under the Orchard Organisation. When you fork, you create a clone of our repository under your username.
Well, I'm stuck, it's a little more difficult than I thought. This template is not a one-page bootstrap template like Agency. Services and Projects need to show up on the home page and the services and portfolio pages. I can't seem to figure out how to create a projects list and a services list and display them on the home page and their respective pages without duplicating the lists. I don't know if I need to create a widget of some kind or what I need to do? Please advise!
Indeed, it is a bit different than just a making a landing page.
You could start by doing the Portfolio pages, creating the alternate .liquid views of their ListPart. Take example on the Blog-ListPart.liquid in theBlogThemeViews.
Then, I think the homepage should be a Page that has a FlowPart with these widgets:
We have made some progress. After some initial learning moments (:)) we are now working on the portfolio.
Oh, and although advised differently, the slider is done too!
Please try it out and report any issues if you find!
Should this "template" be based on a module and use Razor Pages like I did last week? Would be a nice sample too. And it would still have the setup recipe available. The default theme would be the SafeMode one or TheTheme, to support the Login pages (or as a fallback to any controller that requires a theme).
Sure, we could do that too, if we see that using OC in a decoupled fashion gets more do-able/supported.
In the current way we do it, would demonstrate:
Flow part
Widgets
Liquid part
Pager
Alternates
Some topics that are not so obvious from the docs or other samples currently available
Hi Antoine, do you still help with this project? I will have time this weekend to start looking at this. Please tell me how you want to move this forward. I will try to contribute. Thanks.
@psijkof @agriffard Sorry I didn't see the updated messages on the main gitter page. @psijkof, I will look at the work you've already done and try to learn it. If you need help, please tell me and I will try to contribute. Thanks.
@larremp Updated the readme in the repo. Thanks for checking it out!
Thanks, @psijkof. I will dig deeper this weekend. Once I am capable, I will try to help you with some of the items you listed under the "Issues" section.
Should this "template" be based on a module and use Razor Pages like I did last week? Would be a nice sample too. And it would still have the setup recipe available. The default theme would be the SafeMode one or TheTheme, to support the Login pages (or as a fallback to any controller that requires a theme).
We're making some progress: https://github.com/psijkof/ModernBusiness.OC.RazorPages
@agriffard @psijkof Here's my take:
Please tell me what you think. This process is actually a very good learning experience for me.
Thanks.
@larremp Agrreed it's a great learning process. We made it with the 'Standard CMS' approach (everything in OC backoffice and some alternates in the theme project) and in 'Decoupled' scenario, which we found easier (YMMV). See the links in this thread.
Great you documented it, we didn't (ashamed face)
Thanks for your feedback, @psijkof. As I go deeper into more functionalities, I will definitely reference your work.
I wanted to document it for a number of reasons:
Hi @psijkof , can you please help me? How do I tell OC that my liquid page will use a different Layout.
What I did was:
Thanks for your help.
@psijkof , I got it working. I defined it on a file in the Views folder. I thought I should also work on the template. Thanks.
I am closing this issue as it has been taken care of by @psijkof and the repository is linked.
The idea is that it can't become a Core template as it's much a set of patterns to show how to do things, than a reusable final site targeting a specific audience. I'd love to see it evolving into a blog post (or a series of posts) explaining how it was built and what solutions were used for each problem.
Most helpful comment
Indeed, it is a bit different than just a making a landing page.
You could start by doing the Portfolio pages, creating the alternate .liquid views of their ListPart. Take example on the Blog-ListPart.liquid in theBlogThemeViews.
Then, I think the homepage should be a Page that has a FlowPart with these widgets: