|
Home > Archive > Microsoft Content Management Server > November 2004 > Traditional application integration?
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 |
Traditional application integration?
|
|
|
| So far I like CMS. It saves alot of work in alot of areas. However, there is
some functionality still needed by our clients that is not provided by CMS.
So I would like to take a simple scenario and figure out how this is done.
Perhaps this will show how more advanced things can be done.
Let's take a simple template that holds a single placeholder. In addition, I
want to display a datagrid below it that gets its data froma SQL query. This
is easy to do. Now the content person wants to control the datagrid's data
using an input screen that is accessible only when in Edit mode. In other
words he would like to see an option to edit a list and update the contents
of a database table while also seeing the placeholder in Edit mode.
The problem for me is just a few things:
1) How do I know when I am in Edit mode (or any mode for that matter)?
2) How do I add the admin functionality to allow the user to add and remove
items from a database table? Is it on the template? Do I create a custom
admin page?
3) Can this scenario be extended so that a new custom menu would appear with
the default edit options when in edit mode?
Thanks
Bill
| |
| Angus Logan [MVP] 2004-11-23, 5:56 pm |
| Hi Bill,
- re. Mode: To check the current mode see:
http://msdn.microsoft.com/library/e...ssmodetopic.asp
- re. security: You could use different templates and then create postings
using the templates different channels and restrict access to the channels ;
thus locking down your application.
- re. Menu: Check the mode again and render a menu.
Regards
--
________________________________________
Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
Product Specialist
Microsoft Application Solutions
Data#3 Limited
E angus_logan@data3.com.au
BLOG www.anguslogan.com
________________________________________
"BillW" <BillW@discussions.microsoft.com> wrote in message
news:2933462C-109B-4496-925D-780802930823@microsoft.com...
> So far I like CMS. It saves alot of work in alot of areas. However, there
> is
> some functionality still needed by our clients that is not provided by
> CMS.
> So I would like to take a simple scenario and figure out how this is done.
> Perhaps this will show how more advanced things can be done.
>
> Let's take a simple template that holds a single placeholder. In addition,
> I
> want to display a datagrid below it that gets its data froma SQL query.
> This
> is easy to do. Now the content person wants to control the datagrid's data
> using an input screen that is accessible only when in Edit mode. In other
> words he would like to see an option to edit a list and update the
> contents
> of a database table while also seeing the placeholder in Edit mode.
>
> The problem for me is just a few things:
>
> 1) How do I know when I am in Edit mode (or any mode for that matter)?
> 2) How do I add the admin functionality to allow the user to add and
> remove
> items from a database table? Is it on the template? Do I create a custom
> admin page?
> 3) Can this scenario be extended so that a new custom menu would appear
> with
> the default edit options when in edit mode?
>
> Thanks
>
> Bill
>
| |
|
| Yes this makes sense.
1) How can I control where I render my 'special' menu to allow the user to
access custom edit options? There must be a way to locate the placeholders
(or display areas) that appear when you are in Edit mode. I can then
dynamically render the menu using controls.
2) I must assume that there are CMS pages (or templates) that are used
during normal rendering and for editing. Where are these located? Can one
inherit, override, and/or extend these?
3) Clarification needed. To add custom admin functionality I could create
'special' templates that are hidden and restricted that in reality do not
hold content but instead provide the functionality I need to allow the user
to manage a database. Is this what you are saying?
Thanks
"Angus Logan [MVP]" wrote:
> Hi Bill,
>
> - re. Mode: To check the current mode see:
> http://msdn.microsoft.com/library/e...ssmodetopic.asp
> - re. security: You could use different templates and then create postings
> using the templates different channels and restrict access to the channels ;
> thus locking down your application.
> - re. Menu: Check the mode again and render a menu.
>
> Regards
> --
> ________________________________________
>
> Angus Logan (MCAD/MCDBA/MCP/MVP for MCMS)
> Product Specialist
> Microsoft Application Solutions
> Data#3 Limited
> E angus_logan@data3.com.au
> BLOG www.anguslogan.com
> ________________________________________
> "BillW" <BillW@discussions.microsoft.com> wrote in message
> news:2933462C-109B-4496-925D-780802930823@microsoft.com...
>
>
>
| |
| Stefan [MSFT] 2004-11-24, 7:52 am |
| Hi Bill,
1) that depends on your needs.
Usually you would have an "update" link in each row of the table itself.
Only show this link if the page is in update mode (WebAuthorContext.Mode is
WebAuthorContextMode.AuthoringNew or WebAuthorContextMode.AuthoringReedit).
2) the template exists on the file system in your ASP.NET template project.
These can be extended in all ways ASP.NET allow.
3) usually you would write a custom console action rather than writing admin
pages. This will allow to have the admin feature in the context of the
current posting.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
MCMS FAQ:
http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
MCMS Sample Code:
http://www.gotdotnet.com/community/...t+S
erver
MCMS Whitepapers and other docs:
http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
--------------------------------
"BillW" <BillW@discussions.microsoft.com> wrote in message
news:5168D5D8-157F-4064-8EBD-614F8BDC29A5@microsoft.com...
> Yes this makes sense.
>
> 1) How can I control where I render my 'special' menu to allow the user to
> access custom edit options? There must be a way to locate the placeholders
> (or display areas) that appear when you are in Edit mode. I can then
> dynamically render the menu using controls.
>
> 2) I must assume that there are CMS pages (or templates) that are used
> during normal rendering and for editing. Where are these located? Can one
> inherit, override, and/or extend these?
>
> 3) Clarification needed. To add custom admin functionality I could create
> 'special' templates that are hidden and restricted that in reality do not
> hold content but instead provide the functionality I need to allow the
user[vbcol=seagreen]
> to manage a database. Is this what you are saying?
>
> Thanks
>
> "Angus Logan [MVP]" wrote:
>
http://msdn.microsoft.com/library/e...ssmodetopic.asp[vbcol=seagreen]
postings[vbcol=seagreen]
channels ;[vbcol=seagreen]
there[vbcol=seagreen]
done.[vbcol=seagreen]
addition,[vbcol=seagreen]
query.[vbcol=seagreen]
data[vbcol=seagreen]
other[vbcol=seagreen]
custom[vbcol=seagreen]
appear[vbcol=seagreen]
| |
|
| Thanks. Say I just bought your book to gain some more insight into things. I
am looking forward to reading it. I currently use MCMS 2002 The Complete
Guide. It was a start but now I am hungry for more.
One more question. Any place to point me to gain insight into custom console
actions?
Bill
"Stefan [MSFT]" wrote:
> Hi Bill,
>
> 1) that depends on your needs.
> Usually you would have an "update" link in each row of the table itself.
> Only show this link if the page is in update mode (WebAuthorContext.Mode is
> WebAuthorContextMode.AuthoringNew or WebAuthorContextMode.AuthoringReedit).
>
> 2) the template exists on the file system in your ASP.NET template project.
> These can be extended in all ways ASP.NET allow.
>
> 3) usually you would write a custom console action rather than writing admin
> pages. This will allow to have the admin feature in the context of the
> current posting.
>
> Cheers,
> Stefan.
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> MCMS FAQ:
> http://download.microsoft.com/downl...6a/MCMS+2002+-+(complete)+FAQ.htm
> MCMS Blog: http://blogs.msdn.com/stefan_gossner/category/4983.aspx
> MCMS Sample Code:
> http://www.gotdotnet.com/community/...t+S
erver
> MCMS Whitepapers and other docs:
> http://blogs.msdn.com/stefan_gossne...2/07/41859.aspx
> --------------------------------
>
>
> "BillW" <BillW@discussions.microsoft.com> wrote in message
> news:5168D5D8-157F-4064-8EBD-614F8BDC29A5@microsoft.com...
> user
> http://msdn.microsoft.com/library/e...ssmodetopic.asp
> postings
> channels ;
> there
> done.
> addition,
> query.
> data
> other
> custom
> appear
>
>
>
| |
|
|
|
|
|