How to create custom pages in dasBlog?

I know that I saw it in the past, but now I can not find it.

Basically I want to create a page that I can post to dasBlog , which contains a layout from my theme, but the contents of the page that I control.

Ideally, the content is a user control or ASPX that I am writing. Does anyone know how I can do this?

+3
source share
2 answers

An easy way to do this is to “capture” the functionality of FormatPage.

First add the following to your web.config in the newtelligence.DasBlog.UrlMapper section:

<add matchExpression="(?&lt;basedir&gt;.*?)/Static\.aspx\?=(?&lt;value&gt;.+)" mapTo="{basedir}/FormatPage.aspx?path=content/static/{value}.format.html" />

static. html , URL- :

http://BASEURL/Static.aspx?=FILENAME

:

/content/static/FILENAME.format.html

- , itemTemplate.blogtemplate, , . , - hometemplate.blogtemplate, .

+4

- , . , , , - , .

, dasBlog visual studio. VS2008, VS2005, , . , . , dasBlog.

I do not have access to this code here, so I can’t tell you the exact names right now, but if you want your pages to be able to use themes, then they should inherit from the class in newtelligence.dasBlog.Web, and I believe that also implements the interface. A good place to look is in FormatPage and FormatControl.

+1
source

Source: https://habr.com/ru/post/1696731/


All Articles