Copied to clipboard

Flag this post as spam?

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


  • john 3 posts 22 karma points
    Apr 18, 2013 @ 08:43
    john
    0

    Shortcodes on Umbraco v6

    Hello,
    Shortcodes seems cool
    BUT, it does not work on:
    Umbraco Version: Umbraco v6.0.3 (Assembly version: 1.0.4836.20227)
    asp.net version: 4.0
    Windows 7
    IIS Version: 7
    Stacktrace: N/A
    I just get the same [Shortcodes:Today] format on HTML output
    Note 1: Accessing the restExtension through browser URL is working normally but not from Templates/RTEs.
    Note 2: The other format [#bodyText] is working though
    Any clue?
  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Apr 18, 2013 @ 11:31
    Lee Kelleher
    0

    Hi John,

    Did you try the shortcode with brackets?

    [Shortcodes:Today()]

    Thanks, Lee.

  • john 3 posts 22 karma points
    Apr 18, 2013 @ 14:30
    john
    0

    Yes Sir,

    I tried it, it is not working

    According to Regex Pal, the Regex you put (in the source code) for matching against does not match

    [Shortcodes:Today()]

    It matches

    [Shortcodes:Today(anyting)]

    though.

    What I want to do is to be able to call Dictionary Items from within the RTE (and also Templates), can Shortcodes do that? and if no, do you know any other method?

    Thanks.

     

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Apr 18, 2013 @ 14:37
    Lee Kelleher
    0

    Thanks for verifying the RegEx - much appreciated. (I'm no expert with RegEx)

    For dictionary items, it doesn't do them out-the-box.  You could write a RestExtension to handle it... or if you are comfortable with the source-code, please feel free to extend it. (I'll happily accept any patches).

    If you were to go down the route of native support, the shortcode would need a prefix. Maybe an exclaimation/bang?

    [!DictionaryItemName]

    Cheers, Lee.

  • john 3 posts 22 karma points
    Apr 21, 2013 @ 08:07
    john
    0

    Hello,

    After I checked the code and installed/un-installed the package many times after modifiying the source code

    I know now why the Shortcodes are not shown, the reason is that restExtension.isAllowed is false

    Can you help me with extended info about this property? What does it do? Who control it?

    and how can I make it true

    Thanks, John.

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Apr 22, 2013 @ 10:16
    Lee Kelleher
    0

    Not sure about the `isAllowed` property.  Does the Rest extension work ok via /Base?

Please Sign in or register to post replies

Write your reply to:

Draft