I am very new to Umbraco platform and maybe now asking a question that was asked before. What I need is to create content panels independent from the page the panel is used on. A photo panel that shows a random photo from a gallery, an article summary panel that pulls a random article from published articles and shows the title and summary or a comment list panel that lists the latest comments etc...
What is the best approach to create such features, macros with xslt or usercontrols? Is there a guide or tutorial about this anywhere?
Independent content boxes like asp.net webparts
Hi,
I am very new to Umbraco platform and maybe now asking a question that was asked before. What I need is to create content panels independent from the page the panel is used on. A photo panel that shows a random photo from a gallery, an article summary panel that pulls a random article from published articles and shows the title and summary or a comment list panel that lists the latest comments etc...
What is the best approach to create such features, macros with xslt or usercontrols? Is there a guide or tutorial about this anywhere?
Thanks in advance.
Yang,
One approach is to create an ASP.Net user control that renders your custom content.
After you have the user control working - create an Umbraco macro for it.
Then add the macro your Umbraco template. Many people put the macro within <div></div> tags and control the styling with CSS.
Check out this video called, "Using .Net User Controls" http://umbraco.org/documentation/videos/for-developers/foundation/using-net-user-controls
Hope this helps,
David
(please mark this as the solution if you found it helpful - thanks)
is working on a reply...