Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Mikael Mørup 297 posts 326 karma points
    Jul 30, 2009 @ 10:38
    Mikael Mørup
    0

    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.

     

  • Richard Soeteman 4054 posts 12927 karma points MVP 3x
    Jul 30, 2009 @ 11:58
    Richard Soeteman
    1

    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:

    <add key="umbracoReservedUrls" value="/config/splashes/booting.aspx,/install/default.aspx,/config/splashes/noNodes.aspx, /test/twocols.aspx" />
    <add key="umbracoReservedPaths" value="/umbraco,/install/,/test/" />

    Hope this helps you

  • Mikael Mørup 297 posts 326 karma points
    Jul 30, 2009 @ 13:44
    Mikael Mørup
    0

    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 ??

     

  • Richard Soeteman 4054 posts 12927 karma points MVP 3x
    Jul 30, 2009 @ 13:59
    Richard Soeteman
    100

    It Should work now. Absolutly sure the filename and directory are okay?

  • Mikael Mørup 297 posts 326 karma points
    Jul 30, 2009 @ 21:03
    Mikael Mørup
    0

    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

  • 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.

Please Sign in or register to post replies