Skip to content

Commit

Permalink
Updates for RC 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Feb 9, 2020
1 parent 1ca67ff commit fb5f786
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 51 deletions.
2 changes: 2 additions & 0 deletions .env.dist
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
APP_ENV=dev
APP_DEBUG=1
APP_SECRET=67d829bf61dc5f87a73fd814e2c9f629
#TRUSTED_PROXIES=127.0.0.1,127.0.0.2
#TRUSTED_HOSTS='^localhost|example\.com$'
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
Expand Down
74 changes: 37 additions & 37 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions config/bolt/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ locale: en

# Set maintenance mode on or off.
#
# While in maintenance mode, only users of level editor or higher can access the
# site. All other visitors are presented with a notice that the site is
# currently offline.
#
# The default for the Maintenance mode (503) page. Can be an (array of) template
# names or identifiers for records, which will be tried until a match is found.
maintenance_mode: false
Expand Down
18 changes: 9 additions & 9 deletions config/bolt/contenttypes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ homepage:
in the webbrowser, edit <code>sitename:</code> in the configuration file.
image:
type: image
placeholder: https://source.unsplash.com/1920x640/?cityscape,landscape,nature/__random__
teaser:
type: html
localize: true
Expand Down Expand Up @@ -71,7 +70,6 @@ pages:
image:
type: image
label: "Eén plaatje"
placeholder: https://source.unsplash.com/1280x768/?business,workplace/__random__
teaser:
type: html
height: 150px
Expand All @@ -91,7 +89,7 @@ pages:
type: templateselect
filter: '*.twig'
taxonomy: [ groups ]
recordsperpage: 5
records_per_page: 5


# Entries can be used for things like 'news' or 'blogpostings'. They have a
Expand Down Expand Up @@ -177,20 +175,20 @@ blocks:
# text - varchar(256) - input type text.
# integer - integer - Input field for integer numbers.
# float - double - Input field for floating numbers, stored as 'Double'.
# geolocation - text (65kb) - Input field for geolocation. Enter an address, and the location is geocoded to latitude/longitude coordinates
# imagelist - text (65kb) - Input type for imagelists. Add multiple images with a description. Useful for image sliders, galleries, etcetera.
# imagelist - text (65kb) - Input type for imagelists. Add multiple images. Useful for image sliders, galleries, etcetera.
# image - varchar(256) - image select/upload widget, stored as filename.
# file - varchar(256) - file select/upload widget, stored as filename.
# filelist - text (65kb) - Input type for a list of files. Including a description.
# video - varchar(256) - Video embed widget, stored as filename.
# html - text (65kb) - wysiwyg element.
# textarea - varchar(32768) - Simple, plain < textarea > field.
# markdown - varchar(32768) - Simple, plain < textarea > field, which is parsed as Markdown text.
# datetime - datetime - date and time selector widget.
# markdown - varchar(32768) - wysiwyg element, which is parsed as Markdown text.
# date - datetime - date selector widget.
# select - varchar(256) - select with predefined values
# templateselect - varchar(256) - select with template filenames
# checkbox - integer - checkbox-field which is 1 (checked) or 0 (unchecked)
# set - text (65kb) - Input type for sests. Group fields semantically into a combined set field.
# collection - text (65kb) - Input type for collections. Add multiple fields of different types. Useful for lists.

# Using YAML repeated nodes
#
Expand Down Expand Up @@ -220,8 +218,9 @@ blocks:
# Then, as an example, you could create a ContentType with default fields, with
# an additional 'image' field.
#
#contenttype_abc:
#contenttypeabc:
# name: ContentType Abc
# slug: contenttypeabc
# fields:
# <<: *field_defaults
# image:
Expand All @@ -235,8 +234,9 @@ blocks:
# Alternatively, or additionally, you then can then create a ContentType with
# default fields, and a 'select' field, and a different 'templateselect' option.
#
#contenttype_xyz:
#contenttypexyz:
# name: ContentType Xyz
# slug: contenttypexyz
# fields:
# <<: *field_defaults
# selectfield:
Expand Down
12 changes: 11 additions & 1 deletion config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,20 @@ project:
#contentlisting:
# path: /{contenttypeslug}
# defaults:
# _controller: Bolt\Controller\Frontend\Controller::contentListing
# _controller: Bolt\Controller\Frontend\ListingController::listing
# requirements:
# contenttypeslug: '%bolt.requirement.pluralcontenttypes%'

# Use this route to display a record, based on the value of a field. for example,
# URLs like `/number/12`, where the intent is to display the record from the
# "entry" ContentType, where the "title" Field is equal to "12".
entrybynumber:
path: /number/{value}
defaults:
_controller: Bolt\Controller\Frontend\DetailController::contentByFieldValue
contentTypeSlug: 'entries'
field: 'title'

# ------------------------------------------------------------------------------
# last of all, try to find content only by slug (SEO routes) before throwing 404
content_seo:
Expand Down

0 comments on commit fb5f786

Please sign in to comment.