Questions tagged [bolt-cms]

Bolt is a sophisticated, lightweight and simple CMS for PHP.

Bolt is a sophisticated, lightweight and simple CMS for PHP.

It is quick to set up, easy to configure, uses elegant templates, and above all, it’s a joy to use. Bolt is created using modern open source libraries, and is best suited to build sites in HTML5 with modern markup.

From a technical perspective: Bolt is written in PHP, and uses either SQLite, MySQL or PostgreSQL as a database. It's built upon the Silex framework together with a number of Symfony components and other libraries. Bolt is released under the open source MIT-license.

  • Bolt was created for developers who need a tool to create websites in an easy and straightforward way, while at the same time it should be pleasant to use for content-editors, without getting in the way at any time. To be more specific:

  • Front-end designers and developers who like to write clean markup, and who want to build websites where the CMS doesn’t dictate what the templates or website should look like. Developers who need a system that’s easy to set up and configure, that’s easy to manage and maintain, but is also flexible and versatile.

  • End users (read ‘editors’) that want to focus on producing and editing content, and not on clicking buttons in the CMS.

You can learn more about Bolt by visiting http://bolt.cm/.

Installation

Detailed instructions can be found in the Installation section in the documentation.

Resources

315 questions
1
vote
1 answer

Bolt Repeating Route

Is it possible to have a repeating route in the bolt cms? I made a route in my routing.yml that looks like this language: path: /{locale}/{slug} defaults: { _controller: controller.frontend:template, template: 'page.twig' } It renders the…
DB93
  • 610
  • 2
  • 5
  • 16
1
vote
0 answers

Bolt built in edit content function

I'm developing a site with BoltCM and BoltForms. I've developed a form and an extension that let me insert some content types with only one form. My problem is on content editing: in my twig template file I read data from my record and I''ve added…
firegloves
  • 5,581
  • 2
  • 29
  • 50
1
vote
3 answers

How can I remove /public and the name from URLs in Bolt?

I'm working on a small site and I've got a question. How can I remove the /public and the singular name from url? However for the entries I want to keep the first segment. How do I do that? Because when I try to rewrite it in the htaccess the assets…
1
vote
0 answers

Images not showing when using fields() in bolt CMS

I have the following code in my record twig file:

{{ record.title }}

{# Output all fields, in the order as defined in the contenttype. To change the generated html and configure the…
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
1
vote
3 answers

How to get the first character from a record not including html

I'm making a theme for Bolt (CMS) and it uses the Twig engine. The website contains articles so I get an article's field like this {{ article.body }} Now what I wanted to achieve was get the first letter of the body of the article and make it big…
iBobb
  • 1,140
  • 1
  • 14
  • 35
1
vote
2 answers

What is a double underline for in Twig or in Bolt?

I was just going through one of the Twig files in the Bolt default theme template, and I came across the following line of code: {{ __("Unfortunately, no content could be found. Try another page, or go to the homepage.",…
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
1
vote
1 answer

what is if not and ct.viewless|default(false) in twig?

I just came across the following syntax in the bolt CMS : {% for ct in app.config.get('contenttypes') if not ct.viewless|default(false) %} Now the start of the loop seems familiar PHP syntax but the part where the below comes into the picture: if…
Alexander Solonik
  • 9,838
  • 18
  • 76
  • 174
1
vote
2 answers

How to access an internal database in Bolt?

I have a custom contenttype called posts, which has about ten records. Each of them is stored in bolt_posts table together with other Bolt-specific tables. I'd like to access a post with id = 1 in one of my custom php files. The problem is that the…
Alex
  • 3,719
  • 7
  • 35
  • 57
1
vote
1 answer

BOLT: Not able to set 404 page

In BOLT config.yml file I have set the notfound: index.php So that every not found exception takes user to the homepage but for some reason it's not working for me. e.g: http://meubleshouse.com/some-invalid-url Any idea what I am doing wrong here?
Faisal Ashfaq
  • 2,545
  • 4
  • 28
  • 41
1
vote
1 answer

Cleanly including css/js required by content in a macro?

I have a page template like so: {# page.twig #} {% import "_widgets.twig" as widgets %} {% include '_header.twig' %} {{ widgets.fancy_widget(record.items) }} {# more content goes here #} _header.twig contains the …
gandalf3
  • 1,636
  • 4
  • 24
  • 40
1
vote
1 answer

How to use a route for more than one contenttype?

I'm attempting to make a contenttype specific route, like the example in the bolt documentation: pagebinding: path: /{slug} defaults: _controller: 'Bolt\Controllers\Frontend::record' 'contenttypeslug': page requirements: …
gandalf3
  • 1,636
  • 4
  • 24
  • 40
1
vote
1 answer

Moving a install of bolt.cm

I am trying to move my location on disk of a Bolt.cm install. Config.yml doesnt have any details of location. When I rename the directory I receive app config issues as well as this : Fatal error: Uncaught exception…
GravityX0
  • 15
  • 2
1
vote
1 answer

How to store Array for new field type extention in Bolt cms

I am working on an extension to replace the select field type with radio/check boxes in Bolt cms. My problem is how to use bolt internals to store selected values. Ajax POST data when I press save: day[]: Monday day[]: Friday So this is the same as…
osfriese
  • 11
  • 1
1
vote
1 answer

bolt cms file paths file

I i'm trying to get a list of all the files from a filelist contenttype to display in an unordered list. But I have not been able to get the file location {{ record.file }} to work. I have fixed this temporally by posting the {{ record.title }}…
Tim
  • 43
  • 6
1
vote
1 answer

Adding ck editor to a Bolt cms site

I have a bolt cms website. On the entries/ showcase pages I would like to replace the default editor with the CK editor.Right now the editor has only the basic buttons that is 6 -7 buttons.It looks something like this : Whereas I want this kind of…
user3359953
  • 47
  • 1
  • 8