问题标签 [paragraphs]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
483 浏览

drupal - 在节点预保存之前保存的 Drupal 7 段落

我创建了一个自定义节点,其中包含作为项目列表的日志记录字段和段落字段。在保存节点之前,我要根据段落中自上次更新以来已更改的项目添加到日志记录字段。在我的节点的 hook_presave 中,段落已经更新并且等于节点->原始中的段落。

关于我在哪里可以获得段落字段的预保存版本的任何帮助?

谢谢

0 投票
1 回答
1227 浏览

drupal-8 - Drupal 8:引用段落中的视图创建的块(作为字段)

我想在段落中添加一个字段作为对 bloc 的引用。该块是使用 Views 模块创建的。

0 投票
1 回答
131 浏览

drupal - Performance issues with more than 30 fields on a drupal 8 content type?

layout

I have a content type in a drupal 8 site with the layout as shown in the image, I have used css grid for the layout and every section( f1, f2, f3 ....) is a field which needs to have paragraph bundles in them (pb1, pb2, .......).

This is just one type of content type, i have another in which the amount of fields go up to 40+, not to forget the paragraph bundles in them which are a group of 3-4 paragraphs each.

I am concerned about the performance of the site now and later in time when the site grows, its a magazine site and content needs to be written everyday.

Any help appreciated, thanks :)

0 投票
2 回答
858 浏览

drupal - 如何从 php 访问段落模块中的图像文件?

我似乎无法访问段落模块中的图像字段。

我可以访问其他字段值,但不能访问图像字段。

field_logo_image中没有任何内容我做了谷歌搜索,但仍然无法找到解决方案。

我确实检查了图像字段的唯一名称,它是正确的。

我的问题是,您如何从自定义模块访问 Drupal 8 段落模块中的图像字段?

0 投票
1 回答
1245 浏览

javascript - 如何迭代谷歌文档中的所有元素?

我正在尝试遍历文档中的每个元素,获取每个段落的开始/结束位置。但它保持返回-1。任何想法我做错了什么?

0 投票
1 回答
203 浏览

angular - Angular组件如何嵌套无序列表
    段内

    ?

当 Angular 组件的模板中存在以下标记时,Angular 会引发错误。


如何实现这种嵌套。?