Questions tagged [apostrophe-cms]

The official tag for ApostropheCMS. You can post code-related how-to questions about using Apostrophe, so that other community members can easily find answers to their problems. Please do not ask non-code related questions. Discussions, best practices, and ideas for development should be posted on the forum.

ApostropheCMS is an open source, highly modular content management system on top of Node.js, MongoDB and Nunjucks. It supports in-context editing, schema-driven content types, flexible widgets, and much more.

Start by reading the documentation. There are helpful getting started guides. Want to dive deeper? Understand Apostrophe deeply by consulting the technical overview.

Join the community on the forum. New release notes will be announced there.

Found a bug or want to contribute? File an issue or a pull request on GitHub. Feel free to also contribute to the official modules.

Got stuck? Now post your question. We're happy to help.

529 questions
1
vote
2 answers

How to override CSS in apostrophe-cms pro in TheAposPallete.vue

I'm new to apostrophe-pro and in node_modules I can see a file TheAposPallete.vue which can be located at \node_modules@apostrophecms-pro\palette\ui\apos\components This file has following CSS: .apos-palette__grouped.is-open…
ABGR
  • 4,631
  • 4
  • 27
  • 49
1
vote
1 answer

Apostrophe 3 CMS on Heroku always clearing files in uploads/attachments after deploying

I have Apostrophe 3 CMS hosted on Heroku, but whenever i do deployment for my code changes, the files always clearing and the media image will be broken since the files is no more on the folder. Anyone know how to solve this?
newDev33
  • 61
  • 1
1
vote
0 answers

Apostrophe 3 CMS not showing the modal when clicking admin bar

I have a CMS that created with Apostrophe 3 and it's already working fine previously. But I have issue appeared in a few days ago that not showing any modal when I click on the admin bar to see the list and adding new record for my CMS (sometimes…
newDev33
  • 61
  • 1
1
vote
1 answer

Import export widget in Apostrophe CMS

Is there any way how to import/export a widget configuration from one page (or project) to another? I was thinking of exporting the widget config to a JSON and then importing this config to the other "empty" widget of the same type. Another way…
1
vote
1 answer

Apostrophe cms create a 'select all' button for filtering tags

I am trying to build a filter based on tags in apostrophe with check boxes so that multiple filters can be selected (this piece has been achieved). I also need a button to select all tags this is where I have not been able to find an answer. How can…
Brooklee
  • 135
  • 1
  • 8
1
vote
1 answer

Apostrophe-assets - reduce file size

I'm doing a project using ApostropheCMS and I have a few questions about the module called apostrophe-assets. I have a pretty big css file ( > 1MB). I noticed that 30% of this file include a comment added in a master-anon.css.map file. I wonder if…
justyna
  • 21
  • 6
1
vote
1 answer

How to register a lean widget player

Apostrophes Lean frontend is nice, I got a huge performance boost but I have some Problems to understand how to register some of my own widget players like explained here. For example for this one…
Felix
  • 154
  • 10
1
vote
1 answer

Log user out of apostrophe-cms after period of inactivity

I don't see a way to setup apostrophe to automatically log a user out after a period of inactivity. Did I miss something in the documentation or is there a way to implement this built in already?
Mike Murray
  • 138
  • 1
  • 1
  • 9
1
vote
1 answer

Combining new apostrophe-cms project with existing Gulp.js project

I recently found out about Apostrophe CMS when I was searching for a Wordpress/TYPO 3 alternative and I must say, I'm really impressed! Needless to say, I'm also a bit overwhelmed with all the stuff that is coming together in this huge framework. So…
zynth666
  • 68
  • 6
1
vote
1 answer

How to ensure slugs do not contain accented characters?

The title says it all. When adding a title to a page, or an image, if that title has accented characters, it is reflected in the URL. e.g. a piece titled "Événements" will generate a slug "événements". While I agree this is valid, and that it gets…
jansensan
  • 633
  • 1
  • 8
  • 23
1
vote
2 answers

Apostrophe CMS: filtering the Result of apostrophe-pieces-widgets

I have currently the two lines of Code in my Template {{ apos.singleton(data.page, 'productsLimitedBy12', 'products',{...someoptions}) }} ... {{ apos.singleton(data.page, 'singleproduct', 'products',{...someoptions}) }} Both are the same widget…
KDSN
  • 13
  • 3
1
vote
1 answer

How to add/update piece field when the user saves/commits

In an ApostropheCMS application, we have a piece type "book". The front-end users are able, from the CMS, to update fields declared in the piece's index.js. We need to dynamically add or update a field once the user saves, namely a citations field.…
jansensan
  • 633
  • 1
  • 8
  • 23
1
vote
1 answer

How to Move Apostrophe CMS to another server

I cannot find anything properly documented on how to move Apostrophe CMS from one Server to another Server. Any Step by Step guides?
mad2kx
  • 31
  • 11
1
vote
1 answer

Clarification about apostrophe responsive images

I have some question regarding apostrophes apostrophe-images-widgets and its srcset functionality. It's explained in you Documentation under Responsive Images. I've implemented this solution but i think I misunderstood something becuase the…
Felix
  • 154
  • 10
1
vote
1 answer

Adding options to apostrophe-images-widgets directly

I've improved several image widgets by extending 'apostrophe-images-widgets' directly. That may not be the best practice, but I used this since the beginning I've started to code with apostrophe-cms and It worked good. My slide widget for example…
Felix
  • 154
  • 10