Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [bootstrap-craft]

The tag has no usage guidance.

1
vote
1answer
123 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....
1
vote
1answer
26 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 ...
0
votes
1answer
95 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 ...
0
votes
0answers
33 views

PHPUnit DB bootstrap

I have PHPUnit installed and running but am having issues with bootstrapping my db configuration. I am getting Craft can’t connect to the database with the credentials in craft/config/db.php ...
1
vote
1answer
47 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 ...
1
vote
0answers
31 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 ...
2
votes
3answers
1k 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?
1
vote
2answers
131 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 ...
2
votes
1answer
304 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 ...
2
votes
3answers
432 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'...
1
vote
1answer
158 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 ...
3
votes
2answers
461 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 ...
1
vote
1answer
54 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"> ...
0
votes
1answer
92 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() ...
1
vote
1answer
100 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 ...
1
vote
1answer
264 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 ...
1
vote
2answers
304 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 ...
2
votes
2answers
316 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 ...
2
votes
1answer
181 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 ...
2
votes
1answer
96 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 ...
1
vote
1answer
113 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?
1
vote
1answer
575 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 ...
1
vote
1answer
177 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 ...
3
votes
2answers
250 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....
2
votes
1answer
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 ...
6
votes
1answer
830 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 ...