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

Extend array modal editor

Is it possible to extend the array modal dialog without overwriting the array-modal.js (apostrophe-schemas/public/js)? I'm trying to create a link array in the global module, for that i created: ... name: 'links', label: 'Links', type:…
ytasyol
  • 3
  • 1
0
votes
1 answer

Complex Array Search in Template

I'm trying to set up a way to add a list of registrants to the apostrophe-events module. I was able to add a new joinByMany field to the module, but I realized I also need to store a registration date and count on each registrant object. In order to…
Joseph
  • 865
  • 5
  • 20
0
votes
1 answer

Adding Link for Button Action

I recently started a new site with Apostrophe CMS, and one of the features in the project will be extending apostrophe-events to have a list of "registered" users who are associated with each event. I was able to add a new joinByArray column to the…
Joseph
  • 865
  • 5
  • 20
0
votes
1 answer

I'm creating a new module with apostrophe cms, How would I populate a select field type with all of the blog posts from apostrophe-blogs

I had thought about trying to use a join, but not sure how to connect a select field to populate with all the latest blog postings.
Brad Wood
  • 93
  • 5
0
votes
1 answer

Accessing apostrophe-users module fields in page templates

Is there a way for me to access specific information from the apostrophe-users module in a page template? For example, if I added a "nickname" field to apostrophe-users and would like to show a personalized welcome message on the home page to every…
viridius
  • 3
  • 2
0
votes
1 answer

apostrophe cms template caching

Is it possible to create template-level caching in apostrophe CMS? Perhaps something similar to how you do in Django: {% cache key-name variable %} cached block {% endcache %} I had a look at the docs but couldn't see anything specific (the project…
bionara
  • 228
  • 1
  • 10
0
votes
3 answers

How to add more stuff in the Toolbar

Currently we are limited to these Styles, Bold, Italic, Link, Unlink, Anchor, Table, BulletedList, Blockquote, Strike, Subscript, Superscript Is there any way to add more stuff over here eg :color and abc so that we can change abc properties…
Grewal
  • 55
  • 6
0
votes
1 answer

Anchor tag Not working at all

{{ apos.singleton(data.page, 'BLPHeroDisclaimerOptionONe', 'apostrophe-rich-text', { addLabel:"Hero Disclaimer", toolbar: ['Bold','Superscript','Italic', 'Subscript', 'Superscript', 'Link',…
Grewal
  • 55
  • 6
0
votes
1 answer

nginx Caching, mechanic, and apostrophe

Besides serving static files directly, does mechanic expose any commands/tools for adding in caching in nginx? Additionally, are there any gotchas with using nginx's built-in caching with Apostrophe or specific configurations I should use to make…
dgwebb
  • 321
  • 3
  • 16
0
votes
1 answer

How can i add list items and heading together, in the below code i don't see li at all

{{ apos.area(data.page, 'body', { widgets: { 'apostrophe-images': { size: 'full' }, 'apostrophe-rich-text': { toolbar: [ 'Styles', 'Bold', 'Italic', 'Link', 'Unlink','Table' ], styles: [ { name: 'Heading', element: 'h3' }, { name: 'Paragraph',…
Grewal
  • 55
  • 6
0
votes
1 answer

Chooser for apostrophe-page with joinByOne

I'm trying the following code blog in a definition for a Widget: { name: '_page', type: 'joinByOne', withType: 'apostrophe-page', label: 'Internal Page', idField: 'pageId', } I did expect to receive kind of graphical…
Florian Nitschmann
  • 351
  • 1
  • 3
  • 3
0
votes
1 answer

Adding classes or other HTML properties when using schemas.fields?

I'm outputting several form fields using schemas.fields (basically following the contact form example in the docs) - how do I add classes or other HTML properties to those fields?
dgwebb
  • 321
  • 3
  • 16
0
votes
1 answer

How do I populate a widget with existing data?

I have been trying to create a rich data model that has strong hierarchies -- let's say that a "Team" has "Members" -- both are pieces. I have succeeded in creating the joins, and the _members object is available to the Team. However, I would like…
0
votes
1 answer

Automating cleaning old page versions?

Is there a way to clean out old versions of a page? Would be great to either set in the configs or automate keeping only the last X number of revisions to a page.
dgwebb
  • 321
  • 3
  • 16
0
votes
1 answer

joinByOneReverse data not showing

this is a partial continuation of the following question: How to show pieces into the another pieces? and another one that I accidentally deleted, but got a lot of help on (thanks!) I have the following module blogTag that I want to connect via the…