bolt icon indicating copy to clipboard operation
bolt copied to clipboard

User able to add items to singleton contenttype

Open peterboorsma opened this issue 7 years ago • 3 comments

Current behaviour: If you create a singleton contenttype, a user is able to add more items to that contenttype with the 'Add ..." button on the dashboard page. See attached file. screen shot 2018-09-17 at 11 21 44

Preferred behaviour: It should not be possible for a user to add items to a singleton contenttype (hence the 'single' in 'singleton')

Bolt Version 3.5.7

peterboorsma avatar Sep 17 '18 10:09 peterboorsma

This issue has been automatically marked as stale because it has not had recent activity. Maybe this issue has been fixed in a recent release, or perhaps it is not affecting a lot of people? It will be closed if no further activity occurs, because we like to keep the issue queue concise and actual. If you think this issue is still relevant, please let us know. Especially if you’d like to help resolve the issue, either by helping us pinpointing the cause of a bug, or in implementing a fix or new feature.

stale[bot] avatar Nov 16 '18 10:11 stale[bot]

Keep.

bobdenotter avatar Nov 16 '18 11:11 bobdenotter

I noticed this to today. I just updated A Bolt website from 3.6.5 to 3.6.6. You can add a new singletons in 2 ways.

  1. Via dashboard as @peterboorsma mentioned.
  2. Via the green 'save as and create new' option.

image

This means that if you not set your setcontent inside your twig as returnsingle etc your website can break when an extra singleton is created.

melcarthus avatar Mar 16 '19 16:03 melcarthus