FIWARE Wirecloud:实际使用哪些模板文件? [英] FIWARE Wirecloud: which template files are actually used?

查看:69
本文介绍了FIWARE Wirecloud:实际使用哪些模板文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在自定义Wirecloud安装,以提供我们自己的品牌,文本和标题链接.我们为"defaulttheme"创建了一个子主题,并覆盖了自己的模板,图像和sccs文件以完成我们的自定义.

We are customizing a Wirecloud installation to provide our own branding, text and header links. We have created a subtheme to the 'defaulttheme' and are overlaying our own template, images and sccs files to accomplish our customization.

我们设法更改了页眉图像,着陆页和其他一些内容,但受到以下因素的限制:

We have managed to change the header image, landing page and a few other bits, but are hampered by the following:

  1. 生成的HTML不提供有关它源自哪个模板的线索(我们认为?)
  2. 此处的文档: https://wirecloud.readthedocs.io/en/稳定/开发/平台/主题/ 指定许多模板文件,但不是全部模板.例如,我们找不到定义登录"按钮的位置.
  3. wirecloud javascript似乎在html中插入了随机的html来作为样板内容.例如,屏幕底部显示"Powered by wirecloud"图标. 获取更多组件"按钮随处可见,我们无法禁用它.
  4. 许多生成的元素没有ID,因此很难在sccs文件中禁用或标识它们.例如,获取更多组件"按钮与我们无关,但是到目前为止,我们无法将其删除.
  1. The generated HTML provides no clues as to which template it originated from (we think?)
  2. Documentation here: https://wirecloud.readthedocs.io/en/stable/development/platform/themes/ specifies a number of template files, but not all of the template. For example we cannot find the place where the 'Sign in' button is defined.
  3. The wirecloud javascripts seem to insert random bits of html for what should be boilerplate stuff. For example a 'Powered by wirecloud' icon appears at the bottom of the screen. The 'get more components' button appears out of nowhere and we cannot disable it.
  4. Many of the generated elements do not have an id, so it is difficult to disable or identify them in a sccs file. The 'get more components' button for example is not relevant for us, but we cannot remove it (so far).

有人能看到一个完整的自定义主题吗?还是可以指出使用哪些模板文件/sccs文件进行品牌宣传和整体外观?

Does anyone have a completed custom theme we can look at? Or can someone point out which template files / sccs files are used for branding and overall look-and-feel?

推荐答案

  1. 是的,目前,WireCloud不会打印任何注释,也不会显示任何其他线索来检测从哪个模板生成html.
  2. 某些零件不是使用模板生成的,例如登录"按钮.我建议您在问题跟踪器中为要自定义的每件事创建一个票证找不到解决方法,因此我们将为您提供更好的答案,并在需要时创建模板.
  3. 请记住,必须包含由WireCloud提供支持"才能符合WireCloud许可.另一方面,可以通过编辑

  1. True, currently WireCloud doesn't print any comment not any other clue for detecting from what template the html was generated.
  2. Some parts are not generated using templates, for example, the "Sign in" button. I recommend you to create a ticket in the issue tracker for each thing you want to customise and you don't find how to do it, so we will be able to give you a better answer, and to create a template if needed.
  3. Remember that you have to include a "Powered by WireCloud" to comply with the WireCloud license. In the other hand, the "get more components" button can be removed by editing the wirecloud/workspace/wallet/wallet.html template, by removing the following code:

<s:southcontainer>
    <t:addmore/>
</s:southcontainer>

  • 嗯,这也可以讨论和记录.我们通常不使用id,因为使用某种选择器可以更好地定位这些元素.

  • Well, this can also be discussed and documented. We usually don't use ids because those elements are better located using some kind of selector.

    无论如何,我们正在努力改进有关主题的文档.

    Anyway, we are working to improve the documentation about themes ASAP.

    这篇关于FIWARE Wirecloud:实际使用哪些模板文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆