portlets内容在网页Kademi平台找不到位置

portlets content can't find the place on webpage Kademi platform

我的仪表板使用了一些 portlet,我想编辑它们以便在 Kademi 平台上创建我自己的风格。

你能告诉我如何找到它们和 edit/create 新的。 例如这个 portlet :

#portlets("dashboardPrimary")

谢谢。

dashboardPrimary portlet 被多个应用程序使用。 以下是使用它的内置 kademi 应用程序列表:

  • 奖励商店应用程序: /theme/apps/rewardstore/dashboardCategories。html
  • 我的文件应用程序: /theme/apps/myfiles/filesPortlet.html
  • 博客应用程序: /theme/apps/blogs/dashboardBlogs.html
  • 学习应用: /theme/apps/learner/dashboardModules.html
  • 代金券应用程序:
    • 如果救赎者: /theme/apps/vouchers/redeemerPortlet.html
    • 如果主管: /theme/apps/vouchers/supervisorPortlet.html

Kademi 的文档站点上有一个关于在 kademi 中进行模板化的很好的教程: http://docs.kademi.co/programs/dev/d1/d11/p1.html

希望对您有所帮助:-)

要编辑 portlet,您只需覆盖生成它的模板即可。例如,仪表板警报应用程序使用此模板将当前警报呈现到 "beforeDashboardPrimary" portlet 部分:

https://github.com/Kademi/kademi-dev/blob/master/src/main/webapp/templates/apps/alerts/dashboardAlerts.html

#foreach($msg in $alerts)
<div class="dashboard-alert alert alert-${msg.type}" >
    #if( $msg.id )    
      <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
      <a class="hide msg" href="$msg.href">Ack</a>
    #end
    $msg.body
</div>
#end

因此,要更改仪表板警报消息的布局,您可以在以下位置创建自己的模板: /theme/apps/alerts/dashboardAlerts.html