Yes, you can definitely do that - How? - depends on how your content is structured, but it's all HTML, CSS and JavaScript in the frontend.
Great thing about Umbraco is that you can have the contents of these "dropdowns" be on separate documents in the backend, say, you could have a document type with the properties "subTitle", "teaser", "bodyText" and "URL" - you could then have a page called "USA" where you created content of said document type: "Prep For Rep", "POSSE Foundation" etc. Each of these could have a number of "Slideshow" documents below them.
In XSLT you have access to everything and you just need to define how one of them should be output, e.g.:
Thank you so much for your help Chriztian, however because of i'm new to umbraco, I was a bit confused even though you provided clear explanation :)
I followed your instruction, but it wasn't working. This is probably my fault. please excuse my ignorance :)
I'll write what I've done.
created Document type named 'CEDAR School,' which is consisted of "subTitle" - (textstring), "teaser"- (textstring), "bodyText"- (rich text) and "URL"- (textstring)
created XSLT named 'program' that contains
<xsl:templatematch="/"> <!-- Render all Programme documents below this page --> <xsl:apply-templatesselect="$currentPage/Programme"/> </xsl:template>
<!-- Template for a single Programme document --> <xsl:templatematch="Programme"> <divclass="programme"> <h2><ahref="#"rel="toggle"><xsl:value-ofselect="@nodeName"/></a></h2> <h3><xsl:value-ofselect="subTitle"/></h3> <divclass="teaser"> <xsl:value-ofselect="teaser"disable-output-escaping="yes"/> </div> <divclass="body"> <xsl:value-ofselect="bodyText"disable-output-escaping="yes"/> </div> </div> </xsl:template>
I created a page called 'USA,' then put information of One content-- ---name of the school, location, descriptions, and url (document type is CEDAR School)
In the 'CEDAR School' template, I placed the 'program' macro, and all the properties, such as "subTitle" , "teaser", "bodyText" and "URL" like this <asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server"> <umbraco:Macro Alias="CEDARProgram" runat="server"></umbraco:Macro> <umbraco:Item field="subTitle" runat="server"></umbraco:Item> <umbraco:Item field="teaser" runat="server"></umbraco:Item> <umbraco:Item field="bodyText" runat="server"></umbraco:Item> <umbraco:Item field="URL" runat="server"></umbraco:Item> </asp:Content>
then I viewed the page, and it's not working...of course, I've done something terribly wrong...:'( I'm so sorry for the trouble, but could you please help me out here once again? :'( thank you...
Also, I didn't explain very well that the "USA" page, should just be a "Textpage" or similar, under which you would create a number of "CEDAR School" documents:
[Content]
- Home (Homepage)
-- USA (Textpage)
--- Prep For Prep (CEDAR School)
--- POSSE Foundation (CEDAR School)
etc.
Thank you very much Chriztian ! Now the page displays the information, however it doesn't perform dropdown (accordian) feature... here's the link for its page.
Is it possible to create a Drop Down Content like this?
Hi, I'm trying to turn this website into Umbraco, however I'm stuck here because of one feature.
http://cedarfoundation.com/usa.html
I need to create the drop down contents like the ones that are located underneath the title 'USA.'
is it possible to create something like that in Umbraco?
if there is, then could you please offer me a direction? :)
thank you very much !!
Hi Shawn,
Yes, you can definitely do that - How? - depends on how your content is structured, but it's all HTML, CSS and JavaScript in the frontend.
Great thing about Umbraco is that you can have the contents of these "dropdowns" be on separate documents in the backend, say, you could have a document type with the properties "subTitle", "teaser", "bodyText" and "URL" - you could then have a page called "USA" where you created content of said document type: "Prep For Rep", "POSSE Foundation" etc. Each of these could have a number of "Slideshow" documents below them.
In XSLT you have access to everything and you just need to define how one of them should be output, e.g.:
/Chriztian
I think the term you should be searching for is "accordion". It is not actually umbraco specific since it is purely done in javascript.
This post has a list of accordion jquery plugins: http://www.catswhocode.com/blog/8-amazing-jquery-accordions
Take a look if one of them suits your needs.
Thank you so much for your help Chriztian,
however because of i'm new to umbraco, I was a bit confused even though you provided clear explanation :)
I followed your instruction, but it wasn't working. This is probably my fault.
please excuse my ignorance :)
I'll write what I've done.
"subTitle" - (textstring), "teaser"- (textstring), "bodyText"- (rich text) and "URL"- (textstring)
---name of the school, location, descriptions, and url (document type is CEDAR School)
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<umbraco:Macro Alias="CEDARProgram" runat="server"></umbraco:Macro>
<umbraco:Item field="subTitle" runat="server"></umbraco:Item>
<umbraco:Item field="teaser" runat="server"></umbraco:Item>
<umbraco:Item field="bodyText" runat="server"></umbraco:Item>
<umbraco:Item field="URL" runat="server"></umbraco:Item>
</asp:Content>
I'm so sorry for the trouble, but could you please help me out here once again? :'( thank you...
Hi Shawn,
No worries - we'll get throught it :-)
If your Document Type is called "CEDAR School", you should change "Programme" in my snippet above to "CEDAR_School", i.e.:
and
Also, I didn't explain very well that the "USA" page, should just be a "Textpage" or similar, under which you would create a number of "CEDAR School" documents:
/Chriztian
BTW: The Macro goes into the Textpage template, and you shouldn't need the <umbraco:Item> fields...
/Chriztian
Thank you very much Chriztian !
Now the page displays the information, however it doesn't perform dropdown (accordian) feature...
here's the link for its page.
http://umbraco.5am.co/usa.aspx
do i need to plug in any kinds of java script or jquery in order to make it work?
once again, i'm so sorry for the trouble... :'(
and thank you so much for help me !
Hi Shawn,
Yes - you'd need to include any JavaScript & CSS needed by the widget.
/Chriztian
Thank you so much Chriztian !
It works like a charm now !
Have a great day :)
is working on a reply...