Hot answers tagged

5

Well, code sample for publish is: I added a screenshot on purpose so that you will need to retype it and see what IntelliSense does and what overload methods do. :) What is more important is that you know what each of the parameter means. So to publish an item you need following: you need an array of items you want to publish. Here you need to provide an ...


5

I wrote a working example of that here: "Validating Content on Save, Part 1". Part 2 and 3 were published by Robert Curlette here: http://www.curlette.com/?p=913


2

I've also seen this before and believe that it is expected behaviour (as the CD code is running in a JVM), but that it's just not documented very well. As Paul Draper says here: Using forward slashes will make it system independent. I'd stick to that for simplicity. However, as he also says, there are ways to allow either within the code, so this ...


2

Although Velu provided you with the code sample, you should understand what IsPublished() overload methods do. There are few overload methods and most of them are combinations of the same parameters (if item is published to some publication target or not, or to some target type). What you need to take a detailed look in Velu's code is the "true" parameter ...


2

Try this function for checking the page is published or not: private bool IsPublished(Page page) { if (Engine.PublishingContext?.PublicationTarget != null) { return PublishEngine.IsPublished(page, Engine.PublishingContext.PublicationTarget, true); } if (Engine.PublishingContext?.TargetType != null) { return PublishEngine....


2

We had similar kind of setup... We created path forwarding rules for all the sdl micro services. We treated deployer and content service separately. Synopsis of what we did: Configured all services on the deployer boxes using lb domain name... this you can do by replacing server name with lb name in the cd_storage file of the respective service and ...


1

It can be achieved by catching the on click event and displaying the predefined text (Loaded from CMS). After the button click continues to the next activity. No manipulation of the DOM involved.


1

This can be solved using a UI extension. In short, you can target the Activity dialogue from JQuery and make manipulate the DOM which opens up for a variety of approaches. The simplest, imho, would be to initially hide the "Finish Activity" button and display a fake "Finish Activity" button to display a modal dialogue with your approval message. If the ...


1

It turns out that in the web.config of the topology manager the old domain name was still used for the user credentials after encrypting the config and changing the setting things work like a charm. the documentation is a bit confusing on doing this encryption, so for those who want to know the below lines work: aspnet_regiis.exe -pdf "database" "C:\Program ...


Only top voted, non community-wiki answers of a minimum length are eligible