Custom Application page with pre-defined widget

Former Member
Former Member

Hi

I created custom application with content type.

My application implements IApplicationNavigable. In RegisterUrls method I define a page:

...

controller.AddPage("mycontent-list", "{myappname}/list", null, parameterConstraints1, "mycontent-list-page",
new PageDefinitionOptions {ParseContext = ParseAppContext, DefaultPageXml = LoadListPageXml()});

...



LoadListPageXml() returns

<contentFragmentPage pageName="mycontent-list-page" isCustom="false" layout="Content" themeType="0c647246-6735-42f9-875d-c8b991fe739b">
    <regions>
        <region regionName="Content">
            <contentFragments>
                <contentFragment
                        type="Telligent.Evolution.ScriptedContentFragments.ScriptedContentFragment, Telligent.Evolution.Platform::36f2922fac2bf8c70a493ae81ddd3ab8"
                        showHeader="True" cssClassAddition="no-wrapping with-spacing with-header" isLocked="False"
                        configuration=""/>
            </contentFragments>
        </region>
    </regions>
    <contentFragmentTabs/>
</contentFragmentPage>

also I have previously defined widget:

<scriptedContentFragments>
    <scriptedContentFragment name="MyContent List Widget" version="11.0.1.9600" description=""
                             instanceIdentifier="36f2922fac2bf8c70a493ae81ddd3ab8" theme="" isCacheable="false" varyCacheByUser="false"
                             showHeaderByDefault="true" cssClass="">
        <contentScript language="Velocity"><![CDATA[
<p>MyContent List Widget</p>


]]></contentScript>
        <headerScript language="Velocity"><![CDATA[]]></headerScript>
        <configuration><![CDATA[<propertyGroup id="options"><property id="configuration" dataType="string" /></propertyGroup>]]></configuration>
        <languageResources><![CDATA[<language key="en-us"><resource name="some resource"></resource></language>]]></languageResources>
        <additionalCssScript language="Velocity"><![CDATA[]]></additionalCssScript>
    </scriptedContentFragment>
</scriptedContentFragments> 

But on the page 

http://localhost/rt/.../list

("rt" is a PathDelimiter for my app)

I see empty page without any widgets.

Also from export Social-Group-Theme.xml I found block

			<contentFragmentPage pageName="mycontent-list-page" isCustom="false" layout="Content" themeType="c6108064-af65-11dd-b074-de1a56d89593" lastModified="0001-01-01 00:00:00Z">
				<regions>
					<region regionName="Content">
						<contentFragments />
					</region>
				</regions>
				<contentFragmentTabs />
			</contentFragmentPage>

Any thoughts? 

I want to create pages and widgets from my dll package without any UI theme work.

Previously with common INavigable pages works correctly.



fixed url for a page
[edited by: Iurii Luzan at 3:58 PM (GMT 0) on Wed, Feb 10 2021]
Parents Reply Children
No Data