WordPress.org

Ideas

Shortcodes alternative

  1. Giorgos Sarigiannidis
    Inactive

    12345

    I believe that the shortcodes functionality is something like a necessary evil for both developers and users. After reading the "Shortcode Roadmap Draft one" and all the discussion that it followed, I was wondering if we could push aside shortcodes completely in favor of a different way of inserting custom content in posts.

    What I suggest considering is creating a new type of content (named "Content objects", "Content blocks" or whatever). On the image below I made a quick and rough mock-up (not a design proposal, of course - not even a complete wireframe which would cover all possible scenarios) to demonstrate the main idea:
    https://dl.dropboxusercontent.com/u/38634/Various/fireframe.png

    Such an approach could have the following benefits:
    1. End-user wouldn't have to memorize shortcodes and their parameters.
    2. Content objects would be editable in the editor like any other object such as images or galleries, by clicking the pencil icon.
    3. Developers could set what should appear if their plugin is uninstalled (keep the shortcode's content even if it's unformatted, declare some decent plugin-agnostic fallback or remove it completely).
    4. Depending on the object, the user could see the actual content in the editor, the same way that they can see an embeded object or a gallery (even if the formatting isn't the same as the frontend's end result).

    Posted: 3 years ago #
  2. forinnov
    Member

    12345

    Agreed, especially with points (1) and (4)

    Posted: 3 years ago #
  3. rasenmaehertest
    Member

    12345

    Thats a great Idea!

    Posted: 3 years ago #
  4. ibes
    Inactive

    12345

    Sir Trevor is an new approach to WYSIWYG that seems a bit like what you are thinking about:
    http://madebymany.github.io/sir-trevor-js/

    You add content blocks to a page.
    Each content block type has specific ways to configurate.

    An Image has a src, align etc.
    A map would have a center, zoom index etc.
    A content listing would have ...

    Maybe a virtual editor for shortcodes would be the next step - and maybe there are already plugins for that.

    Posted: 3 years ago #
  5. ika007
    Member

    12345

    totally agree on this input

    Posted: 3 years ago #
  6. Baikare Sandeep
    Inactive

    12345

    Yes, that is great idea for shortcodes, so it'll be more easily for end user.

    Posted: 3 years ago #
  7. saftausbeute
    Member

    12345

    Great idea. Shortcodes being editable within the post editor would be extremely helpful and much more user-friendly than how it's being handled at the moment.
    Thank you!

    Posted: 3 years ago #
  8. Bob Foster
    Member

    Cool idea but not for me. Very very sad...

    Posted: 2 years ago #
  9. Great idea, am am looking exactly for this!

    Posted: 2 years ago #
  10. Giorgos Sarigiannidis
    Inactive

    12345

    The original Dropbox link to the image example stopped working - here's the updated one: https://www.dropbox.com/s/ngjrz6mg8oddj5w/fireframe.png?dl=0

    Posted: 2 years ago #

RSS feed for this topic

Reply »

You must log in to post.

  • Rating

    12345
    22 Votes
  • Status

    Good idea! We're working on it

Tags