Внедряю кнопку панели инструментов ленты. При нажатии кнопки в зависимости от имени схемы мне нужно создать всплывающее окно с соответствующим URL-адресом (страница Aspx). Раньше я работал только с одной страницей aspx, и мне это удалось, я создал всплывающий файл сценария java с тем же именем, что и страница aspx, и настроил его в файле конфигурации. Но в случае нескольких страниц aspx, даже если я создаю несколько всплывающих файлов javascript. Это не вызывает уважаемый файл javascript.
Как сопоставить всплывающие файлы java-скриптов со страницами aspx в случае нескольких страниц aspx?
PFB примеры кода.
Button java script file code fragment:
if (some condition) {
//Creating the url
var url = "Editors/RTFExtension/Popups/ButtonReferencePopup_2.aspx?schemaId='" + schemaId + "'";
var popup = $popup.create(url, "toolbar=no,width=500,height=200,resizable=yes,scrollbars=yes", null);
}
else{
//Creating the url
var url = "Editors/RTFExtension/Popups/ButtonReferencePopup.aspx?schemaId='" + schemaId + "'";
var popup = $popup.create(url, "toolbar=no,width=500,height=200,resizable=yes,scrollbars=yes", null);
}
Config file code fragment:
<cfg:group name="RTFExtension.ButtonReference">
<cfg:fileset>
<cfg:file type="script">/Popups/ButtonReferencePopup.js</cfg:file>
<cfg:file type="script">/Popups/ButtonReferencePopup_2.js</cfg:file>
<cfg:file type="style">/Themes/ButtonReference.css</cfg:file>
</cfg:fileset>
<cfg:dependencies>
<cfg:dependency>Tridion.Web.UI.Controls</cfg:dependency>
<cfg:dependency>Tridion.Web.UI.Editors.CME</cfg:dependency>
<cfg:dependency>Tridion.Web.UI.Editors.CME.commands</cfg:dependency>
</cfg:dependencies>
</cfg:group>
Пожалуйста, помогите мне в этом вопросе. Заранее спасибо. Приветствуется ранний ответ.
custom url
s. - person Alvin Reyes   schedule 13.08.2012