|
Home > Archive > Microsoft Content Management Server > June 2006 > ActiveXToolbarHooks.inc
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 |
ActiveXToolbarHooks.inc
|
|
| Randel 2006-06-15, 1:19 pm |
| Hi all.
I've been researching how to make modifications to the activex
interface used for formatting (bold, ital, insert table, etc..) in mcms
html placeholders.
Other posts have pointed to the activextoolbarhooks.inc file, located
at (install drive letter):\Program Files\Microsoft Content Management
Server\Server\IIS_NR\System\WBC\Customiz
able\Hooks
I saw that there is sample code in this file that is supposed to render
a sample button. I've uncommented all the code and saved, but haven't
seen any changes in my authoring interface.
How do I get this sample code to render? Also, can you point me to
documentation on this?
Thanks so much. Randel
| |
| Stefan [MSFT] 2006-06-16, 7:20 am |
| Hi Randel,
it is not recommend to modify the HtmlPlaceholder shipped with MCMS.
If you need more functionality or would like to add custom actions, please
use the Telerik control which allows much easier extensibility. The lite
version is free-of-charge.
You can download it from here: www.mcmscontrols.com
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Randel" <randel.mckee@okdhs.org> wrote in message
news:1150388071.436646.79200@p79g2000cwp.googlegroups.com...
> Hi all.
>
> I've been researching how to make modifications to the activex
> interface used for formatting (bold, ital, insert table, etc..) in mcms
> html placeholders.
>
> Other posts have pointed to the activextoolbarhooks.inc file, located
> at (install drive letter):\Program Files\Microsoft Content Management
> Server\Server\IIS_NR\System\WBC\Customiz
able\Hooks
>
> I saw that there is sample code in this file that is supposed to render
> a sample button. I've uncommented all the code and saved, but haven't
> seen any changes in my authoring interface.
>
> How do I get this sample code to render? Also, can you point me to
> documentation on this?
>
> Thanks so much. Randel
>
| |
| Randel 2006-06-16, 1:24 pm |
| Thanks. Actually, we downloaded the lite version a few weeks ago and
are currently evaluating it's usage for our internet. I like the added
functionality that it offers and really hope that we decide to use it.
But on the question of the activextoolbarhooks.inc file, can you
explain briefly how to get the sample code to run? What would I need
to do to get the sample button to render?
Thanks. Randel
p.s. Looking forward to the next version of mcms!!
Stefan [MSFT] wrote:[vbcol=seagreen]
> Hi Randel,
>
> it is not recommend to modify the HtmlPlaceholder shipped with MCMS.
> If you need more functionality or would like to add custom actions, please
> use the Telerik control which allows much easier extensibility. The lite
> version is free-of-charge.
> You can download it from here: www.mcmscontrols.com
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Randel" <randel.mckee@okdhs.org> wrote in message
> news:1150388071.436646.79200@p79g2000cwp.googlegroups.com...
| |
| Stefan [MSFT] 2006-06-16, 1:24 pm |
| Hi Randel,
not sure which code you mean but I have written some sample code that worked
for me:
http://www.gotdotnet.com/Community/...BD-3FBD28AC58EF
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Randel" <randel.mckee@okdhs.org> wrote in message
news:1150463624.174910.323150@c74g2000cwc.googlegroups.com...
> Thanks. Actually, we downloaded the lite version a few weeks ago and
> are currently evaluating it's usage for our internet. I like the added
> functionality that it offers and really hope that we decide to use it.
>
> But on the question of the activextoolbarhooks.inc file, can you
> explain briefly how to get the sample code to run? What would I need
> to do to get the sample button to render?
>
> Thanks. Randel
>
> p.s. Looking forward to the next version of mcms!!
>
> Stefan [MSFT] wrote:
>
| |
| Randel 2006-06-16, 1:24 pm |
| thanks for the url. I'll check it out.
Back to my question, the sample code is vbscript in the
activextoolbarhooks.inc file. (Example follows
'////////////////////////start example
<%
'
****************************************
*************************************
'
' NOTE: This file is client side VBScript. The comments are in server
side script
' so they don't get sent to the client.
'
' The sample code shows how to create a simple context sensitive
button
'
'
****************************************
*************************************
'
'
'
-----------------------------------------------------------------------------
'
' This is the hook function being called when the Toolbar is
initialized for the first time.
' The custom code here can add or remove toolbar buttons.
'
' @pToolbarInterface [in] - Toolbar interface object that can be used
to create
' button or comboboxes.
'
' sample implementation that creates a new toolbar and adds one button
with the id "TestButton" to it:
'
Dim pMyTest
Set pMyTest =
document.ToolbarInterface.Toolbars.CreateToolbar("MyTest" )
'
Call pMyTest.AddButton( "TestButton", "", "undo.gif", "TestButton" )
'
'
'
-----------------------------------------------------------------------------
%>
'////////////////////////end example
I uncommented this and the other sample pieces thourhgout the *inc file
and expected to see the sample button render.
Are there any examples of how to get the sample code to work?
Thanks!
Stefan [MSFT] wrote:[vbcol=seagreen]
> Hi Randel,
>
> not sure which code you mean but I have written some sample code that worked
> for me:
> http://www.gotdotnet.com/Community/...BD-3FBD28AC58EF
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Randel" <randel.mckee@okdhs.org> wrote in message
> news:1150463624.174910.323150@c74g2000cwc.googlegroups.com...
| |
| Stefan [MSFT] 2006-06-16, 1:24 pm |
| Hi Randel,
I don't think so.
Cheers,
Stefan
--
This posting is provided "AS IS" with no warranties, and confers no rights
New to MCMS?
Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
Check out the new book as well: Advanced MCMS development:
http://tinyurl.com/8ugwj
----------------------
"Randel" <randel.mckee@okdhs.org> wrote in message
news:1150465600.705212.159490@c74g2000cwc.googlegroups.com...
> thanks for the url. I'll check it out.
>
> Back to my question, the sample code is vbscript in the
> activextoolbarhooks.inc file. (Example follows
> '////////////////////////start example
> <%
> '
> ****************************************
*************************************
> '
> ' NOTE: This file is client side VBScript. The comments are in server
> side script
> ' so they don't get sent to the client.
> '
> ' The sample code shows how to create a simple context sensitive
> button
> '
> '
> ****************************************
*************************************
> '
> '
> '
> -----------------------------------------------------------------------------
> '
> ' This is the hook function being called when the Toolbar is
> initialized for the first time.
> ' The custom code here can add or remove toolbar buttons.
> '
> ' @pToolbarInterface [in] - Toolbar interface object that can be used
> to create
> ' button or comboboxes.
> '
> ' sample implementation that creates a new toolbar and adds one button
> with the id "TestButton" to it:
> '
> Dim pMyTest
> Set pMyTest =
> document.ToolbarInterface.Toolbars.CreateToolbar("MyTest" )
> '
> Call pMyTest.AddButton( "TestButton", "", "undo.gif", "TestButton" )
> '
> '
> '
> -----------------------------------------------------------------------------
> %>
> '////////////////////////end example
> I uncommented this and the other sample pieces thourhgout the *inc file
> and expected to see the sample button render.
>
> Are there any examples of how to get the sample code to work?
>
> Thanks!
>
> Stefan [MSFT] wrote:
>
| |
| Randel 2006-06-16, 7:16 pm |
| I downloaded the gotdotnet sample you pointed me to. do you have any
additional instructions on how to implement this?
Randy
Stefan [MSFT] wrote:[vbcol=seagreen]
> Hi Randel,
>
> I don't think so.
>
> Cheers,
> Stefan
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights
>
> New to MCMS?
> Check out this book: Building Websites Using MCMS: http://tinyurl.com/6zj44
> Check out the new book as well: Advanced MCMS development:
> http://tinyurl.com/8ugwj
> ----------------------
>
>
> "Randel" <randel.mckee@okdhs.org> wrote in message
> news:1150465600.705212.159490@c74g2000cwc.googlegroups.com...
|
|
|
|
|