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
2
votes
0 answers

Use `setcontent` where an array field contains a value

I'm a little bit rusty with twig. But I'm trying to achieve this in a setcontent. {% setcontent entries = 'entries' where { authors: 'AN SPECIFIC ID IS IN THE AUTHORS ARRAY' } %} The authors field is an array where multiple IDs can be…
zomars
  • 317
  • 1
  • 7
2
votes
1 answer

How would you do ternary conditionals inside {%%} in Twig

I want to render parameters if they exist but can't find a way of correctly displaying it and keep getting An opened parenthesis is not properly closed. Unexpected token "punctuation" of value ":" ("punctuation" expected with value ")") where {%…
damunga
  • 95
  • 4
  • 11
2
votes
1 answer

Is there a good example how to add plugins into Bolt CMS CKEditor?

I see that there is no documentation how to add custom CKEditor plugins into Bolt CMS. Can i add/modify files in public/bolt-public/ folder? In public\bolt-public\view\js\ckeditor\config.js file i see the following: // CKeditor config is done in…
Bogdan Le
  • 2,216
  • 1
  • 20
  • 21
2
votes
1 answer

Bolt CMS - Highlighted only one element from list

I wish to create news list where only one can be highlighted. Is it possible to create a checkbox field in my contenttype so that checking it for one element, would cause unchecking it for all the others? As a result I need to have only one element…
Maciej Płocki
  • 362
  • 2
  • 7
  • 18
2
votes
0 answers

Can't install local extension in Bolt CM

I a trying to write an extension for Bolt CM. I decided I should start by just doing the tutorial they provide, although I can't get it to work. When viewed on the "Extend"-page in the CMS itself the extension shows up but does not work. Instead, it…
2
votes
1 answer

Where is record getting defined in the _master template default theme?

I was just going through the contents of the _master.twig and came across the followng lines of code: {%- if record.title is defined %}{{ record.title|striptags }} | {% endif -%} {{…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 24 '16 at 01:32">asked Oct 24 '16 at 01:32</time> <a href="../../users/4381665/alexander-solonik" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4381665.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Alexander Solonik" /> </a> <div class="s-user-card--info"> <a href="../../users/4381665/alexander-solonik" class="s-user-card--link">Alexander Solonik</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">9,838</li> <li class="s-award-bling s-award-bling__gold" title="18 gold badges">18</li> <li class="s-award-bling s-award-bling__silver" title="76 silver badges">76</li> <li class="s-award-bling s-award-bling__bronze" title="174 bronze badges">174</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-40086429"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/40086429/where-is-general-phrase-written-by-on-coming-from-in-bolt-record-template" class="question-hyperlink">Where is general.phrase.written-by-on coming from in bolt record template?</a></h3> <div class="excerpt">I was just going through the bolt template for _recordfooter , in the default theme and came across the following liens of code: {{ __('general.phrase.written-by-on', { '%name%': record.user.displayname|default(__('Unknown')), …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/twig" class="post-tag grid--cell" title="show questions tagged 'twig'" rel="tag">twig</a> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Oct 17 '16 at 12:29">asked Oct 17 '16 at 12:29</time> <a href="../../users/4381665/alexander-solonik" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4381665.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Alexander Solonik" /> </a> <div class="s-user-card--info"> <a href="../../users/4381665/alexander-solonik" class="s-user-card--link">Alexander Solonik</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">9,838</li> <li class="s-award-bling s-award-bling__gold" title="18 gold badges">18</li> <li class="s-award-bling s-award-bling__silver" title="76 silver badges">76</li> <li class="s-award-bling s-award-bling__bronze" title="174 bronze badges">174</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-38067465"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/38067465/bolt-cms-static-html-page-gets-404" class="question-hyperlink">Bolt CMS Static html page gets 404</a></h3> <div class="excerpt">recently i have started to use Bolt CMS. i have made a theme with Angular JS but i wanted to use some static pages. as they mentioned in their Doc https://docs.bolt.cm/3.0/templates/templates-routes#automatic-template-selection i have added my link…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/http-status-code-404" class="post-tag grid--cell" title="show questions tagged 'http-status-code-404'" rel="tag">http-status-code-404</a> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> <a href="../../questions/tagged/static-pages" class="post-tag grid--cell" title="show questions tagged 'static-pages'" rel="tag">static-pages</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Jun 28 '16 at 05:08">asked Jun 28 '16 at 05:08</time> <a href="../../users/6281245/5cel" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/6281245.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="5cel" /> </a> <div class="s-user-card--info"> <a href="../../users/6281245/5cel" class="s-user-card--link">5cel</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">64</li> <li class="s-award-bling s-award-bling__bronze" title="5 bronze badges">5</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-35630554"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/35630554/bolt-cms-twig-how-to-render-total-item-count-button-after-meet-certain-conditi" class="question-hyperlink">Bolt CMS Twig - How to render total item count button after meet certain condition</a></h3> <div class="excerpt">Let's say I have latest item list with contenttypes items for my bolt hompage website that I get from this code in my index.twig: {% setcontent latestitems = 'items/latest/8' %} then I iterate it with for function so I get a list of item. {% for…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/symfony" class="post-tag grid--cell" title="show questions tagged 'symfony'" rel="tag">symfony</a> <a href="../../questions/tagged/twig" class="post-tag grid--cell" title="show questions tagged 'twig'" rel="tag">twig</a> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 25 '16 at 14:48">asked Feb 25 '16 at 14:48</time> <a href="../../users/5980494/hanif" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/5980494.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Hanif" /> </a> <div class="s-user-card--info"> <a href="../../users/5980494/hanif" class="s-user-card--link">Hanif</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">95</li> <li class="s-award-bling s-award-bling__silver" title="1 silver badges">1</li> <li class="s-award-bling s-award-bling__bronze" title="6 bronze badges">6</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-35246715"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/35246715/how-to-set-id-as-slug-in-bolt-cms" class="question-hyperlink">How to set id as slug in Bolt CMS?</a></h3> <div class="excerpt">How can I use "id" as slug in url? I am content without the title and Bolt now creates a path such as "slug-cd7k2y" My contenttype: smsy: name: SMSy singular_name: SMS title_format: id fields: tresc: type: textarea class: large …</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/url" class="post-tag grid--cell" title="show questions tagged 'url'" rel="tag">url</a> <a href="../../questions/tagged/slug" class="post-tag grid--cell" title="show questions tagged 'slug'" rel="tag">slug</a> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Feb 06 '16 at 21:31">asked Feb 06 '16 at 21:31</time> <a href="../../users/4610186/gsmx" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/4610186.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="GSMX" /> </a> <div class="s-user-card--info"> <a href="../../users/4610186/gsmx" class="s-user-card--link">GSMX</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">95</li> <li class="s-award-bling s-award-bling__silver" title="3 silver badges">3</li> <li class="s-award-bling s-award-bling__bronze" title="8 bronze badges">8</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-32328912"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/32328912/bolt-cms-ckeditor-image-upload" class="question-hyperlink">Bolt cms ckeditor image upload</a></h3> <div class="excerpt">I am trying to upload images from ckeditor. The option in config, only allows you to add images from the stack. In docs I did not find anything related to uploading images. Is there a way of doing this? </div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/ckeditor" class="post-tag grid--cell" title="show questions tagged 'ckeditor'" rel="tag">ckeditor</a> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Sep 01 '15 at 10:09">asked Sep 01 '15 at 10:09</time> <a href="../../users/2297377/iulian-bozeanu" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2297377.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Iulian Bozeanu" /> </a> <div class="s-user-card--info"> <a href="../../users/2297377/iulian-bozeanu" class="s-user-card--link">Iulian Bozeanu</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">47</li> <li class="s-award-bling s-award-bling__bronze" title="4 bronze badges">4</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-32249363"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/32249363/database-request-in-routing-controller" class="question-hyperlink">Database request in routing controller</a></h3> <div class="excerpt">I'm making a website with categories and products. The categories and the products are both contenttypes. Categories can't be a taxonomy type because the editor of the website has to change data for the categories. To solve this problem i created a…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/symfony" class="post-tag grid--cell" title="show questions tagged 'symfony'" rel="tag">symfony</a> <a href="../../questions/tagged/routes" class="post-tag grid--cell" title="show questions tagged 'routes'" rel="tag">routes</a> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> <a href="../../questions/tagged/symfony-http-foundation" class="post-tag grid--cell" title="show questions tagged 'symfony-http-foundation'" rel="tag">symfony-http-foundation</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card__deleted"> <time class="s-user-card--time" datetime="asked Aug 27 '15 at 12:25">asked Aug 27 '15 at 12:25</time> <div class="s-avatar s-avatar__32 s-user-card--avatar"> </div> <div class="s-user-card--info">user3987722</div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-32201550"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status answered-accepted"> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/32201550/inputfield-for-link-to-any-contenttype-in-bolt-cms" class="question-hyperlink">Inputfield for link to any contenttype in Bolt-cms</a></h3> <div class="excerpt">is it possible to setup a field which links to a specific content of multiple content types? So assuming there are 3 predefined contenttype CA, CB, CC. I would like to setup an input field, which allows to link to any content of the contenttypes CA,…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Aug 25 '15 at 10:27">asked Aug 25 '15 at 10:27</time> <a href="../../users/813118/steve-eastwood" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/813118.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Steve Eastwood" /> </a> <div class="s-user-card--info"> <a href="../../users/813118/steve-eastwood" class="s-user-card--link">Steve Eastwood</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">1,783</li> <li class="s-award-bling s-award-bling__gold" title="3 gold badges">3</li> <li class="s-award-bling s-award-bling__silver" title="16 silver badges">16</li> <li class="s-award-bling s-award-bling__bronze" title="21 bronze badges">21</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-29947553"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/29947553/how-to-filter-boltcm-setcontent-by-releated-contenttypes" class="question-hyperlink">How to filter BoltCM setcontent by releated ContentTypes?</a></h3> <div class="excerpt">Now we can do: {% setcontent books = 'books' where {price: '<30.00'} %} But how can I fetch books filtered by its author in a scenario where books and authors are two ContentTypes and authors is a relation to books (instead of having the authors id…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/php" class="post-tag grid--cell" title="show questions tagged 'php'" rel="tag">php</a> <a href="../../questions/tagged/symfony" class="post-tag grid--cell" title="show questions tagged 'symfony'" rel="tag">symfony</a> <a href="../../questions/tagged/silex" class="post-tag grid--cell" title="show questions tagged 'silex'" rel="tag">silex</a> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 29 '15 at 15:01">asked Apr 29 '15 at 15:01</time> <a href="../../users/2076759/leo-cavalcante" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/2076759.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Leo Cavalcante" /> </a> <div class="s-user-card--info"> <a href="../../users/2076759/leo-cavalcante" class="s-user-card--link">Leo Cavalcante</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">2,327</li> <li class="s-award-bling s-award-bling__gold" title="2 gold badges">2</li> <li class="s-award-bling s-award-bling__silver" title="22 silver badges">22</li> <li class="s-award-bling s-award-bling__bronze" title="30 bronze badges">30</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="mln24"> <div class="question-summary" id="question-summary-29946210"> <div class="statscontainer"> <div class="stats"> <div class="vote"> <div class="votes"> <span class="vote-count-post"><strong>2</strong></span> <div class="viewcount">votes</div> </div> </div> <div class="status "> <strong>1</strong> answer </div> </div> </div> <div class="summary"> <h3><a href="../../questions/29946210/config-php-error-when-logging-in" class="question-hyperlink">Config.php -error when logging in</a></h3> <div class="excerpt">After updating to 2.1.7 I get an error in the backend saying " Warning: Invalid argument supplied for foreach() in /domains/domaindomain.nl/DEFAULT/src/Config.php on line 641 Warning: Cannot modify header information - headers already sent by…</div> <div class="grid ai-start jc-space-between fw-wrap"> <div class="grid gs4 fw-wrap tags "> <a href="../../questions/tagged/bolt-cms" class="post-tag grid--cell" title="show questions tagged 'bolt-cms'" rel="tag">bolt-cms</a> </div> <div class="started mt0"> <div class="s-user-card s-user-card"> <time class="s-user-card--time" datetime="asked Apr 29 '15 at 14:08">asked Apr 29 '15 at 14:08</time> <a href="../../users/3789699/evert-albers" class="s-avatar s-avatar__32 s-user-card--avatar"> <img class="s-avatar--image" src="../../users/profiles/3789699.webp" data-jdenticon-width="32" data-jdenticon-height="32" data-jdenticon-value="Evert Albers" /> </a> <div class="s-user-card--info"> <a href="../../users/3789699/evert-albers" class="s-user-card--link">Evert Albers</a> <ul class="s-user-card--awards"> <li class="s-user-card--rep" title="reputation score">121</li> <li class="s-award-bling s-award-bling__bronze" title="6 bronze badges">6</li> </ul> </div> </div> </div> </div> </div> </div> </div> <div class="s-pagination pager fr"> <a class="s-pagination--item" href="../../questions/tagged/bolt-cms_page=1" rel="prev" title="Go to page 1">Prev </a> <a class="s-pagination--item" href="../../questions/tagged/bolt-cms_page=1" rel="" title="Go to page 1">1</a> <div class="s-pagination--item is-selected">2</div> <a class="s-pagination--item" href="../../questions/tagged/bolt-cms_page=3" rel="" title="Go to page 3">3</a> <div class="s-pagination--item s-pagination--item__clear">…</div> <a class="s-pagination--item" href="../../questions/tagged/bolt-cms_page=20" rel="" title="Go to page 20">20</a> <a class="s-pagination--item" href="../../questions/tagged/bolt-cms_page=21" rel="" title="Go to page 21">21</a> <a class="s-pagination--item" href="../../questions/tagged/bolt-cms_page=3" rel="next" title="Go to page 3"> Next</a> </div> </div> </div> </div> </div> <script src="../../static/js/stack-icons.js"></script> <script src="../../static/js/fromnow.js"></script> </body> </html>