example/src/sqwl/cms/Content.scala
changeset 7 50a354e5bda4
parent 4 1a1347e8c5be
child 9 7d5ed4c927ce
equal deleted inserted replaced
6:ba89bccede7e 7:50a354e5bda4
    44   val values = findValues
    44   val values = findValues
    45   case object A1 extends Article("Article 1", Some(Cat1), Seq())
    45   case object A1 extends Article("Article 1", Some(Cat1), Seq())
    46 }
    46 }
    47 
    47 
    48 object Content extends iContent {
    48 object Content extends iContent {
       
    49   def appTitle: String = "Kvalita pracovního života - studie"
       
    50   def appTitleShort: String = "KPŽ - studie"
       
    51   def icon = ("icon.png", Paths.get("example/content/public/images/icon.png"))
       
    52   def publicAssets: Path = Paths.get("example/content/public")
       
    53   def styleSheet = ("site.css", Paths.get("example/content/public/css/site.css"))
    49   def articlesByTag(t: iTag): Seq[iArticle] = Seq()
    54   def articlesByTag(t: iTag): Seq[iArticle] = Seq()
    50   def articlesByCategory(c: iCategory): Seq[iArticle] = Seq()
    55   def articlesByCategory(c: iCategory): Seq[iArticle] = Seq()
    51   def tags: Seq[iTag] = Seq()
    56   def tags: Seq[iTag] = Seq()
    52   def categories: Seq[iCategory] = Category.values
    57   def categories: Seq[iCategory] = Category.values
    53   def articleByPath(path: String): Option[iArticle] = Article.withNameOption(path)
    58   def articleByPath(path: String): Option[iArticle] = Article.withNameOption(path)