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 get hash value from the URL

I am working on re-directing user to a default page when they arrive on the landing page with a specific URL and I was wondering what will be the best to get the value after hash. example: Landing page URL is: http://www.google.com but when user…
Parik Tiwari
  • 1,525
  • 1
  • 12
  • 19
0
votes
1 answer

Apostrophe Blog Module: Individual Blog Posts 404

I am having trouble getting individual blog article pages to show with the apostrophe blog module. I must be missing something or forgetting something? Here´s what to do to replicate the issue (with the code in the following repo:…
0
votes
1 answer

Apostrophe-cms: Unable to run apostrophe-cms version 0.5

I am a newbee of Apostrophe-cms. I am trying to edit my project with apostrophe-cms version 0.5. When install a new apostrophe project, I got this error then run command: node app.js. MongoError: driver is incompatible with this server version at…
0
votes
0 answers

Unable to upload image into AWS. Is there a S3 bucket config issue?

New to Apostrophe and I have been following the install guide for servers. I have most things setup and the server is running on Heroku. I've setup the APOS_S3 environment variables but whenever I try to upload an image a entry is generated but when…
0
votes
0 answers

Apostrophe Pieces Tutorial: self is not a function

the following code snippet in the tutorial for Pieces (http://apostrophecms.org/docs/tutorials/getting-started/reusable-content-with-pieces.html) gives the type error : self[name] is not a function - on line 1031 of…
0
votes
1 answer

Run Apostrophe 2 CMS on IIS (IISNode)?

You configure the server and app like the other Node.js based apps on IIS (like in this article) and install ImageMagic (required by Apostrophe CMS). After that, when you running apostrophe app, you may see an error "The configured bundle apostrophe…
EddiG
  • 172
  • 2
  • 4
0
votes
2 answers

Meaning Full name

{{ apos.singleton(data.page, 'textBlock', 'apostrophe-rich-text', { toolbar: [ 'Styles', 'Bold', 'Italic' ], styles: [ { name: 'Title', element: 'h3' }, { name: 'Meta', element: 'h5' } ] }) }} Is it possible to change the…
Grewal
  • 55
  • 6
0
votes
1 answer

apostrophe-images-widgets custom widget call apos.attachments.url twice

I am trying to create a custom apostrophe-images-widgets layout for my site. I have currently created a project-level override for the html template in the lib/modules/apostrophe-images-widgets/views/widget.html. The issue I have is whenever I…
Carson
  • 1,169
  • 13
  • 36
0
votes
0 answers

How to display top 10 results and All results in apostrophe blog

I have apostrophe blog running on the server and under the lib/modules/apostrophe-blog-pages/views folder I have two templates index.html and show.html. And I have added a new template popular.html. Want I am trying to do it for the third template I…
Parik Tiwari
  • 1,525
  • 1
  • 12
  • 19
0
votes
1 answer

Creating forms in Aposstrophe CMS

I am following this tutorial to create a form in my project, which is leveraging the Apostrophe CMS. When i follow the tutorial, I am able to create the form and submit, and understand how to view the form submission in the Admin Console. However,…
Jeff Wilkerson
  • 376
  • 2
  • 18
0
votes
1 answer

Apostrophe floating widgets below bootstrap fixed navbar

I am using Bootstrap v3.3.7 with Apostrophe CMS. My navbar is a fixed navbar using the navbar-fixed-top style which has the following css .navbar-fixed-top { position: fixed; right: 0; left: 0; z-index: 1030; top: 0; border-width: 0 0…
Carson
  • 1,169
  • 13
  • 36
0
votes
3 answers

How to embed youtube video on the pages

I want to embed multiple youtube videos on pages and want to give the same option to the content creator. I did see the modules apostrophe-oembed and browser-apostrophe-oembed. Can you provide and example for the same? Thanks!
Parik Tiwari
  • 1,525
  • 1
  • 12
  • 19
0
votes
2 answers

Best way to deploy Apostrophe 0.0.5 & 2.0.0 autogenerated files to a cloud provider or similar?

This questions relates to both, version 0.0.5 and 2.0.0. Apostrophe generates a single hashed .css file and corresponding .js when minify is set to true. We are looking to be able to deploy these files to an s3 bucket or similar and have them…
Fotis Paraskevopoulos
  • 1,001
  • 2
  • 12
  • 19
0
votes
1 answer

How to bypass "refreshLayout.html" restriction for page

In this line of the apostrophe-templates module it states that a jquery get call will set the req.xhr and as a result the refreshLayout.html template will be used, which means you don't get the entire page. However this seems restrictive and we need…
Fotis Paraskevopoulos
  • 1,001
  • 2
  • 12
  • 19
0
votes
2 answers

Best place to add analytics in ApostropheCMS

I am trying to get tracking in place and was wondering what will be the best place to add the JS code. Also need to make sure that is it not getting minified?
Parik Tiwari
  • 1,525
  • 1
  • 12
  • 19