Identify all templates in sitecore - sitecore

I am trying to get a list of all the sitecore templates and/or possibly all the content pages, modules. Wondering if there a quick way in Sitecore to identify all the templates that have been defined? need this just for the numbers

You can search a folder and apply filters to narrow the items that the search returns which will give you a count of the items that match the filters that you've defined.
From the Content Editor:
Select the Templates folder: /sitecore/templates
Select the Search tab in the right pane
Click on the "More Search Options" arrow on the left side of the search box
Click Search Filters
Click Search by template
A filter box will show up in the search box. Start typing to get an autocomplete list. Select the template you would like to filter by.
The search will now filter the results by the template that you selected.
Multiple filters can be applied to a search. Apply the necessary filters to get the counts that you require.

Related

Does React Semantic UI Search Support Multiselection?

I notice that for dropdown it allows for multiple selection:
https://react.semantic-ui.com/modules/dropdown
However, I notice that this isn't the same with search.
https://react.semantic-ui.com/modules/search
Is it possible to get the same functionality where every time you press enter or select an item in the search drop down that it appears as a object within the search bar. This would make the usage of the drop down and the search bar consistent?
Or is there a way to achieve this?
Thanks,
Derek
The Semantic-ui-react Dropdown component supports a search property. My suggestion would be to use the Dropdown component instead of the search component if you would like to allow for multiple selections.
Dropdown Component
<Dropdown selection multiple search { ...otherProps } />

Sitecore Page Editor Add New Page Inline

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...

Sitecore Insert options not working

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.

How to create a left side bar on APEX 4.0 and open each value in a specific region?

Im a little newbie working with Aplication Express, I want to create an aplication which its structure could be something like this example.
http://apex.oracle.com/pls/apex/f?p=36648:1:110593396161288::NO
Anyone have some ideas to create it?
I just tried creating a List from Shared Components and then set it in a region with Page Region Template Position 3 and another Chart Region with Page Template Body (3), but in my case the side bar is placed on the right when I want it on the left... I have tried all the Template Position combination as possible.
Also when I click a value from the list, the page is opened on another tab. How can I open it on a specific region? As a frame for example
Any help will be greatly appreciated
Having a left sidebar depends on the page template you select. Some page templates will have a left sidebare, other a right one, others maybe both. And since templates are part of a theme, it may be that some templates under some themes may not have a page template that offers what you'd want.
So the first you need to do is look at what page templates you have available in your chosen theme. You can do this by going to the Shared Components and selecting templates from there. Scroll to the Page Templates and see if you can find one there.
While it's a good guess that the sidebart region will be in position 3, and position 3 is in the sidebar, it's best to verify. You can do that by checking the html of the body of the template. See if there is a region assigned to a sidebar. You'll have to divine this from the markup or an example page and which one it is (position 2? position 3? 4?).
Pro-tip: from the Shared Components > Templates, in the report overview, you can preview certain types of templates, such as the page template. Just hit the preview button and you'll get a general idea of the style and the region positioning! When viewing the template in detail, you can also preview from the preview link in the right hand menu list.
As for the list: the example you linked has a list region on the left sidebar, but all those links are links to other pages. Thus, there are as many pages as there are links in the list.
If on your environment the links are causing a new page or tab to be opened up, then that likely means the attribute target="_blank" is present on those anchor tags. Again though, this just means that that markup is being generated by the chosen list template. Try another list template (by editing the list, under Source you can chose the template) or take a look at the theme's templates. You can find the markup for the individual list items there.
It'd be better not to concern yourself too much by trying to fiddle around with iframes just yet, because even though that'd be possible it is not an out of the box feature. Unless you're already really familiar with eg javascript I'd stick to page links until you're more familiar with the environment.

How to add data Filtering using CListCtrl and CHeaderCtrl

Background:
Applications that manipulate a collection of data typically present using a grid containing a header. These same applications typically incorporate a filter to allow the user to narrow the data set (Excel is a wonderful example. There are many others).
In my MFC application, I'm attempting to do the same using the CListCtrl and CHeaderCtrl combination. This combination has already enabled my application to provide for multiple column sorting including using the Image capabilities of the individual header items to represent ascending/descending sort order.
I have used my best Google-fu to locate any examples where the CHeaderCtrl was extended/customized to include custom drawing to account for the addition of the filter button and display an associated drop menu for user input of filter criteria when clicked.
Question(s):
Are there examples I missed?
If no examples available via the internet, what approach(es) should I consider in customizing CListCtrl and CHeaderCtrl to accomplish my goal?
Additional Comments:
One of the answers referenced the built-in FilterBar functionality. Yes I've seen that but it's not what I'm looking for. I'm looking to specifically emulate the non-static, non-visually intrusive filtering capabilities of Excel and other filter-enabled applications.
My Google-fu confirms yours, no examples that add non-invasive filter interface to CListCtrl, with or without the CHeaderCtrl.
Simple approach
In your HDN_ITEMCLICK handler, check the ((NMHEADER)lParam).iButton. For iButton == 1, that's the right mouse button. Here's your chance to show a little CWnd-dervied filter UI. Problem with this approach is there's no visual indication that right-click will bring up a filter menu.
More complicated
Create three column header images - filter icon, up arrow + filter icon, down arrow + filter icon. When not sorted on a column, show the filter only image, otherwise use the appropriate arrow + filter image. Handle click on the CListCtrl at the NM_RCLICK level so you get coordinate info (example.) Do some geometry to figure out if the click was on your filter icon, if so, show a little CWnd-derived filter UI. You can get even fancier and show the current filter in header tooltips, create more images with colored filters to show when a filter is active.
Is this you are looking for?
Since it is in other language, I have given the googled address. Refer second result.