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
2
votes
1 answer

CSS and JS assets not being found when deploying Apostrophe CSM to Heroku

I'm following the HOWTO on deploying to Heroku: https://docs.apostrophecms.org/apostrophe/tutorials/howtos/deploying-apostrophe-in-the-cloud-with-heroku I'm deviating from the HOWTO a bit since I'm using Heroku's mLab add-on to handle my Mongo.…
bgaynor78
  • 454
  • 2
  • 7
2
votes
1 answer

Is there a way to group pieces in a widget based on it's tags in Apostrophe CMS

So I'm creating a page of downloadable documents and am using the apostrophe-files-widgets to render out the documents uploaded under the Files admin bar item. This works fine, but when rendered on the page, they show up in order they were…
bgaynor78
  • 454
  • 2
  • 7
2
votes
1 answer

Create apostrophe instances in runtime and create pages dynamically

Im exploring apostrophe cms and it seems to fit my business. I have successfully created a sample widget, can someone help me with creating apostrophe instances in runtime, create pages and run my test cases. I want all the test cases for that…
Leeyung
  • 111
  • 1
  • 2
  • 6
2
votes
1 answer

Dynamic Select fields in apostrophe inside Array field type

Functions for select field choices cannot be read when inside an Array field I can call a function to populate a select field's choices but when the same select field is inside an Array field I get TypeError: Cannot read property 'functionname' of…
2
votes
0 answers

Dynamic Select fields in apostrophe

I just learning Apostrophe CMS and I'm a bit confused as to how I can dynamically fill a select field. I've tried what the ApostropheCMS documentation suggests but there is no example on their site. Apostrohpe CMS suggestion: First, set the choices…
2
votes
2 answers

I have a problem trying to integrate Paella Player with Apostrophe-CMS

Trying to implement Paella Player in Apostrophe, I've found an error applying the assets to my project. The Javascript file that fails is jquery.js. https://github.com/polimediaupv/paella/tree/develop/javascript And this is my error. Uncaught…
Jose García
  • 125
  • 8
2
votes
1 answer

Customizing pieces management modal in Apostrophe CMS

I am using the apostrophe-samples Github project to do some tests regarding the pieces modal customization. So far, I've added filters as explained in the tutorials, and added columns as seen in the apostrophe-pieces source code (I think it would be…
priethor
  • 93
  • 2
  • 7
2
votes
1 answer

How to extend Apostrophe Rich Text Widget Styles

I'm trying to extend Rich Text Widgets Style in Apostrophe but it doesn't work. In home.html { apos.area(data.page, 'body', { widgets: { 'apostrophe-rich-text': { toolbar: [ 'Styles', 'Bold', 'Italic', 'Link', …
Jose García
  • 125
  • 8
2
votes
0 answers

Apostrophe CMS: Submit Pieces Widgets type not defined error

I’ve been creating a basic contact form following the Apostrophe CMS documentation and have got it working but now want to remove the “excess” code by using the apostrophe-pieces-submit-widgets module. I have tried using it in both my app.js file…
Wayne Haffenden
  • 160
  • 1
  • 5
2
votes
1 answer

Own beforeSave handler for the apostrophe widget

How to code the beforeSave() handler for the apostrophe widget? This code in the widget index.js does not work for me: module.exports = { extend: 'apostrophe-widgets', label: 'My widget', addFields: [ { name: 'label', type:…
Voltrun
  • 77
  • 7
2
votes
1 answer

Extend widgets for common input fields in apostrophe cms

I am creating multiple widgets in apostrophe 2.x which work fine. Now I want to structure and organise them properly. Most of my modules have an option for changing from content-width to browser-width. I am trying to generalise this function without…
Raphael
  • 59
  • 9
2
votes
2 answers

Seed my database, or insert data programatically in ApostropheCMS

I'm wanting to do a very quick and dirty "seed" of my database with a load of blog posts... I'm happy working with Mongo cursors etc, but can't seem to find a valid lifecycle method to "plonk" this code into... This is all for a proof of concept, so…
jpsear
  • 43
  • 7
2
votes
2 answers

Apostrophe cms: do not want to render image title

I am using apostrophe-images to insert an image in my page. When this widget is rendered, there is an header h4 with the title. I would like to remove it. Thanks
chris
  • 85
  • 6
2
votes
2 answers

Author of articles are not shown to non-logged-in users in Apostrophe CMS

I created a project using Apostrophe CMS and have an ongoing development of new pages and articles. The content (articles and pages) we publish will be available to the public (non-logged-in users) and also to logged-in users (admins). I already…
2
votes
2 answers

Apostrophe-pieces-pages can't register page type

I try to create a new pieces page, kind of a blog style in apostrophe cms. I have trainings, trainings-widgets and trainings-pages folders. I registered them all in app.js; pieces by themselves and widgets work beautifully. The problem is when I try…
Michał Sadowski
  • 1,946
  • 1
  • 11
  • 24
1
2
3
35 36