Code Monkey home page Code Monkey logo

Comments (6)

maevelander avatar maevelander commented on September 27, 2024 2

@justnorris How about this?

gutenberg-ramp-ui

Moved the sentence about the function up so we don't have little bits and pieces floating everywhere.

Used admin notice style to draw attention

from gutenberg-ramp.

maevelander avatar maevelander commented on September 27, 2024 1

Thanks for raising this @klasharr

A quick and easy fix would be to add some explanatory text:

Post types that are not compatible with Gutenberg do not appear here. Learn more.

A more advanced solution would be to actually check for post types that are incompatible and display a list of them. I'd propose a simple text based list, something like this:

The following post types were found but are not compatible with Gutenberg: [list of post types] Learn more.

@klasharr and @rogertheriault both suggested displaying the incompatible post types as greyed out... my concern with that is that we're already using that style to indicate a post type which IS compatible but which is controlled by the function gutenberg_ramp_load_gutenberg() in code (overriding the UI).

@justnorris Thoughts?

from gutenberg-ramp.

lukecav avatar lukecav commented on September 27, 2024 1

@justnorris

My mistake, custom post types created by Pods, do show in the Gutenberg Ramp settings when the REST API is indeed enabled for that Pods.

from gutenberg-ramp.

lukecav avatar lukecav commented on September 27, 2024

Any custom post types created by using Pods, do not show up in the Gutenberg Ramp settings.

from gutenberg-ramp.

maevelander avatar maevelander commented on September 27, 2024

Any custom post types created by using Pods, do not show up in the Gutenberg Ramp settings.

@lukecav Are you reporting that as a false negative? ie post types created by Pods ARE compatible but not showing? Or is it just illustrating the confusion?

from gutenberg-ramp.

pyronaur avatar pyronaur commented on September 27, 2024

@lukecav I installed Pods and created a custom post type called "Super Post" and Ramp does show that post type to me if the REST option is enabled in Pods as well.

To test this out further, I disabled Ramp completely and activated Gutenberg. If a post type in Pods doesn't have REST enabled - it doesn't support Gutenberg and falls back to TinyMCE (at least for now in WordPress 4.9.6) - so I don't think the issue you saw is Ramp related. If it is - please create a new issue with steps to reproduce so that I can debug it.

@maevelander I'm working on listing out the unsupported post types to avoid confusion.

from gutenberg-ramp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.