Project

General

Profile

Actions

Feature #60

open

Feature #56: CATEGORY POST PRODUCT

[api] xây dựng api cho lấy breadcrum, bài category post, blog post

Added by Redmine Admin 17 days ago. Updated 13 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Start date:
01/30/2026
Due date:
% Done:

0%

Estimated time:

Description

1. Cách lấy breadcrum cho bài post
Dựa vào column nameparent_id của table hans_spa_categories

1.a Cách lấy tên breadcrum **
Đệ quy để lấy ra được cha - con - ....
Ex: Trang chủ - massage - body massage - body aroma massage

1.b Cách lấy link cho breadcrum **
Mỗi phần của breadcrum khi click vào sẽ có 1 url tương ứng
Dựa column full_path của table hans_spa_category_urls điều kiện là is_primary = 1
Ex:
Trang chủ -> về trang home (https://hans-spa.com)
message -> đến trang message (/massage)
body massage -> đến trang body massage (/massage/body-massage)
body aroma massage -> đến trang body aroma massage (/aroma-massage)

Actions

Also available in: Atom PDF