Coder Social home page Coder Social logo

taxonomy's Introduction

Taxonomy module

Simple module that help you to manage your taxonomy (category)

Installation

Module Download

Using AsgardCMS's module download command:

php artisan asgard:download:module daothanh/taxonomy --migrations

This will download the module, run its migrations.

Composer

composer require daothanh/taxonomy
php artisan module:migrate Taxonomy

Add Routes

Go to reosources/assets/js/app.js

  • Import Routes: import TaxonomyRoutes from '../../../Modules/Taxonomy/Assets/js/TaxonomyRoutes';
  • Add TaxonomyRoutes to router: ...TaxonomyRoutes,
  • Build webpack by npm run dev

Add the category to form

To show the category box in your form . You must use the TermsBox (a vuejs component) or taxonomyChooseTerms directive (with blade)

TermsBox.vue

Example for page form:

<template>
<TermsBox vocabularyId="1" entity="Modules\Page\Entities\Page"/>
</template>
<script>
import TermsBox from '../../../../Taxonomy/Assets/js/components/TermsBox';`
export default {
        components: {TermsBox}
}
</script>

taxonomy's People

Stargazers

tickz avatar

Watchers

Thanh avatar

taxonomy's Issues

Wrong package name

It can't be installed because name is not "taxonomy" but "asgard-taxonomy" :-)

Wrong composer package name

On README.MD your package's name is daothanh/asgard-taxonomy.
But your actual composer package's name is daothanh/taxonomy.
So it needs some fix...

Module Folder Name Miss-match

After run the composer cmd, It creates the "AsgardTaxonomy" folder on Module folder. But when the migration run, It search for the "Taxonomy" folder on your module folder. So I think, You have to fix the name with only "Taxonomy"

taxonomy->terms not show up

hi i installed your package through composer.

composer require daothanh/taxonomy
php artisan module:migrate Taxonomy
and added the lines to reosources/assets/js/app.js

import TaxonomyRoutes from '../../../Modules/Taxonomy/Assets/js/TaxonomyRoutes';: ...TaxonomyRoutes,

and build the webpack by npm run dev.

i can see the taxonomy vocabulary in the admin and add and delete that. but i don't see the terms. anywhere (i set the rights correctly in th admin.)

when i try to go to terms by the link en/backend/taxonomy/terms i get

Modules \ Core \ Foundation \ Asset \ AssetNotFoundException
No message

please advice.
i have a fresh install of asgard cms 3.6.1 and other nmodules like the blogmodule works fine.

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.