ektron

Ektron taxonomy and library items (in v9)

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 10:02:55
问题 We recently upgraded from Ektron 8.6 to 9.0 (Ektron CMS400.NET, Version: 9.00 SP2(Build 9.0.0.249)). I have some code (below) which we use to display links to items in a taxonomy. Under 8.6, this would show library items if they had been added to the taxonomy. As of 9.0, it no longer displays library items. It still works for DMS items and normal pages (all first class content in Ektron). private List<ContentData> getTaxonomyItems(long TaxonomyId) { listContentManager = new ContentManager();

XSLT - Using substring with copy-of to preserve inner HTML tags

被刻印的时光 ゝ 提交于 2019-11-30 18:49:40
问题 I have some XML like this: <story><p><strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</strong>Nulla vel mauris metus. Etiam vel tortor vel magna bibendum euismod nec varius turpis. Nullam ullamcorper, nunc vel auctor consectetur, quam felis accumsan eros, lacinia fringilla mauris est vel lectus. Curabitur et tortor eros. Duis sed convallis metus. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Cras tempus quam sed enim gravida

How can I modify the entire ASP.NET page content right before it's output?

主宰稳场 提交于 2019-11-30 14:56:51
问题 I have a page that has a bunch of user controls on it. I want to be able to have "macros" or "placeholders" directly in the content that will get replaced in my code. It shouldn't really matter, but I'm using Ektron as my CMS. Are there any page events that I can hook into to do a string replace on the entire rendered page content, right before it's sent to the client? UPDATE Here is the code that I am currently using to accomplish this: protected override void Render(HtmlTextWriter writer) {

Why do I receive a Mutator error when modifying an Xml value in Sql

ぃ、小莉子 提交于 2019-11-29 17:56:35
I have the following stored procedure: ALTER PROCEDURE [dbo].[UpPro] ( @PN varchar(200), @xml xml, @gVa varchar(10), ) AS /* update the gender */ BEGIN SET NOCOUNT ON; Select @gVa = t1.[Gender] From [myDb].[dbo].[myTable1] t1 --replace Value2 and table to the table which is updated through SSIS Where t1.Name = @PN PRINT @gVa //displays 'F' Set @xml.modify('replace value of (/root/Phys/gender/text())[1] with sql:variable("@gVa")'); END /* once all the node has been "temporarily" changed, update the table columns for the provider */ BEGIN --update the table after casting dummy xml variable