即使它的起源stickmanlabs.com似乎已关闭,光窗仍然是一个流行的javascript灯箱用于各种目的。特别是TYPO3社区似乎喜欢它,感谢它extension that neatly embeds。但是,遗憾的是,此扩展程序使用标记属性params
,该属性实际上不是属性。它无效?我该如何解决这个问题?
答案 0 :(得分:1)
如果我也改变1843年左右的线路,这对我有用:
来自:
var parameterString = Form.serialize(this._getParameter('lightwindow_form', element.getAttribute('params')));
到:
var parameterString = Form.serialize(this._getParameter('lightwindow_form', element.getAttribute('rev')));
答案 1 :(得分:0)
这可能是一个黑客,但它将lightwindow验证为HTML Transitional。
只需使用难以使用的rev
tag将lightwindow参数传输到.js。
例如:
<a href="somelink.html" rev="lightwindow_type=external,lightwindow_width=870,
lightwindow_height=650,lightwindow_show_images=2">
然后只需编辑javascript文件(在TYPO3中,它位于@:typo3conf / ext / wt_lightwindow / files / js / lightwindow.js),如下所示:
_setupWindowElements : function(link) {
this.element = link;
this.element.title = null ? '' : link.getAttribute('title');
this.element.author = null ? '' : link.getAttribute('author');
this.element.caption = null ? '' : link.getAttribute('caption');
this.element.rel = null ? '' : link.getAttribute('rel');
this.element.params = null ? '' : link.getAttribute('rev');
(应该是当前版本的550行左右)。对于params,只需cmd + f。