Take the 2-minute tour ×
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It's 100% free, no registration required.

Is there any reason you wouldn't want to do this?

EDIT: More info

I have a website that was built in HTML/CSS and over the years, it's been modified, added to and hacked at to the point where the code is kind of a mess. I'd like to redesign the site using a structured CMS but I want the base HTML/CSS to be well coded and optimized. That's why I'm thinking of building a site using the Bootstrap framework and then rebuilding it in Craft. I realize this seems redundant but I'm not good enough with CSS to just build it from the scratch in Craft. I'm more of the cut and paste kind.

The reason I'm considering Craft is because I like the idea of defining fields and sections I can reuse. I built the site 90% through using ModX, it looked good but the back end and the way it presents Template Variables is not very friendly. I like Craft's approach a lot more.

share|improve this question
    
I think cballenar is right, you should add more information about why you're asking this question. What are your concerns about combining Craft CMS with a front-end framework like Twitter Bootstrap. –  carlcs Aug 13 at 15:24
    
That downvote's probably a result of your rather smallish effort put into asking the question. –  carlcs Aug 13 at 15:35
    
Updated my answer based on your update –  Tyler Willingham Aug 13 at 16:51

3 Answers 3

Bootstrap strictly refers to the front-end framework used as a starting point. It doesn't provide any back-end functionality so there's no clash with what Craft provides.

EDIT: Now that you've provided more details it sounds like Craft would be a fine solution. It's not hard to take your existing code and integrate it with Craft. The learning curve that you may face based on your self-evaluation of your skillset would be tackling Twig and really understanding how twig works for templating. But we're here to help :)

EDIT pt2: This is a helpful resource: http://straightupcraft.com/twig-templating

share|improve this answer

Can you add a little more information? I'm not sure I understand the question.

Bootstrap is a front-end framework, it can be used in combination with Craft. Not necessarily replace it. So you wouldn't be "converting it".

Now if you're referring to converting a static site that uses Bootstrap as its framework, it's going to depend on the needs of the website whether you want to use Craft or not. I've found that Craft works well in many scenarios but there are always exceptions.

share|improve this answer

I think it's actually a good idea to first build parts of the site with some static HTML/CSS and later implement the Craft code (in form of Twig, the tempting language used by Craft).

You would't need to convert your site for this process, because Craft template files are normal HTML files with Twig code in-between. Yes, you probably want to refactor your code and the template files a bit, maybe make use of includes and blocks etc., but using a static HTML page as a starting point for your new Craft site can be really helpful.

Oh.. and believe me, while you're learning Craft and about all the features, you'll most likely want to refactor parts of your code more than once. :D

share|improve this answer
    
That's my plan. I will build static home page and some generic page templates in HTML/CSS then rebuild in Craft. My concern was Bootstrap talks about "compiled" CSS. My understanding of compiled code is that it's machine readable only. I don't know how I would integrate machine code into Craft. But, having downloaded and poked around Bootstrap, it looks like the CSS files are plain text. I still don't know what they mean by "compiled" CSS. –  Henry Aug 13 at 18:18
    
They probably mean compiled from SASS or LESS files to CSS. And again, you wouldn't need to rebuild anything, you'd simply add the Twig code to your static site. :D –  carlcs Aug 13 at 18:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.