Questions tagged [bootstrap-craft]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
209 views

Matrix loop (nesting?) issue using switch

First let me say this: I'm new to Craft and Twig. So: my apologies for probably overlooking the obvious. I hope you can offer me some help... I've been trying for a couple of days to solve this puzzle....
Mars's user avatar
  • 21
1 vote
1 answer
460 views

How to setup Bootstrap 4 Carousel with Craft CMS 3?

I'm hoping to get some help or guidance on a issue that I'm having. I am using Bootstrap 4 as my CSS framework and wanted to integrate a working Carousel with my web project. I managed to get the ...
egivensjr's user avatar
1 vote
1 answer
589 views

Bootstrap 4 Accordion with Matrix (and SuperTable)

I'm attempting to use a combination of SuperTable and Craft's Matrix to create a reusable Bootstrap 4 Accordion element, but I'm hitting a wall. My code so far: {% for row in entry.contentBuilder....
Thabang Chukura's user avatar
1 vote
1 answer
75 views

Close bootstrap row and start a new row Matrix

I need to figure out how to close out the columns if it equals 12 and then open a new row. I have a Matrix field set up with rows, but it needs to break with a new row if the columns equal 12. Any ...
Kevin Love's user avatar
0 votes
1 answer
705 views

bootstrap.php how to include environment variables for multi-environment configuration?

I recently had to run a couple of migrations to move entries from one structure to the other, but had problems when running the migration PHP script being able to get environment variables e.g. DB and ...
James White's user avatar
  • 1,151
1 vote
1 answer
71 views

Craft 2.6 slow bootstrapping?

For some reason when we're bootstrapping Craft CMS it's VERY slow to bootstrap (500ms) worth of slowness. This is utilizing HTTP2 and PHP7 so we're expecting it to be much faster than this. I'm ...
Exziled's user avatar
  • 293
1 vote
0 answers
36 views

Give Access to Freeform (Solspace) Submission Answers to a tierce person

I implemented a form on a website using the Freeform Plugin (by Solspace) and I would like another company to have access to the results of this form. I am thinking of using the bootstrap demo to ...
Lisonc's user avatar
  • 23
2 votes
3 answers
2k views

What is the easiest way to include bootstrap in Craft?

How is the easiest way to include bootstrap to Craft? I've seen there's already a bootstrap.php in the "app" folder... what can I do with this guy?
Jan's user avatar
  • 196
1 vote
2 answers
183 views

Need help with dynamic image grid

I am trying to make my image grid form out dynamically. I got it kinda working, But I need to figure out how to make my grid rows dynamic. I am kinda forcing it to start a new row at every 4th item ...
laden's user avatar
  • 63
2 votes
1 answer
415 views

Does a up to date boilerplate for Bootstrap 4 with live reload, sass and js build exist?

I'm pretty new to Craft, and a noob when it comes to build tools. Coming from WordPress I've been using Roots/Sage which is a starter theme with liveReload(browserSync), Bootstrap 4, SASS and JS ...
Simen's user avatar
  • 21
2 votes
3 answers
869 views

Making an entry grid with Batch 2,3 (2 in row then 3 in row)

I'm trying to make a News item grid. I'm looking for a solution to output 2 type of "rows". One that shows 2 entries and the other shows 3 entries. I tried playing around with batches already but can'...
Justin Dekkers's user avatar
1 vote
1 answer
321 views

Possible to Get grunt-uncss Working with Craft?

I'm working on a site that uses bootstrap so has a very large CSS file with many selectors that are not being used. To reduce the size of the file, I'd like to use the grunt-uncss task, but it does ...
dpayne's user avatar
  • 659
2 votes
2 answers
953 views

Basic Bootstrap + Matrix Implementation

I've got a project where I'm trying to set up a basic page layout – header, body, footer. But I also want the option for a user to add an image or bit of content (let's call it a "sidebar") that ...
FirstAidChris's user avatar
1 vote
1 answer
79 views

Homepage in Navigation

I've been trying to get the homepage to show up in the navigation... What I'd like to display is the following... <ul> <li class="nav-item active"> ...
Korey's user avatar
  • 21
0 votes
1 answer
183 views

Plugin development - Adding Foundation 5 CSS changes Craft CMS control panel

I am trying to embed a Google Map widget as a field in Craft. I am doing plugin development to achieve it. Adding a foundation 5 css in a PluginName_FieldType.php file into the getInputHtml() ...
Prashanth's user avatar
  • 113
1 vote
1 answer
146 views

Breaking one large Craft app into multiple smaller apps

Some background information: We use a Craft app that has several modular components that we've put into separate plugins. IE: a purchase plugin, "logged in" plugin, and so on. I'm thinking of ...
Exziled's user avatar
  • 293
1 vote
1 answer
389 views

Using Craft inside Lumen / Laravel

I’m trying to bootstrap Craft as a service inside of another framework (lumen). I’m requiring the bootstrap file which seems to get me up and running except that plugins and assets aren’t included in ...
Incraigulous's user avatar
1 vote
2 answers
358 views

Matrix entry causing last bootstrap column to be shunted down

I have a Matrix field which has one block type (1 asset field - I'm using a Matrix field as I'll be adding text fields later on to the same block). On the front end I am using Bootstrap's grid system ...
JRW's user avatar
  • 109
2 votes
2 answers
481 views

Bootstrapping Craft for PHPUnit on command line

I'm trying to run some commands on a Jenkins server to have PHPUnit execute the tests and report the results. When I do require_once 'craft/app/bootstrap.php'; It is giving an error saying: PHP ...
Exziled's user avatar
  • 293
2 votes
1 answer
524 views

PHP transformed image?

I’m using Craft to add CMS functionality to an e-commerce website via craft/app/bootstrap.php Trying to pull a 'timeline' structure with a featuredImage Asset Field. This code works and pulls the ...
Jamie's user avatar
  • 151
2 votes
1 answer
129 views

Logging from Bootstrap mode?

We've been using bootstrap.php to have a basic PHP file run parts of some content-sync from a plugin we've written. The sync is run from cron and this works great. BUT - when the sync runs from ...
gromgull's user avatar
  • 631
1 vote
1 answer
123 views

Is it possible to get another Craft's webApp from within a Craft plugin controller

I have two instances of Craft on the same server. From within a plugin controller in Craft #1, I want to be able to get entries from Craft #2. Can this be done and if so, how?
Paul's user avatar
  • 6,338
1 vote
1 answer
704 views

Bootstrapping Craft gives fatal error

I'm using Craft Pro 2.3.2625 I'm trying to write a command-line called script which can call Craft's functions (to create new entries with assets). Based on Brandon's updated answer here: Bootstrap ...
Tom's user avatar
  • 135
1 vote
1 answer
224 views

Getting error when using bootstrap: Craft\WebApp::$request

I am using a testing library and while trying to load Craft through bootstrap with: $craft = require '<full path here to>/app/bootstrap.php'; (but with the real path) I dumped the error to a ...
Luke Holder's user avatar
  • 6,812
3 votes
2 answers
267 views

How to bootstrap / connect to another Craft instance from inside a plugin?

I'm currently writing a plugin which should connect to another Craft Instance (same server, same app folder) and run some code (start a task or execute a service function). I looked at the bootstrap....
Victor's user avatar
  • 8,366
2 votes
1 answer
2k views

Problems creating an entry using app()->entries->saveEntry()

I get the Craft loaded with another application on PHP and I try to create a Entry, no problems deleting and getting the entries but when I try to create a new one Craft doesn't show me anything, and ...
jhon's user avatar
  • 83
6 votes
1 answer
995 views

Bootstrap Craft from another app

Is there any known way to bootstrap Craft to use the core functions inside another application? For example, in Magento anyone can include a file, initialize the app and use all the functions from ...
mbalparda's user avatar
  • 647