Microsoft Content Management Server - Capture on pre-load?

This is Interesting: Free IT Magazines  
Home > Archive > Microsoft Content Management Server > November 2006 > Capture on pre-load?





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 Capture on pre-load?
Matt.Whitby

2006-11-22, 1:15 pm

What I have:

I have a template with a few editable regions on it. The main region
contains a bunch of text.
All fair enough so far.

What i've written:

I have written a routine to scan through a bunch of text looking for
keywords/phrases and turning them into hyperlinks which point at a
glossary page.

The problem i'm having:

MCMS constructs the page in some sort of cunning way and creates an
..htm file which I then re-direct to when I want to view it.

Response.Redirect(@"http://" + Request.ServerVariables["server_name"] +
"/nmrlearningzone/" + this.cboChannels.SelectedValue.ToString() + @"/"
+ this.lstPostings.SelectedItem.Text.ToString() + ".htm");

The Question:

Is there a way I can process the contents of the placeholder before
it's rendered to the .html page? If so is there an event which is
fired?


All and any suggestions would be gratefully received.

Matt.
Little England

Stefan Goßner [MSFT]

2006-11-23, 7:28 am

Hi Matt,

the easiest way to do this is in the LoadPlaceholderContent method of the
placeholder control.
This means you would need to create a custom placeholder controld derived
from the original placeholder control, override the LoadPlaceholderContent
method, call the base LoadPlaceholderContent class and then do the
modification of the content you are looking at.

Cheers,
Stefan


"Matt.Whitby" <matt.whitby@gmail.com> wrote in message
news:1164215733.019376.12600@j44g2000cwa.googlegroups.com...
> What I have:
>
> I have a template with a few editable regions on it. The main region
> contains a bunch of text.
> All fair enough so far.
>
> What i've written:
>
> I have written a routine to scan through a bunch of text looking for
> keywords/phrases and turning them into hyperlinks which point at a
> glossary page.
>
> The problem i'm having:
>
> MCMS constructs the page in some sort of cunning way and creates an
> .htm file which I then re-direct to when I want to view it.
>
> Response.Redirect(@"http://" + Request.ServerVariables["server_name"] +
> "/nmrlearningzone/" + this.cboChannels.SelectedValue.ToString() + @"/"
> + this.lstPostings.SelectedItem.Text.ToString() + ".htm");
>
> The Question:
>
> Is there a way I can process the contents of the placeholder before
> it's rendered to the .html page? If so is there an event which is
> fired?
>
>
> All and any suggestions would be gratefully received.
>
> Matt.
> Little England
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com