问题标签 [zen]

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 投票
1 回答
877 浏览

php - 注册后重定向到页面社交引擎

嗨,有人可以告诉我如何只重定向一种类型的个人资料:

在我的网站上,我得到了两个。教师和学生我想在注册到自定义页面后重定向教师个人资料类型。

先谢谢了。

我得到了一个 Widget 可以帮助定制它!谢谢

http://www.integration4us.com/se-modsplugins/#aftersignupredirect

索引.TPL

清单.PHP

0 投票
1 回答
347 浏览

javascript - 无法获得用于 Drupal 7.x-5.x 主题的移动菜单的 JavaScript 工作

我正在尝试在 Drupal 中添加一个 JavaScript,用于 Zen 7.x-5.x 主题的移动导航。我要添加的 JavaScript 可以在http://codepen.io/micahgodbolt/pen/czwer上找到

我知道我需要使用此处描述的 JavaScript:https ://stackoverflow.com/a/14526812

但是作为 JavaScript 新手,我无法让它工作。我最近的尝试在下面的第 18 行给出了“未定义不是函数”(其中声明了 adjustMenu 变量):

我非常感谢任何帮助,因为默认情况下 Zen 7.x-5.x 主题中没有移动导航,并且添加不是为 Drupal 编写的 JavaScript 也不是很容易。

0 投票
1 回答
240 浏览

css - 在 drupal 主题 Zen 中 main_menu 变量始终为空

我是新手drupal theming,正在尝试将带有基本主题的menufor编辑为. 但是当我尝试添加and时,我发现它没有改变。后来当我进入我的子主题目录时,它显示的是空结果!但同样显示主题中的主菜单数组!如何在我的主题中创建 main_menu 变量?sub themeZenclassdivmain menuprint_r($main_menu)page.tpl.phpprint_r($main_menu)Bartikpage.tpl.php

0 投票
1 回答
134 浏览

html - 页脚不“总是”粘在底部

我正在处理的这个网页的页脚在大多数页面上都粘在底部,除非内容大于“应该”。

错误页面是:* 好的页面是:*

我尝试了多种将页脚粘贴在底部的方法,但结果都不同。

这是 Drupal 7.x 中的 Zen starterkit-template。

0 投票
1 回答
276 浏览

css - CSS :hover on mobile 不适用于 Drupal 7 / Zen 站点

我正在 Drupal 7 中构建一个基于 Zen 7.x-5.x 的响应式主题的站点。我已经根据此处的说明使用媒体查询成功地设置了小屏幕菜单的样式:

说明:http ://webdesignerwall.com/tutorials/css-responsive-navigation-menu

演示:http ://webdesignerwall.com/demo/responsive-menu/

我现在唯一的问题是在演示中适用于该站点的 ul:hover{} 在我的 Drupal 站点上不起作用。当我通过移动设备访问该网站时,点击菜单确实会展开它,但它也会立即选择第一项。

我有一种感觉,这是因为他们使用标签来封闭他们的而不是 ,但我不确定我是否可以在主题中更改它。

我该如何处理?最好不使用 javascript,但如果反馈绝大多数是“使用 javascript”,我很乐意倾听。

0 投票
2 回答
671 浏览

drupal - 尝试与 zen 网格一起使用时,断点(无查询)向“&”抱怨

我尝试使用断点替换Zen 7.5.4 Drupal 基本主题的子主题的_responsive.scss (参见第 155 行)中的媒体查询:

在此之前,我安装了 config.rb 中所需的断点,在 _init.scss 中包含并定义了我的断点。

一个更简单的任务可以完美地工作(因此系统可以正常工作)但是提到的代码会产生以下错误:

我试图在zen-grids的代码中找到'&',但没有找到。我错了什么?

0 投票
2 回答
209 浏览

drupal - 尝试在 Bitnami Drupal 中加载 Zen 主题

我想在 Bitnami Drupal 中使用 Zen 主题,但是当我将包解压到 drupal/htdocs/theme 文件夹中时,我仍然看不到 Appearances 下列出的主题。有什么建议么?

谢谢!

0 投票
2 回答
295 浏览

visual-studio-code - Visual Studio Code 的 Zen 编码 HTML 注释

在 Visual Studio Code 中,有没有办法插入 HTML 注释,比如

就像您可以通过执行以下操作插入带有“foo”类的 div 标签一样:

这导致

0 投票
0 回答
109 浏览

css - IE7 - 浮动布局 div 以负的相对边距堆叠在彼此之上

我正在尝试使用 Zen Grids 来避免像我一样花费数小时与我的布局作斗争。除了简单之外,我希望从中获得的主要优势是避免了大多数浏览器中的复合子像素舍入问题(通过浮动和负边距来定位元素而不是依赖于前面的列)。

但是,在 IE7 中,我无法让布局正常运行。我有 IE7 旧版支持,并且 boxsizing.htc 工作正常。我制作的测试页由页眉、两个侧边栏、一个内容区域和一个页脚组成。当像 Zen Grids 那样使用浮动和负边距定位元素时,我最终会将所有元素堆叠在同一个物理空间中,如下所示。使用 Zen Grids 会产生完全相同的行为。这只发生在 IE7 上(我不关心 IE6)。

我尝试在不同的元素上设置 haslayout 没有成功,我找不到相同问题的示例来挽救我的生命。

布局折叠屏幕截图。

我在这里设置了一个 jsfiddle 示例: jsfiddle

这是html:

和CSS:

0 投票
1 回答
457 浏览

php - Drupal Zen subtheme, content added to header falling below header area

I am working with Drupal 7 in a Zen 7.x-5.4 subtheme. I am attempting to add a primary navigation bar inside the header/banner area, to the right of the logo along the bottom.

I am not using the 'navigation' region provided as that sits below the header. Instead, I have added a menu block and placed it in the 'header' reagion. Unfortunately, it appears well below the header and logo.

Here is the pertinent html that is output:

The menu that isn't where I want it lies in the region-header class. Any time I add a block to 'header' in the zen interface, it ends up in that class and appears below the header, not in it. The secondary menu, which is in the header by default, is fine and exactly where it should be. There is no css currently defined for region-header. header is 120px in height and has plenty of room for what I want to do. page.tpl.php offers little more than "print render($page['header']);" so I don't appear to have any control there.

I have 2 questions:

How can I get this menu up into the header where I want it?

How can I get it to hide the 'Primary Nav' title on the menu block? The title is required when creating a menu block and there does not appear to be a method for making it invisible.

Please let me know if there is any more specific information needed to answer these questions.

And, yes, I know similar questions have been asked, but they seem to apply to other versions of Zen and none I've found have been at all helpful.