Giter Site home page Giter Site logo

addmany's Introduction

Taco

WordPress custom post types that feel like CRUD models

See the wiki for complete documentation.

Setup

  1. Add Taco and Util to composer.json
{
  "require": {
    "tacowordpress/tacowordpress": "dev-master"
  }
}
  1. Include Composer’s autoload in wp-config.php
// Composer autoloader
// Add to the top of wp-config.php
require_once realpath(__DIR__.'/../vendor/autoload.php');
  1. Initialize Taco in functions.php
// Initialize Taco
\Taco\Loader::init();

Usage

Once you have Taco setup, you can start creating your custom post types. Follow the getting started instructions for a simple example.

PHPUnit tests

If you want to contribute, you should create corresponding PHPUnit tests for your functionality or fix. You will need to create a database and configure db-config.php with your database credentials. Then pull down the latest Composer updates which includes PHPUnit, and run the PHPUnit tests:

$ composer update
$ cd tests
$ ../vendor/bin/phpunit

If you want to login to the WordPress admin UI for the test suite, you need to:

  1. Create a hosts entry:

     127.0.0.1 taco-phpunit-test.vera
    
  2. Create an Apache vhosts entry, modifying the path as necessary. If you are having trouble, make sure that your vhost file is being loaded by Apache.

     <VirtualHost *:80>
       DocumentRoot "/path/to/taco/tests/lib/wordpress"
       ServerName taco-phpunit-test.vera
       <Directory /path/to/taco/tests/lib/wordpress>
         AllowOverride All
         Order allow,deny
         Allow from all
       </Directory>
     </VirtualHost>
    
  3. Visit http://taco-phpunit-test.vera/wp-admin/

     u: admin
     p: admin
    

Changelog

v1.0

  • Updating to work with PHP 7

v0.9

  • Tagging last version of Taco to run on PHP 5

addmany's People

Contributors

jasand-pereza avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tacowordpress2

addmany's Issues

addmany wysiwyg option missing "Add Media" button

Hi Jasand!

Curious, to know your thoughts, on the "Add Media" button and the addmany functionality for wysiwygs... While adding an addmany block with preset fields, making a field a wysiwyg works but the "Add Media" button is missing. See screenshot!

addmany-wysiwyg-add-media-missing

Perhaps there was a reason for this? Digging into it and trying to modify the jsx files that are in the project that seem to have a hand in this functionality but running into some webpack issues with uglify will continue to troubleshoot but wanted to reach out to see if you had any insight on what we could modify on this front to ensure the addmany wysiwyg includes the "Add Media" button? Or just insight on why this was left off.

THANK YOU! Wishing you well. Cheers,

AddMany babel-polyfill incompatible with latest Yoast updates

I updated Yoast and now AddMany has stopped working due to "Uncaught Error: only one instance of babel-polyfill is allowed" on addmany.min.js

I'm trying to figure out maybe how AddMany can check to see if babel-polyfill is already enqueued in the scripts but because it's being loaded with js and webpack, it's unclear to me how to do this.

Any ideas? THANKS!

input type options

Does AddMany support input 'type' => 'link' ? I am testing now and it doesn't seem to be working but I'll check the docs and see.

Thanks!

'uses_ordering' => true does not check to see if post has been deleted, drafted, private et al

Greetings!

Love the addmany plugin!!!!!

Wanted to point out a bug with the 'uses_ordering' => true option with the ordering only example:

'videos' => \Taco\AddMany\Factory::createAndGetWithAddBySearch('GalleryItem', null, [
'uses_ordering' => true

in that, if you use ordering only, the list does not update when posts from "GalleryItem" have been deleted, drafted, privatized et al. it still pulls in posts that have been deleted and due to the ordering only functionality, the "X" remove option does not exist.

I wonder if there's a way to update the plugin to check if posts are public first, that or give the option to remove posts if necessary.

wysiwyg a little different than the normal one

Howdy!!

Noticing the WYSIWYG for AddMany is a little different than the normal WYSIWYG, are there any limitations to using the latest WYSIWYG in WordPress for AddMany?

The issue is I was hoping to be able to create inline links, unordered/ordered lists, and possibly, be able to use the AddMedia functionality in the WYSIWYG for AddMany.

Let me know your thoughts! No big deal though, at least for now :)

Thank you!

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.