C# Class ToSic.SexyContent.EAV.Implementation.ValueConverter.SexyContentValueConverter

Inheritance: IEavValueConverter
Mostra file Open project: 2sic/2sxc Class Usage Examples

Public Methods

Method Description
Convert ( ConversionScenario scenario, string type, string originalValue ) : string

Private Methods

Method Description
ResolveFileLink ( int linkId, string defaultValue ) : string
ResolvePageLink ( int id, string defaultValue ) : string
TryToResolveDnnCodeToLink ( string value ) : string

Will take a link like "File:17" and convert to "Faq/screenshot1.jpg" It will always deliver a relative path to the portal root

TryToResolveOneLinkToInternalDnnCode ( string potentialFilePath ) : string

Will take a link like http:\\... to a file or page and try to return a DNN-style info like Page:35 or File:43003

Method Details

Convert() public method

public Convert ( ConversionScenario scenario, string type, string originalValue ) : string
scenario ConversionScenario
type string
originalValue string
return string