共 66 篇文章
显示摘要每页显示  条
Introduction to PHP for theming | drupal.org.If for some reason you can''t (or won''t) use the Theme Developer module, it is possible to use a PHP function to see all of the variables that have been passed to your template file.php print $title;php print $node_url;There are many other ways to manipulat...
I don’t mind Eclipse’s default theme, but some users find this a “must-have” plugin. Note: If you are using the Aptana Studio plugin, the Eclipse Color Theme plugin won’t be used in Aptana-provided editors; Aptana has its own appearance settings. Settings for the color theme are found in the preferences panel und...
Configuring Eclipse | drupal.org.Note that you need to make changes for each of the packages and plug-ins. (If you are not sure about what packages or plug-ins you have in your Eclipse IDE, use the Eclipse help system to find out how to list everything you have installed.)Contents:This is an Eclipse based IDE (or Ecli...
Devel模块使用技巧。其实devel模块还提供了一个调试方法,就是db_queryd函数,就是把我们常用的db_query后面加一个d,在执行效果不变的前提下,还会print出执行的sql.这个方法比上面的方法简洁了一些,但问题是在页面上print往往不是个好主意,而且你要调试的sql很有可能是被某个第三方API在执行,比如$view->query(),所以我们还要想想有没...
block.tpl.php模板文件可用的标准变量 | DrupalUser.net.下表是block.tpl.php模板文件可用的标准变量。区块ID,在模块范围内唯一。block-[module]:生成区块的模块;比如,user模块负责处理默认的用户导航区块,在这种情况下class即为"block-user"(数组)包含由模块提供的额外的输出的数组,其将被在主标题标签之前输出。和$block_i...
field.tpl.php模板文件可用的标准变量 | DrupalUser.net变量内容描述$items字段值的数组;比如字段名为"field_description",则为field-name-field-description。field-type-[field_type]:当前字段类型;
node.tpl.php模板文件可用的标准变量 | DrupalUser.net.下表是node.tpl.php模板文件可用的标准变量。(数组)需显示节点的所有元素的数组;来源于user-picture.tpl.php的节点作者的头像。node-[type]:当前节点类型。比如,节点类型为“Blog entry”,即为"node-blog"node-teaser:摘要表单的节点。node-preview:预览模式的节点。no...
region.tpl.php模板文件可用的标准变量 | DrupalUser.net变量内容描述$content区域的内容,通常是区块$classes.例如,page_top区域为region-page-top$region主题的.info文件所定义的区域变量的名称$is_admin用户有访问管理页面的权限时为TRUE$is_front区域所在的当前页面是首页时为TRUE$logged_in用户已注册并且已登录时为TRUE.
page.tpl.php模板文件可用的标准变量 | DrupalUser.net.下表是page.tpl.php模板文件中可用的标准变量。(数组)如果主菜单被配置了的话,包含站点主菜单链接的数组。(数组)如果次级菜单被配置了的话,包含站点次级菜单链接的数组。(数组)链接到当前页面之下的子页面的Tab.如果当前页面关联有自动加载的节点,则为节点对象,节点ID即是页面...
html.tpl.php模板文件可用的标准变量。Drupal核心提供了很多标准的变量供我们在模板文件中使用,当然我们也可以增加自己的变量。当前页面的CSS文件数组。为导入CSS文件到页面的必须的Style标签。此变量应该总是在其它动态内容之前输出。Drupal使用page.tpl.php来替换$page.默认的$classes变量包含:html front logged-in one-sidebar sidebar-f...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部