Questions tagged [headless-cms]

234 questions
0
votes
0 answers

Wordpress Headless remove all links from REST API

I have a wordpress headless site and basically I wanna hide all the links of the WordPress Admin to be not visible to the public. I was able to do some forwarding for the api (graphql) and cdn to make sure the wordpress admin links do not appear on…
HNG
  • 251
  • 3
  • 15
0
votes
0 answers

Any way to add content to my Sanity headless CMS from my phone?

I want to use my phone to add content to Sanity CMS. I don't want to open localhost each time I want to add content? Is there like a dashboard on Sanity where I can do that and of course link it to my webpage?
user19910212
0
votes
1 answer

How to design a content model for a page with multiple sections in Headless CMS?

I have been looking into headless cms concepts and would like to design a page like below? In an headless cms, we can create individual input pages with the respective content model, "main page" will have one and "company" will have one. We cannot…
Matt
  • 79
  • 1
  • 4
0
votes
1 answer

Drupal JSONAPI date range date range

I followed the documentation on filtering. Used the following code in order to fetch date range…
Rdb
  • 59
  • 2
  • 12
0
votes
3 answers

Does it make sense building a Knowledge Base using headless CMS?

Situation: I work for a multinational/global organization in the HR dept as Engineering Manager. HR needs a lot of content related to Immigration, Benefits, Leaves, Disability, Transfers, New Hire Onboarding, Covid Policies, Expense Policies. These…
user773327
  • 51
  • 1
  • 3
0
votes
2 answers

Headless WP: how can I check on the frontend if a WP user is logged in?

I'm currently trying to figure out how to detect if a Wordpress user is logged in when browsing the decoupled frontend (NextJS app, GraphQL via the WPGraphQL plugin) for showing options based on this, like an edit button for the current page. It's a…
0
votes
2 answers

add termmeta field to woocommerce attribute in rest api result

I have woo variation swatches plugin on my website and I want to use woocommerce and wordpress in a headless project. my problem is when I want to fetch attribute terms via /wp-json/wc/v3/products/attributes/COLOR_ATTRIBUTE_ID/terms the returned…
0
votes
1 answer

MongoDB is missing from the Strapi database client

Why MongoDB is not listed in the create-strapi-app installation process?
Ben
  • 395
  • 1
  • 5
  • 16
0
votes
1 answer

How to pass JWT token from Headers Set-Cookie to Authorization Headers in Strapi

[details="System Information"] Strapi Version: 4.1** Operating System: Windows 11 Database: Postgress Node Version: NPM Version: Yarn Version: [/details] I wanted roles of users so I modified the response by adding extensions/strapi-server.js //…
Sohel Shekh
  • 241
  • 3
  • 9
0
votes
0 answers

Next.js, WP REST API Checkout page in iframe: "Sorry, your session has expired. Return to shop"

I have a Nextjs app, that uses the Wordpress REST API to fetch the products. I maintain the cart within React, and I would like to display the WooCommerce checkout page inside an iframe. I made a custom function in php (I'm not so good with php…
user12445195
0
votes
2 answers

React function based component wont return component inside nested map function

I am trying to output different components based on the inputType, however the component or anything that goes into the DOM does not render (aka console.logs fire correctly to confirm the if/if else statements are working correctly. Not quite sure…
Daniel Vickers
  • 1,054
  • 1
  • 12
  • 32
0
votes
0 answers

How do I make additional filter work on Strapi GraphQL query resolver extension

I am using Strapi headless CMS and I have a collection type called Teacher Profiles. And I am adding an extra field in the query response that I calculate on the fly. This field doesn't exist in the original content type. I am adding this using…
0
votes
1 answer

Add new field from plugin to existing collection type in Strapi.js

I can't seem to find a proper way for my plugin to add a new field to existing collection types in Strapi.js. What I need: I need that upon install of the plugin a new field "votes" would be added to all the existing collection types. And endpoint…
0
votes
1 answer

Drupal Webform REST

I am trying to use Drupal Webform REST. I got an error "The 'restful post webform_rest_submit' permission is required." on browser console. I have enabled modules and REST resources as mentioned. I used Authorization, the Auth generated in Postman,…
0
votes
0 answers

Language & url change in headless CMS

I'm using Wordrpess as headlessCMS, nextJS, graphQL. When i get my menu from wordpress it has links in this way For ENG: "/about-us" For PL: "/o-nas" My goal is to have one template in my files, for example "/pages/about.js"; and then when user…