Big Lists in Umbraco 7 - list

We are migrating our site from SharePoint to Umbraco 7, what is the best way to store & manage lists in Umbraco? in the current site in SharePoint We have a lot of lists.
NestedItems is not a very good solution because there is no option to search in or sort.
Thanks

For each type of list you have, create a node that's configured to have a list view, then add each list item as a subnode to the parent node.
That way you get a good solution performance-wise, and you'll be able to search through the subnodes.
(Screenshot is from Umbraco 8, so UI to enable List View may be a little different from Umbraco 7, but the concept is the same)

You have a couple of options, depending on what you need to achieve.
If you want to use the default Umbraco index for your content, you can create a doctype and enable list view on it, then any children of that node will be in a searchable/orderable list.
If you want to store the data in a custom database table, there is a package called Fluidity for Umbraco 7 which allows you to easily integrate this into the backoffice.
https://our.umbraco.com/packages/backoffice-extensions/fluidity/

Related

List of News Articles In Sitecore (Best Approach?)

I am creating a Sitecore MVC site for a client and I need to create page that will list news articles for the company.
So far, I have created items that use a shared data template called “Article,” and I also have a sublayout (a view rendering) called “Article” that will display these items.
For the list itself, my plan was to create another component (a sublayout) call “News_List”, and to put a placeholder in it called “List”.
My question is this: can I allow the author to insert articles (e.g., N items of type “Article”) into this placeholder via the page editor?
Will SC allow you to insert multiple instances of the same component into a placeholder? Will this break anything?
I believe this is a pretty common question but I have not found a definitive answer. Thanks in advance…!
You can insert as many components (of the same type) in your placeholder as you want.. Just make sure to put the placeholder settings correctly and give it a decent name (not just "list" ;))
But are you sure you want to do this? Your editors will manually need to create a list of components for each article they want to add on the page. Doesn't sound to be very user (editor) friendly.. Maybe you should consider creating a list component that can get a list of articles as a datasource and show those. Or even select them automatically (but that might be not according to your business case)..
Yes, authors can add multiple instances of the same component into a single placeholder.
Assuming that the code of the component doesn't do any stupid things it's absolutely ok to do this.

Simple means to save web input to a Sharepoint list

In Sharepoint 2007, I wish to create a simple form on a public facing web page to insert a new list item - username.
I'm don't need anything fancy, so I'm hoping for a fairly simple solution.
I see this being accomplished in 2 parts:
1. capturing the user's Sharepoint ID, then
2. Inserting the user's ID into the list.
I thought the Form Web Part, pointing to my list, would be the way to go, but it appears the Form Web Part can't be used to insert new list items; but maybe I'm wrong.
I'm looking for any comment, suggestions, tips, examples, etc. for doing parts 1 and/or 2.
Thanks,
George
SharePoint Lists have new item forms by default. The filename of the form is NewForm.aspx.
Look for your new item form at http://[your site]/lists/[your list]/NewForm.aspx
If you'd like to add the new form to a different page than above, use SharePoint Designer 2007 and to insert a custom list form.
Also, the user's id is stored in the Created By and Modified By fields of the list.

Copy only reference of item in Sitecore 6 tree structure

I have an item in Sitecore 6 backend containing all rendering and data to render itself. This item is a child of some other item in Sitecore tree structure.
So the tree looks like this:
Home
Parent Item
My Item
Another Parent Item
I need a reference to My Item here
Is there a way to copy just a reference of the item? The idea is to have the same content with different url, but without copy/pasting. Because after a while content writer would like to change the content and he doesn't want to search for the copies and change them too.
If you are on Sitecore 6.4 or later, you can accomplish this using clones. Select the item to be copied, and then click the "Clone" button on the "Configure" ribbon. The clone shows values from the original item, but also allows you to override them, at a field level, should the need arise.
For Sitecore 6.3 and earlier, you can use proxies. These do not allow the option of overiding fields, can lead to performance issues if used extensively, and have been deprecated with Sitecore 6.4.
You can learn more about both techniques at http://sdn.sitecore.net/upload/sitecore6/64/reusing_and_sharing_data-a4.pdf and http://bit.ly/CloneTalk

Find all the item that is using a common Sublayout in sitecore 6.2.0

Is it possible to obtain a list of all the items in sitecore that is using common sublayout or XSLT's in presentation tab for rendering i.e. suppose there is sublayout called layout1.ascx that is being used by 5 items.is it possible to obtain the list of all these 5 items by search method.
Thanks in advance.
Regards,
Divya
You probably need to do this in two steps (or one if it's only 1 template).
You need to use the Link database.
The simplest way of seeing these "links" is to go to the Sublayout or Rendering and go to the "Navigation" menu and then click on "Links". This should show you all the items that point to this current item and all the items that the current items points to (ie. both ways).
This will probably give you a list of templates and/or items (if the sublayout is set directly on an item).
Then go to a template and see how do the same to see which items are have a refernce to the template.
This should show you which items are using which sublayouts.
Of course this requires the Link database is up to do (should be done automatically, but you can force this with Start > Control Panel > Databases > Rebuild Link Database) and that the Sublayouts etc are bound in Sitecore..
I hope this helps.
The Link database suggestion is great, but if your sublayout is used by hundreds of items, it may take a little while to load.
Another alternative is this fast query:
fast://*[#__Renderings='%{FAAD00AE-A089-4AEF-989C-73917660FF48}%' or #__Final Renderings='%{FAAD00AE-A089-4AEF-989C-73917660FF48}%']
This can be run in the developer center, under Tools > XPath Builder (or for Sitecore 8.x the XPath Builder can be found at /sitecore/shell/default.aspx?xmlcontrol=IDE.XPath.Builder).
Sitecore 9.x no longer supports the XPath Builder, but you can still run this if you install the Sitecore PowerShell Extensions.
The following command can be run:
Get-Item -Path "master:" -Query "fast://*[#__Renderings='%{FAAD00AE-A089-4AEF-989C-73917660FF48}%' or #__Final Renderings='%{FAAD00AE-A089-4AEF-989C-73917660FF48}%']"
Change the guid above as needed.

Get Children Recursively in Sitecore CMS .NET

Does anyone know how to recursively get the children of an item in a Sitecore web control? I'd rather not use Sitecore query because some of my paths have dashes in them which really screws things up. The Sitecore.Context.Item.getChildren() and Sitecore.Context.Item.Children property both returned just the top level children.
From Sitecore, looks like the way to do this is Item.Axes.GetDescendants()