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.

Filter by
Sorted by
Tagged with
1 vote
2 answers
20 views

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: ....
  • 4,435
0 votes
0 answers
114 views

TypeError: Cannot set properties of undefined (setting 'name')

This TypeError I want to set properties of undefined (setting 'name')
0 votes
0 answers
43 views

ApostropheCMS V3 : How to have a Selected item in one widget trigger reactively displayed content in another widget in the same page client-side

I have 2 widgets in a Page. The first widget displays a list of items names. The other widget displays details of the selected item in the first widget. Similar to filtering mecanism for piece-type. ...
0 votes
1 answer
25 views

How do I set additional file groups in Apostrophe 3 CMS attachment module?

File groups in the Apostrophe 3 CMS attachment module specify which files can be uploaded in a file upload form. By default, Apostrophe 3 offers two file groups: office and image. I would like to add ...
1 vote
0 answers
20 views

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. ...
1 vote
0 answers
21 views

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

How to use Apostrophe CMS login to add code to user upon login

I want to run a function when a user logs in to put a unique code onto the user. Then I can use this code to authenticate subsequent requests. I want to do something very similar to the weak2FA ...
  • 127
0 votes
1 answer
41 views

Is there a way to embed metadata into an Apostrophe CMS version 3 user type

I am looking into the Apostrophe CMS for a way to embed data into the mongoDB user documents so that I can keep more data about a given user beyond just their username, password, and role (admin, ...
  • 127
0 votes
2 answers
64 views

add event handler to a textbox apostrophecms

I'm new at the apostrophe world, I'm trying to add a event to a textbox, for example, when they type a country name I would like to check the database to see if this country already exists, I do this ...
0 votes
1 answer
54 views

ApostropheCMS 2 CSS Issue

I've one apostrophe CMS 2 project where I am trying to make changes in the css file which resides in "lib\modules\apostrophe-assets\public\css\site.css" and there is another minify css file ...
0 votes
1 answer
65 views

ApostropheCMS - why I'm getting error message while commiting changes in admin bar?

I'm getting this error every time I commit things in admin bar (pieces, pages). I have no idea why. I use apostrophe version: "^2.220.7". Anyone had a similar problem?
  • 21
0 votes
1 answer
198 views

Tailwind css config file compiles in wrong order in Apostrophe CMS

I'm trying to set up some custom fonts in tailwinds config file. It seems to work however it adds the custom fonts and the original tailwind font styles in my css and the order of them makes it ...
  • 125
0 votes
1 answer
23 views

Losing the event listeners when changing from "preview" to "edit" mode

I have some elements in the layout which are controlled with the event listeners. An issue appears when I go from the 'view mode' into an 'edit mode' and the event listeners no longer work. My guess ...
  • 1
0 votes
1 answer
48 views

How do you add React as NPM package to Apostrophe v3?

we're working with Apostrophe CMS v3 and we're trying to add some custom apps to the pages with React. I was able to add components inside using the React CND scripts and loading components as script ...
1 vote
1 answer
65 views

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 &...
0 votes
1 answer
36 views

Apostrophe - Azure

Is it possible to deploy Apostrophe on Azure? If so, is there any form of documentation? I have looked around and seen no one talk about apostrophe on azure. I know one major downfall of trying to ...
0 votes
1 answer
585 views

Apostrophecms: parseAggregate: expected colon after dict key

I am new in apostrophecms i am building my first app, i want to define widgets in home using macro but When the JS calls nunjucks render, I get the following error:: parseAggregate: expected colon ...
0 votes
1 answer
23 views

joinByArray field add to beginning of array in apostrophe-cms

I'm hoping to get some help with what I think should be an easy request but can't seem to figure it out in apostrophe-cms. My client wants the joinByArray field to add articles to the beginning of the ...
  • 125
0 votes
1 answer
18 views

How to prune the aposDocVersion table

As I understand it, the aposDocVersions table shows the last few (or even all?) previous versions of pieces, its history. We are using apostrophe-workflow, but I am not certain it's specifically ...
  • 623
0 votes
1 answer
58 views

Create User Profile Piece

I wanted to create a user profile piece, which joins apostrophe-user so that the admin can make public profile for specific users. I know its not recommended but I see this as the only option to have ...
  • 152
0 votes
1 answer
28 views

Apostrophe CMS browsing for pieces keep pre-loaded pieces if user clicks on one and goes back to browsing

My client wants the ability for users to go back to the same already loaded pieces instead of having to click the "Load More" button to get back to where they were. Is there a way for ...
  • 125
0 votes
2 answers
224 views

apostrophe-rich-text anchor name and adding attributes to elements in CKEditor programmatically

My Problem is that and anchor in apostrophe-rich-text produces a not working markup in html. I have the following setup for my apostrophe-rich-text: 'apostrophe-rich-text': { toolbar: [ '...
  • 152
0 votes
0 answers
45 views

Uploading an apostrophe-file renames it and prompts a download

When adding an apostrophe-file via the CMS, there are two weird things that occur: The browser prompts a download of the file I just uploaded (!?) The actual uploaded file is renamed to include the ...
  • 623
0 votes
1 answer
90 views

How can I add users in ApostropheCMS?

I'm using ApostropheCMS. I want to add users authentication to my project. How can I do this? The users should be created in the same way I created admin user? (via /login page and apostrophe-users ...
  • 21
1 vote
1 answer
58 views

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 ...
  • 125
0 votes
1 answer
52 views

Public User Function to change Values

I would like to add a button to allow the public user to save simple true/false boolean values in their session and change things in the template according to those decisions. I think there are quite ...
  • 152
0 votes
1 answer
34 views

Add pre-defined widgets to home

I'm following this answer which was really useful for me to have some pre-defined widgets on newly created pages. // lib/modules/apostrophe-pages/index.js construct: function(self, options) { ...
  • 152
0 votes
2 answers
65 views

How to properly limit the quantity of pieces for a singleton

I've never been able to properly limit the quantity of pieces an editor can select when editing in context. This needs to be a singleton, as I understand, because an area offers many widgets. In this ...
  • 623
0 votes
1 answer
45 views

ApostoprheCMS - how to use jquery-ui

I wonder what is the best way to add jQuery-ui in my ApostropheCMS project. Now I have a minified jquery-ui file in my assets and I push the asset in this way: self.pushAsset('script', 'jquery-ui....
  • 21
0 votes
1 answer
44 views

Can Custom Schema Field Types Run Code After Render?

I'm attempting to add a new schema type to my Apostrophe-CMS project. I'm essentially trying to use Fabric.js to add an image designer as part of the pieces editor modal. I have a piece type that ...
  • 855
1 vote
1 answer
105 views

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 ...
  • 21
0 votes
1 answer
179 views

add parameters for 3rd party jquery plugins like swiper

I'm using some 3rd party jquery plugins and in some cases I need to initialize the plugins separately to give them some additional parameters like shown above. I load for example swiper library with ...
  • 152
0 votes
2 answers
79 views

Apostrophe-cms cloning a pieces area into another non pieces area

I have an apos pieces collection called templates and in that schema I have an apos area for other widgets, etc. I have created a standard non-pieces widget with a joinbyone that can pick the area but ...
0 votes
1 answer
126 views

Install apostropheCMS on plesk obsidian, error with npm path

I'm quite new to node.js, I'm trying to install apostropheCMS on a plesk obsidian server (ubuntu 16) I could install the nodeJS package on plesk, and made NPM commande global, so, when I go to my ...
  • 11
0 votes
1 answer
48 views

Get apostrophe-workflow localizations to work for a website with multiple blogs

I have an ApostropheCMS project that has multiple blogs with articles in each of them. For this purpose, I created a separate module for each blog and separate blog pages, to hold the page and article ...
0 votes
1 answer
29 views

Apostrophe Forms Submissions in Admin Bar

I have a small question regarding apostrophe-forms. You are saying that: "By default, submissions are saved to a new MongoDB collection, aposFormSubmissions". Is there a way to show ...
  • 152
1 vote
1 answer
83 views

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 lib/...
  • 152
0 votes
1 answer
49 views

While logged in, how to detect preview/draft/live?

While using Apostrophe Workflow, I don't know how to detect in CSS and/or JavaScript in which mode the user is viewing the page. The .apos-workflow-draft-page CSS class seems to be present in both ...
  • 623
1 vote
1 answer
45 views

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?
1 vote
1 answer
63 views

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 ...
1 vote
1 answer
199 views

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 &...
  • 623
0 votes
2 answers
98 views

apostrophe-oembed youtube videos are broken

Since a few days I am Facing an issue with videos embed using "apostrophe-oembed", I get an 403 error in the network tab. The videos worked before. Does anyone know if youtube changed ...
0 votes
1 answer
62 views

Filter and show only SVG images in ApostropheCMS

I created a new filter named svg to show only svg images or non-svg images. But I don't understand where can I set the filter value to true or false? The code is shown below. Widget index file: module....
  • 365
0 votes
1 answer
98 views

How to change my apostrophecms password while signed in

In the apostrophe-login module there is the option passwordReset to activate a "forgot password" feature, allowing users to receive a link via email to reset their passwords. However, I ...
  • 56
0 votes
1 answer
34 views

How to get related object of existing relation

I have two modules, Blog and Authors. For each Blog post I want to select author from Authors module and show his name and picture: blog/index.js: module.exports = { extend: 'apostrophe-pieces', ...
  • 815
0 votes
1 answer
114 views

In Apostrophe cms ,How can i get the list of the specialist whose value corresponding to the country(joinByArray) are same?

I have created an apostrophe-piece named Specialists, which contain the data of several specialists. One of the field inside the pieces schema is COUNTRY (name of the countries they visited) which is ...
1 vote
2 answers
487 views

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',{....
  • 13
0 votes
1 answer
144 views

apostrophe cms data retrieval of join of pieces with join of another piece

**The code given below are the schema fields of a piece called home and home has pieces joined with it such as _trip, _accomodation, _testimonial.These joined pieces are again joined with other pieces ...
0 votes
0 answers
28 views

How can i ignore the warning when i deleted a piece manually from my apostrophe-project?

I have deleted a piece from my apostrophe project manually. now when i run the project it is shows as a warning that: It looks like you may have made a mistake in your code: The module banners does ...
0 votes
1 answer
54 views

Apostrophe-CMS change image src

By default, in html images looks like that: <img src="/uploads/attachments/ckghp4r9f002a8bp5d07gjtfh-docTitle.two-thirds.png" /> Can I change this to show a user sth like this? <...
  • 21

1
2 3 4 5
11