(I know, i know, but my client want it that way :-) )
So far i have most of it working, the button shows up in the tinyMce toolbar, the dialog pops up and presents the dropdown with the templates i defined in the config file.
But whenever i select a template from the drop down i get this message:
--------------------
Page not found
No umbraco document matches the url 'http://localhost/test/twocols.aspx'
umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "test"]/node [@urlName = "twocols"] | /root/node [@urlName = "twocols"]')
--------------------------
I defined my template in a file called twocols.aspx and put it in a folder under wwwroot called test. I believe that this is my problem. The aspx file is not created with Umbraco.
How can i cretae my templates so Umbraco / tinyMce can find them. I have assigned accessrights to the test folder.
You need to exlude this file (or the whole test folder) in your web.config so Umbraco doesn't pick this file up. Use the setting umbracoReservedUrls for a single url. Or umbracoReservedPaths for a complete folder, examples:
tinyMce template plugin
I am trying to get the tinyMce template plugin to work, following the instruktions here:
http://our.umbraco.org/wiki/how-tos/enabling-the-%27template%27-plugin-for-tinymce
(I know, i know, but my client want it that way :-) )
So far i have most of it working, the button shows up in the tinyMce toolbar, the dialog pops up and presents the dropdown with the templates i defined in the config file.
But whenever i select a template from the drop down i get this message:
--------------------
Page not found
No umbraco document matches the url 'http://localhost/test/twocols.aspx'
umbraco tried this to match it using this xpath query'/root/node/node [@urlName = "test"]/node [@urlName = "twocols"] | /root/node [@urlName = "twocols"]')
--------------------------
I defined my template in a file called twocols.aspx and put it in a folder under wwwroot called test. I believe that this is my problem. The aspx file is not created with Umbraco.
How can i cretae my templates so Umbraco / tinyMce can find them. I have assigned accessrights to the test folder.
Hi,
You need to exlude this file (or the whole test folder) in your web.config so Umbraco doesn't pick this file up. Use the setting umbracoReservedUrls for a single url. Or umbracoReservedPaths for a complete folder, examples:
Hope this helps you
Thanks Richard.
It did change things, now it's not Umbraco trying to open the page, but insted i just get an ordinary 404 error.
I tried using the .aspx .html, and .txt file extensions, but they all result in a 404 error.
I wonder what i'm doing wrong here ??
It Should work now. Absolutly sure the filename and directory are okay?
Yes of course you were right. I had a stupid double fileextension like twocols.txt.aspx.
Fixed that and now it works perfectly.
Thanks a LOT.
Mikael
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.