Download Ektron CMS400.NET Developer Reference Manual
Transcript
Plug-in Extension
string sTemp = Content.Html;
try
{
//Check content for the last closing paragraph tag. If one exists
put additional text within it. Otherwise just append to end of
content.
if (sTemp.Contains("</p>"))
sTemp = sTemp.Insert(Content.Html.LastIndexOf("</
p>"), S_APPEND);
else
sTemp += S_APPEND;
// Set content html to our new updated string.
the CMS side.
Content.Html = sTemp;
This will set it on
// Set return to success.
bReturn = true;
}
catch (Exception exThrown)
{
// If there was an error, catch it and record the last error
message. This is displayed in the CMS to the end user based upon the
method return value and the setup in the configuration utility.
Content.ErrorMessage = exThrown.Message +
exThrown.StackTrace;
bReturn = false;
}
return bReturn;
}
}
}
InstantMessageOnPublish Sample
This sample plug-in sends an instant message (IM) to any designated AIM user.
This sample is made up of various files. To view these files, navigate to the
C:\Program Files\Ektron\CMS400SDK\Samples\InstantMessageOnPublish
folder.
Use the following steps when working with this sample.
1.
Open the config_info.reg file located in the C:\Program
Files\Ektron\CMS400SDK\Samples\InstantMessageOnPublish folder
and edit the following lines:
-
change the SendToUserName
change the SendFromUserName
change the SendFromUserPassword
2.
Save the file.
3.
Double click the config_info.reg to add the information to the registry.
4.
In Visual Studio 2005, open the Sample.sln located at:
C:\Program Files\Ektron\CMS400SDK\Samples
Ektron CMS40 0.NET Deve lope r Re fe re nce Manua l, Version 7.5, Rev 7
982
Related documents
Ektron CMS400.NET Developer Reference Manual
Ektron CMS400.NET Developer Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS400.NET Developer Reference Manual
Ektron CMS200 Dreamweaver Extension Support Manual
Taking a First Look at FusionDebug
Ektron CMS400.NET Administrator Manual
Ektron CMS400.NET Project Management Starter Site User Manual
Ektron CMS400.NET Administrator Manual
Ektron CMS400.NET Administrator Manual