Category Archives: Uncategorized

Sitecore 10 – expanding dynamic link with non-default url options.

Wasn’t entirely obvious how to go about this, but the scenario was that rich text content needed to be both expanded to convert links in the style ~/links.aspx?id=123456 into proper paths AND also include the server hostname rather than just root relative links.

UrlBuilderOptions urlOptions = new Sitecore.Links.UrlBuilders.DefaultItemUrlBuilderOptions();
urlOptions.AlwaysIncludeServerUrl = true;

var expander = new Sitecore.Links.ItemLinkExpander();
expander.Expand(ref richText, urlOptions);

Setting default gateway for NTP access on TP-LINK T2600G-28TS network switch

Trying to simply set the clock automatically on this ‘smart managed’ network switch turned into a bit of a challenge. Whenever a time sync isĀ attempted from the NTP server it would fail.

The T2600G-28TS switch simply doesn’t have a ‘default gateway’ setting but you can add a static route instead. I took a punt with the following settings. Sadly, this doesn’t work.

 

Solution :

To provide a default-gateway behaviour, instead you need to use the value “0.0.0.0” for both destination and subnet mask.

With this static route added, our NTP request succeeds

 

Continue reading