Code Monkey home page Code Monkey logo

article's Introduction

#栏目文章

说明

  • 该插件依赖dsshop项目,而非通用插件
  • 支持版本:dshop v2.0及以上
  • 已同步版本:dsshop v2.0

功能介绍

  • 支持为栏目和文章添加缩略图
  • 栏目支持无限级分类
  • 栏目如果未设置列表,将可以直接当文章用
  • 前端展示默认展示所有栏目,且不分父子类目
  • 前端展示层级为:栏目列表->文章列表->文章详情或栏目列表->栏目详情
  • 栏目文章已做访问次数记录,用户每访问一次文章详情/栏目详情,记一次

使用说明

一、 下载article最新版

二、 解压article到项目plugin目录下

三、 登录dsshop后台,进入插件列表

四、 在线安装(请保持dsshop的目录结构,如已部署到线上,请在本地测试环境安装,因涉及admin和uni-app,不建议在线安装)

五、 进入api目录执行数据库迁移使用

php artisan migrate

六、进入后台,添加权限

权限名称 API 分组 菜单图标 显示在菜单栏
文章管理 ArticleManage 顶级类目 article
栏目 Column 文章管理->栏目
栏目列表 ColumnList 文章管理->栏目->栏目列表
添加栏目 ColumnCreate 文章管理->栏目->栏目添加
编辑栏目 ColumnEdit 文章管理->栏目->栏目修改
删除栏目 ColumnDestroy 文章管理->栏目->栏目删除
文章 Article 文章管理->文章
文章列表 ArticleList 文章管理->文章->文章列表
添加文章 ArticleCreate 文章管理->文章->文章添加
编辑文章 ArticleEdit 文章管理->文章->文章修改
删除文章 ArticleDestroy 文章管理->文章->章删除

七、 进入后台,为管理员分配权限

八、 插件示例代码,以下仅供参考,请根据自己的业务自行实现

#trade/Dsshop/pages/user/user.vue
<template>
   <list-cell icon="icon-xiaoxi" iconColor="#9789f7" title="帮助中心" @eventClick="navToNoValidation('/pages/article/column')"></list-cell>
</template>
<script>
</script>

如何更新插件

  • 将最新版的插件下载,并替换老的插件,后台可一键升级

如何卸载插件

  • 后台可一键卸载

article's People

Contributors

dspurl avatar incasedo avatar

Watchers

James Cloos avatar

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.