|
Home > Archive > Microsoft Content Management Server > December 2004 > Dialogue Box list defaults/Object selection lists
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Dialogue Box list defaults/Object selection lists
|
|
| MurrayTh 2004-12-09, 8:48 pm |
| Is it possible to change how lists in Web Author dialogue boxes are displayed
by default- such as templates for new pages or selecting resources? It seems
the lists are always set to 5 items per page in a list view, and it does not
retain this value if the pages is re-posted.
In the various list-based dialogue boxes for CMS, can the following be done:
-store user's selection for number of items shown
-default list to more than 5 items
-change default view to tree view instead of list view
-automatically populate object tree, instead of re-loading with each
expansion (same with browsing to pages when creating hyperlinks or channels
when copying or creating connected pages)
-remember last selected item and re-selecting it, instead of scrolling back
down to it manually
-sort by title, description, location, last modified, or other fields by
default.
| |
| Victor-Seán 2004-12-10, 2:47 am |
| Anyway you look at it you're going to have to make some custom
modifications to the dialog in question that you want to change within
the CMS install folder. An example for changing the default amount of
items shown for the TemplateGalleriesBrowse as I've done here is as
follows:
In the head tags section of the page add the following:
<script language="C#" runat="Server">
protected void SetIndex(object sender, System.EventArgs e)
{
PagingConfigControl.SelectedIndex=4;
ChangePagingConfig(sender, e);
PagingConfigControl.SelectedIndex=4;
}
</script>
Then find the PagingConfigControl dropdown and add: OnLoad="SetIndex"
Now when your Template browser loads it will show all items instead of
the default 5. You can do the exact same for GalleriesViewSelect by
setting the index of what you want. I recommend you clear this with
your team beforehand as it will require changing the physical file/s on
your installations.
Only issue with this "quick fix" is that you render the dropdown
obsolete i.e. Choosing show 5 items or such won't work anymore.
Hope this helps,
-Vic
| |
| Stefan [MSFT] 2004-12-10, 5:51 pm |
| Hi Murray,
yes, I have written a solution for this:
http://www.gotdotnet.com/Community/...58-69CC4A25EF99
Cheers,
Stefan.
"MurrayTh" <MurrayTh@discussions.microsoft.com> wrote in message
news:C7E7C866-1DF2-46D7-BA9E-2F41CA7D24DE@microsoft.com...
> Is it possible to change how lists in Web Author dialogue boxes are
displayed
> by default- such as templates for new pages or selecting resources? It
seems
> the lists are always set to 5 items per page in a list view, and it does
not
> retain this value if the pages is re-posted.
>
> In the various list-based dialogue boxes for CMS, can the following be
done:
> -store user's selection for number of items shown
> -default list to more than 5 items
> -change default view to tree view instead of list view
> -automatically populate object tree, instead of re-loading with each
> expansion (same with browsing to pages when creating hyperlinks or
channels
> when copying or creating connected pages)
> -remember last selected item and re-selecting it, instead of scrolling
back
> down to it manually
> -sort by title, description, location, last modified, or other fields by
> default.
|
|
|
|
|