简体   繁体   English

Adobe Contribute/Dreamweaver 中的查询字符串差异

[英]Query String discrepancy in Adobe Contribute/Dreamweaver

/ ** Update * ** / This seems to be a query string problem, as I didn't realize that a PHP error was being thrown in Contribute 3. So my question now is, why does this line work in Contribute 4, but not in 3: #include virtual="includes/scripts/name.php?eid=@@(eid)@@" / ** Update * ** / 这似乎是一个查询字符串问题,因为我没有意识到 Contribute 3 中抛出了 PHP 错误。所以我现在的问题是,为什么这条线在 Contribute 4 中有效,但是不在 3 中: #include virtual="includes/scripts/name.php?eid=@@(eid)@@"

/ * ** * **** / / * ** * **** /

Hello everyone, I have a couple of different versions of Contribute in my organization.大家好,我的组织中有几个不同版本的 Contribute。 We built a template that works for the CS4 version, but has a peculiar error in the CS3 version, and I was wondering if a Contribute expert might provide some guidance.我们构建了一个适用于 CS4 版本的模板,但在 CS3 版本中有一个特殊错误,我想知道 Contribute 专家是否可以提供一些指导。

We built the template in Dreamweaver, with the standard TemplateParam statements at the top.我们在 Dreamweaver 中构建了模板,顶部带有标准 TemplateParam 语句。 All of them are just editable regions except for one, the ID field:所有这些都只是可编辑的区域,除了一个,ID 字段:

TemplateParam name="eid" type="text" content="your eid" TemplateParam name="eid" type="text" content="你的 eid"

Values based on that ID are fetched and formatted with a PHP script in the template body:使用模板正文中的 PHP 脚本提取和格式化基于该 ID 的值:

#include virtual="includes/scripts/name.php?eid=@@(eid)@@" #include virtual="includes/scripts/name.php?eid=@@(eid)@@"

The problem is that if we attempt to edit any template properties in CS3, such as turning them on or off, it will disable our PHP script completely (all fields come back empty), and we have to abandon the changes.问题是,如果我们尝试在 CS3 中编辑任何模板属性,例如打开或关闭它们,它将完全禁用我们的 PHP 脚本(所有字段都返回为空),我们必须放弃更改。 Not so in Contribute 4, which works as expected.在 Contribute 4 中并非如此,它按预期工作。

This is a pretty specific inquiry, so any assistance would be appreciated.这是一个非常具体的查询,因此将不胜感激。

The answer seems to be to simply replace the double quotes in the includes path with single quotes.答案似乎是简单地将包含路径中的双引号替换为单引号。 Works correctly for both versions now.现在两个版本都可以正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM