Copied to clipboard

Flag this post as spam?

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


  • Pinal Bhatt 298 posts 390 karma points
    Mar 08, 2011 @ 15:27
    Pinal Bhatt
    0

    Alternate to Repeatable Custom Content

    Hi Community,

     Repeatable Custom Content V2 is an excellent package. Though it still works fine with 4,7RC, but its based on old xml schema and not been updated since 2009.

    Does any body know any other morden alternative to that?

    Thanks & Regards,

    Pinal Bhatt

     

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 08, 2011 @ 15:43
    Lee Kelleher
    0

    Hi Pinal,

    Take a look at the Embedded Content package.

    Cheers, Lee.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 08, 2011 @ 16:14
    Pinal Bhatt
    0

    hey thanks for the information. Embedded conent package looks great, but does it supports Rich Text Editor datatype?

  • Ove Andersen 435 posts 1541 karma points c-trib
    Mar 08, 2011 @ 16:22
    Ove Andersen
    0

    You could also wait for the uComponents v2.1, which will include DataType Grid. It is meant to replace Repeatable Custom Content.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 08, 2011 @ 16:31
    Pinal Bhatt
    0

    Ove, I am eagerly waiting for stable release of uComponents v2.1 since long.

    BTW, will DataType Grid of uComponents v2.1 support Rich Text Editor datatype?

  • Ove Andersen 435 posts 1541 karma points c-trib
    Mar 09, 2011 @ 10:21
    Ove Andersen
    0

    It is on the "Not tested" list. But I will try to make it happen.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 09, 2011 @ 15:06
    Pinal Bhatt
    0

    So can we expect it in stable release of uComponents 2.1? Though end of march is too far.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 15, 2011 @ 16:11
    Pinal Bhatt
    0

    Got two alternates : Embedded Content and DataType Grid of uComponents v2.1 but as of time none of them support Rich Text Editor datatype.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 15, 2011 @ 16:22
    Lee Kelleher
    0

    Hi Pinal,

    Only a suggestion, have you thought of using sub/child-nodes, rather than having a repeatable data-type?

    For me, I only tend to have used Repeatable Custom Content, (or Embedded Content), as an after-thought.  When I hadn't fully thought out how to structure the website.  Not implying that for everyone, just curious why a lot of developers go against using native nodes?

    Cheers, Lee.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 15, 2011 @ 16:29
    Pinal Bhatt
    0

    Lee, i could not get you.

    i am looking for this functionality to create reusable accordion, tabs and other eLearning interactions. Currently I am using Repeatable Custom Content for this. http://blog.pbdesk.com/2011/02/re-usable-jquery-accordion-for-umbraco.html

    It would be nice if you can suggest me something new in light of my this requirement.

    Thanks.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Mar 15, 2011 @ 16:46
    Lee Kelleher
    1

    Hi Pinal,

    I'll try to explain in more detail.

    Instead of using the Repeatable Custom Content, you would create a new document-type, (say called "AccordionItem"), give it the properties that you require (e.g. "AccordionHeader" Simple Editor and "AccordionContent" RTE).

    Remember to allow the new "AccordionItem" document-type under "Structure" tab of your content page document-type.

    Then create as many new accordion item (child-nodes) as you like.

    You could use an XSLT macro like this...

    <xsl:template match="/">
        <xsl:if test="$currentPage/AccordionItem">
            <div id="eLOPageAccordianDiv">
                <xsl:apply-templates select="$currentPage/AccordionItem">
                    <xsl:sort select="@sortOrder" order="ascending" />
                </xsl:apply-templates>
            </div>
            <script type="text/javascript">
                <![CDATA[
    $(function() {
        $('#eLOPageAccordianDiv').accordion( { active: false, autoHeight: false } );
    });
    ]]>
            </script>
        </xsl:if>
    </xsl:template>
    
    <xsl:template match="AccordionItem">
        <h3>
            <a href="#">
                <xsl:value-of select="AccordionHeader" disable-output-escaping="yes" />
            </a>
        </h3>
        <div>
            <xsl:value-of select="AccordionContent" disable-output-escaping="yes" />
        </div>
    </xsl:template>

    Cheers, Lee.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 15, 2011 @ 16:55
    Pinal Bhatt
    0

    Intresting..... thanks a lot Lee. Will definately try out this solution. And update you after that.

  • Pinal Bhatt 298 posts 390 karma points
    Mar 15, 2011 @ 20:01
    Pinal Bhatt
    0

    Hey Lee... that works... that was really nice solution. And Even now i can use Razor for that very easily.

    Thanks a lot once again.

Please Sign in or register to post replies

Write your reply to:

Draft