Copied to clipboard

Flag this post as spam?

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


  • Adrian Alexa 50 posts 100 karma points
    Jan 13, 2012 @ 14:55
    Adrian Alexa
    0

    Ho do you usually create templates for your website?

    Hi there,

    this might be a really easy question for some, however I have a BIG problem with umbraco.

    Scenario: Have a presentation website that has to be in 2 languages.

    I have defined 2 templates. 

    So when defining content pages I want to insert all content from dictionaries. As I can not insert a dictionary item in a content page I had to create a macro file that will render text for a dictionary item. Hoever it is very hard like this.

    I would like somehow to have content as it is when define template because there I can access direct the dictionary. 

    So what is the workflow?

     

  • Sharon 16 posts 37 karma points
    Jan 13, 2012 @ 16:09
    Sharon
    0

    Why would you need to access the dictionary from the content? Don't you have a separate content tree for each language?

  • Adrian Alexa 50 posts 100 karma points
    Jan 15, 2012 @ 20:57
    Adrian Alexa
    0

    I do have separate content tree, however I would to have only one template with its pages so all content would be saved in dictonary, so I can manage easier content.

  • Markus Johansson 1945 posts 5899 karma points MVP 2x c-trib
    Jan 15, 2012 @ 21:34
    Markus Johansson
    0

    Woulden't it be possible to use inline XSLT?

     

    <umbraco:Item runat="server" field="pageName" xslt="umbraco.library:GetDictionaryItem('testa')" xsltDisableEscaping="true"/>

  • Adrian Alexa 50 posts 100 karma points
    Jan 16, 2012 @ 07:37
    Adrian Alexa
    0

    oups...it does not render anything

  • Markus Johansson 1945 posts 5899 karma points MVP 2x c-trib
    Jan 16, 2012 @ 10:42
    Markus Johansson
    0

    Did you change the Key-value to something in your dicinary? I haven't tested it but it should work.

  • 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