I'm fairly new to sitecore and having lots of trouble. I found a couple of articles that show how to add items to the insert context menu of a template, and I was able to get it to work once, on one of my templates. It worked off of the root of the template. But this root has branches under, and when I try to set the insert options for those branches, it does not work.
I did not build this site so I am not sure what is happening.
Is it possible there is some security setting somewhere keeping it from working? Or could it be that they are not linking to individual module items, but perhaps a menu somewhere, and that maybe it is that menu that I need to update?
To make matters worse, I am not sure where I should be assigning these insert options. The articles I've read say to do it on the _standardvalues of the template, but under branches I see the template of the same name and it actually has the branch structure underneath, which is where I actually want the insert to be (under Column 5). I've attached a screenshot if it helps.
http://www.accriva.com/tree.JPG
The insert options for a template are always set on the _standard values of that template.
Branches are not templates. Branches use templates to define a common content structure which content editors need to re create often and therefore it saves the editors time.
To add insert options to your Column template. Either navigate to the template if you know where it is or click on the column 5 node in your branch, look at the quick info section of the item. There you will find a link to the items template. Click on the template link, the template should open. In the left hand menu expand the template so that you can see the __standard values. If you have no standard values then create them. Click on __standard values then select configure in the sitecore ribbon (top menu). Now click on assign within the insert options section and select the templates you wish this template to have as insert options.
Now your column template will have the insert options set correctly. If you dont see them then go back to your column 5 node in your branch, you may have overridden the standard value settings and hence wont see the correct insert options. To ensure your getting the correct insert options from your template, select the column 5 node then in the ribbon click on configure then reset within the insert options section this will reset your insert options to that set in the standard values of your template.
Now if you still don't see the insert option changes that you have made then go back to the column template, select its standard values. Click on assign in the insert options section of the configure tab. In the insert options pop up, look to your left. You will see an option to select insert rules. Click on that and check if you have any insert rules for this template. If you do then find the insert rule item under system/settings/insert rules. Once you have found it select the rule and it will contain a reference to a class within your solution. Use that reference to find the class in your solution and debug that logic, it may be enforcing insert options programmatically.
Related
My environment is Python 2.7, running on Windows 10.
I'm writing a Tkinter application which is going to include a "recent files" menu for the user's convenience. To create that menu I not only need the ability to add, delete, and re-order menu entries dynamically, but also to identify how many entries are present, and what those entries are. I want this to support the logic that will "cap" the file listing to (say) the five most recent files, deleting the older ones as new files are added to the list. It would also support the ability to "clear history", deleting all the existing entries.
Adding, deleting, and re-ordering the menu content for a single known item is a nobrainer; the add_command(), delete(), and insert_command() methods will cover these use cases. But I've checked several online references and I can't locate a method or attribute that will tell me the current content of the menu, or even one to tell me how many entries the menu currently contains.
Do such attributes/methods exist? Or must I apply a sledgehammer approach, like repeatedly executing the entrycget() method index-by-index until it encounters an exception?
You can use the index method with a parameter of "end" to get the index of the last item.
last_item = the_menu.index('end')
You can then use that to iterate over all of the items in a menu.
In Sitecore, I built two custom multi-lists, where the second one depends on the first. The only issue is, that after selecting the first one, I have to save the item before the second multi-list filters the items.
My question somebody know how to create a two custom multi-list on Sitecore, where the second one filters automatically after selecting an item in the first (without save event), or which event can I override to do it?
It sounds like what you are looking for is some kind of front end event that you can use in the Sitecore backend to update a list based on another list selection without a save event. I don't think there is really anything out of the box for that..
Really what you should be doing (to do the 'sitecore' thing) would be to have your first selection (be it multi-list or whatever you like) simply point to a datasource item for another template item which is where your user can set the second option(s). I think you would benefit from taking a different approach like this rather than trying to customise Sitecore here.
I have a requirement to remove some Global Tool Bar Item such as Apply Target List and Save Target List on Siebel CRM. Other Toolbar such as sitemap and query should stay.
But I cant figure the configuration. I have tried the following Object Definitions
1. Menu
2. Toolbar
3. Class.
I can't find Apply target list and Save Target List.
Although I did find apply target list and save target list under
Menu> Generic Web> Menu Items object definition.
I inactivated and compiled.
But the two Icons still appear on the Global tool bar.
Under Toolbar->HIMain-> ApplyTargetList & SaveTargetList are items. Did you try disabling them ?
Also , please look under Class [CSSSWEFrameList]
If you still cannot remove the Items and are using OpenUI, it could be possible to add a simple CSS rule to hide the entry in the menu list.
I have created a content item at /sitecore/Home/FootballFever/Articles and have given insert option so that we can add only items of templates "Article".As of now,these article items are bucketable according to a field created date.
Now, i have insert option "Add Article" and "Insert from Template" buttons in the Home ribbon "Insert" block. When i create an item through "Insert from Template", the item automatically gets added in respective bucket with path as created date. for example if the item has created date is "7/21/2014" then path will be "/Articles/2014/7/21/ ".
But when i click on "Add Article", the item gets added in /Articles and i have to Sync everytime to get it to correct path.
How can I have the same behavior as that of "Insert from Template" but with path having Release date which is a field of template "Article"?
Please make sure that Article template has Bucketable field checked in its Standard values (for Article template).
If not, when you add a new item into buckets folder, newly added item itself is not bucketable, unlike the rest already existing items from the same bucket folder.
I have just made a proof of concept on my sandbox environment and can confirm that in case you add a new item with Bucketable checked by Standard values - it comes into a bucket straight away and you do not need to perform Sync.
Hope this helps.
UPDATE: I have written a blog post specially to cover your question,with comprehensive description.
http://blog.martinmiles.net/post/understanding-buckets-adding-new-items-to-buckets-correctly
By default, items will be structured in bucket folders, five levels deep based on the date and time the item was created. There are a couple of other built in rules you can use like using part of the Guid or part of the name. The thing to note here is that these are all things that are available on item creation. If you want to structure your articles based on a custom 'Release Date' then you will need to write a custom rule and you will also have to implement an OnItemSaved event handler. Here is a article on how to write the custom rule.
Generally you don't have to worry about how the items are structured in your bucket. Editors should be using the search tab to find the items they need.
Having said that, this SO post discusses how to structure your bucket items based on a custom field. Some things to note here is that this is generally a global change. There are ways around it that enables you to have different strategies for different buckets but you'll then have to do additional work to override the LinkProvider and potentially other things.
In my content tree, I have "Folder" items that have no presentation, but have all the insert options on them. How would you be able to use the "Insert Page" button in the ribbon to insert a new content item in the right part of the tree?
For Example:
I have my home page Content(Folder)/Home.item
All of my insert options are on Content(Folder), how do I add a new Home.item type without nesting it under Home.item?
In order to be able to use the Insert Page button, the item you are inserting under must have Presentation defined. It doesn't need to have components added, and I've worked round this before by simply define a "blank" layout and setting it on those items. Maybe create yourself a new template (inheriting from Folder) and then set Layout on that. But, this is a workaround at best. You can only "Insert Page" below the current page you are on, so you would essentially have to navigate to a blank page in order to create the sibling.
From what you have stated, it sounds like you may want to re-think where your Insert Options have been set and your content structure, i.e. why would you want create another Home item? Creating so will require set-up of another <site> and related config. You probably also want to separate those sites out with other settings, there is some good example of multi-site structure in this blog post. If you go down this route look into using Branch Templates. But, difficult to know what you are doing without context...