apostrophe-cms

Clarification about apostrophe responsive images

我们两清 提交于 2021-02-11 06:46:14
问题 I have some question regarding apostrophes apostrophe-images-widgets and its srcset functionality. It's explained in you Documentation under Responsive Images. I've implemented this solution but i think I misunderstood something becuase the delivered image is still one-half size as background of the parent div focal-point-test . I mean this: So the actual img with srcset attribute: {# lib/modules/my-image-widget/views/widget.html #} <img src="{{ apos.attachments.url(data.widget._image

How to add/update piece field when the user saves/commits

人盡茶涼 提交于 2021-02-10 20:50:56
问题 In an ApostropheCMS application, we have a piece type "book". The front-end users are able, from the CMS, to update fields declared in the piece's index.js . We need to dynamically add or update a field once the user saves, namely a citations field. We use Citation.js to generate MLA, Chicago, etc. citations according to what the editor has entered in the CMS. We don't want to make this field visible in the CMS, because it needs to always be overwritten by the Citation.js generated results.

Autocomplete and text search memory issues in apostrophe-cms: need ideas

独自空忆成欢 提交于 2021-01-29 08:48:07
问题 I’m having trouble to use the text search and the autocomplete because I have a piece with +87k documents, some of them being big (~3.4MB of text). I already: Removed every field from the text index, except title , searchBoost and seoDescription ; these are the only fields copied to highSearchText and the field lowSearchText is always set to an empty string. Modified the standard text index, including the fields type , published and trash in the begining of it. I’m also modified the queries

Inserting/Updating pieces and its fields via (apostrophe-headless) REST API

两盒软妹~` 提交于 2021-01-29 08:12:46
问题 Am am currently using Postman to test the api results. I have been following the apostrophe headless docs, since am completely new to this. so what i need is to submit a post request in Postman to add a piece and its fields from REST api. I have got the bearer token and login was success. but when i insert a piece with body as JSON schema. am getting a error message. May be the way am doing is wrong. so can one one help me in Making a post request to add piece and fields through POSTMAN

ApostropheCMS Deployment Issue With Widget

大兔子大兔子 提交于 2020-06-29 05:16:18
问题 I am a relative beginner to working in Apostrophe. I'd like to start off by saying its a pretty great ecosystem and I've enjoyed the experience so far. However, I've run into an issue thats a bit confusing. I've been using it to build a site for a client and I've run into a very odd issue. I have installed an instagram widget that I found via npm (https://www.npmjs.com/package/@kwsites/cms-instagram-widgets) and used it on my local host with relatively no issues, it worked and I moved on with

how to extract image of a child page in apostrophe cms

末鹿安然 提交于 2020-02-06 08:42:31
问题 I am doing a navigation bar in apostrophe every new page that is created requests of requirement an image for the icon that is a singleton of image widget this is the field: { name: 'icon', label: 'Icon', type: 'singleton', widgetType: 'apostrophe-images', options: { limit: 1, minSize: [200,200], aspectRatio: [1,1] } } when I want to bring it in my general template I am trying this: {%- for tab in data.home._children -%} {%- set image = tab.icon or tab -%} <li> <a class="sidebar-main-link"

How to access custom fields in a data.home._children loop

被刻印的时光 ゝ 提交于 2019-12-25 00:17:39
问题 I've added a few custom fields in lib/modules/apostrophe-custom-pages/index.js Specifically, I've added a field for an excerpt, image Singleton for a cover image and another Singleton that will allow users to define an icon to a page. This is how these images are defined: { name: 'icon', label: 'Icon', type: 'singleton', widgetType: 'apostrophe-images', options:{ limit: 1, minSize: [200,200], aspectRatio: [1,1], }, controls:{ movable:false }, image: true }, { name: 'coverimg', label: 'Header

Ckeditor plugin configuration not working

。_饼干妹妹 提交于 2019-12-24 12:29:18
问题 I have tried to add justify plugin to be able to align text right, left or centre. But after following the instructions in the documentation (http://apostrophecms.org/docs/tutorials/howtos/ckeditor.html), I wonder if the plugin should be located in a specific folder (mine is at public/modules/apostrophe-areas/js/ckeditorPlugins/justify/), as it disappears when the site is loaded, but if I include it in some other folder such as public/plugins/justify still doesn't work. This is my code just

Creating a custom image widget in Apostrophe CMS

风格不统一 提交于 2019-12-24 12:18:21
问题 I am having trouble creating a custom image widget in Apostrophe CMS. The current apostrophe-images-widgets works fine for more images, but I need a special case for the website logo as it needs specific css and a specific location on the website. I tried following the tutorial here for making a custom widget with a manager, but I have no gotten the results I would like. Here is my logo-image module module.exports = { extend: 'apostrophe-pieces', name: 'logo-image', label: 'Website Logo',