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

How to make widget wrappers include bootstrap classes

I have a requirement where a user is allowed to add a single type of widget in an area which should layout in the form of a grid. The widget itself contains a value which determines its width by using bootstrap classes. Here is the widget…
Fotis Paraskevopoulos
  • 1,001
  • 2
  • 12
  • 19
0
votes
1 answer

Following tutorial - stuck on adding new templates under apostrophe-pages in app.js

I'm following the tutorial to a T. The only thing that could possibly be out of the ordinary is that I'm setting up Apostrophe under Linux (Fedora). I installed the dependencies save for one: npm WARN optional Skipping failed optional dependency…
0
votes
1 answer

how to use autocomplete with full body search in apostrophe cms

right now I have something similar to var cursor = self.apos.docs.find(req, { highSearchText: {$regex: new RegExp(self.apos.utils.regExpQuote(req.query.search), 'i') } } ) cursor.queryToFilters({ highSearchText: {$regex: new…
Parik Tiwari
  • 1,525
  • 1
  • 12
  • 19
0
votes
1 answer

Performance Engineering on Apostrophe CMS

So after three weeks of 12hr shifts I am almost done with building a Knowledge Base system using Apostrophe. Now comes the task of speeding things on the front end. My questions are: How do I add expires headers: Express has inbuilt milddleware…
Parik Tiwari
  • 1,525
  • 1
  • 12
  • 19
0
votes
1 answer

Change apostrophe-search results page size

There is probably a property to set the search results page size (looks like it defaults to 10). How can I increase the page size? I found this in the \node_modules\apostrophe\lib\modules\apostrophe-search\ module: perPage: 10 but changing this…
lance-p
  • 1,050
  • 1
  • 14
  • 28
0
votes
1 answer

issues starting a node app with pm2 in production

I've got an instance of Apostrophe-CMS which I'm trying to deploy to production at the moment. Running sudo npm start works fine and the application boots. However, when I try to have the pm2 daemon run it I'm getting a symlink error: Error:…
0
votes
0 answers

Apostrophe-cms Unable login to localhost:3000 after install

I am a beginner in Apostrophe-cms. I tried to follow installation environment Apostrophe, until the step node app.js. I can run the web on localhost:3000, but could not login. These are the steps which I do: CMD show when I created new user when I…
0
votes
1 answer

Custom widget using third party npm jquery module

After doing more research from the documentation, it looks like a custom widget is the best way to try to achieve what I need: an autocomplete drop down that loads article/blog posts by title as the user types (I selected npm jquery-autocomplete,…
lance-p
  • 1,050
  • 1
  • 14
  • 28
0
votes
1 answer

Import third party plugins(bootstrap, jquery.scrollTo) in apostrophe cms

I am trying to import the third party plugins into a landing page in the system. The documentation here clearly states that the default path for the files should be lib/modules/apostrophe-assets/public/css/ and when I add the needed plugin css and…
Parik Tiwari
  • 1,525
  • 1
  • 12
  • 19
0
votes
1 answer

How to change "It's" to "It is" (without apostrophe) using str_replace?

I want to replace from Facebook's relationships string "It's complicated" to other text. The line is like this: $user->relationship = str_replace(array('single', 'It's complicated'), array('Soltero(a)', 'Es…
0
votes
0 answers

execute filter chain before admin generator symfony

I need to call a filter added to the filter chain before calling an action build with the admin generator. But it seems that the filter chain is not executed before the admin generator. Is there any workaround? Edit: I am using apostrophe sandbox. I…
brpaz
  • 3,618
  • 9
  • 48
  • 75
-1
votes
1 answer

ApostropheCMS integrate pieces

when i try to extend apostrophe-pieces-pages in some module it throws an error and the same thing hapend when i try to extend apostrophe-pieces my app.js : 'products': {}, 'products-pages': { extend: 'apostrophe-pieces-pages' } error…
chrajem
  • 11
-1
votes
1 answer

How can i use the apostrophe-oembed to embed data using an iframe?

How can i use the apostrophe-oembed to embed data from another website using an iframe? I have gone through the documentations but were of little help.
-1
votes
1 answer

Using apostrophe-email for sending account details to new users

I was reading the following about how to use apostrophe-email module for password reset: However, I wonder if this module will also send a confirmation/activation email to new users with account details, once any user with admin permissions creates…
D Ramirez
  • 49
  • 7
-1
votes
1 answer

displaying image reusable content with pieces

I wrote a Widget – i basically created the people Widget ( Adding Editable Content to Pages - Tutorial) and modified it to my needs. The structure of the widget On my show.html the heroimage is missing and everywhere else the image is displayed…
1 2 3
35
36