1

我正在尝试制定 EE,以及如何最好地构建我的站点结构。来自 saveur.com 的灵感——食谱菜单。

本节的迷你站点地图如下。

Homepage

    Recipes - landing page

        Course - post category  - landing page
            Breakfast - post subcategories  - landing page
            Brunch
            Lunch
            Mains
            Deserts
            Appetizers

        Ingredients
            Eggs
            Chicken
            Avacado
            Fish

谁能向我解释一下表达式引擎频道/类别/条目的基本概念,因为我认为我遗漏了一些东西。采取以下网址

/recipes/course/breakfast/scrambled-eggs

食谱是频道,保存了频道 URL。404 页面。

课程和早餐都是类别 - 登陆页面永远不会发布内容,但会列出来自其子页面的内容索引。两个段都返回 404。即使保存了类别 URL

唯一有效的部分是条目本身 - 炒鸡蛋。

如果有人能对此有所了解,我将非常感激。

4

1 回答 1

0
  1. I'd say: Create a Recipes Channel Fields Group with ingredients as a grid.
  2. Create the Course Category Group and add: Breakfast Brunch Lunch Mains Deserts Appetizers to it.
  3. Create a Rescipes Channel and assign to it both the Recipes Channel Fields Group and the Courses Category Group.
  4. Create a Recipes Template group and you simply use the code below to list all your Menu items

    {exp:channel:entries channe="Recipes"} {title} {ingredients} {ingredient} {/ingredients} {/exp:channel:entries}

You can also use this link structure (/Recipes/Breakfast/) and EE will dynamically return all the entries from the breakfast course

于 2014-07-22T18:04:10.087 回答