dasMonthView-dasBlog现在包括一个完整的Year View ...而我已经花了。

I'm sitting here in the WS Interop Day tinkering with this dasBlog MonthView I was doing.  I've added a view that displays your blog (item titles) in a calendar for a year. 

我坐在WS Interop Day的时候坐在这里,与我正在做的dasBlog MonthView进行修补。 我添加了一个视图,用于在一年的日历中显示您的博客(项目标题)。

Do check it out.  I'll give it to Omar this week and we'll get it into the source tree ASAP if folks dig it.

请检查一下。 我将在本周将其提供给Omar ,如果人们对其进行挖掘,我们会尽快将其放入源代码树中。

Updates since yesterday ;) :

从昨天开始更新;):

  • If an entry doesn't have a Title, then I'll strip all HTML tags and take the first 50 characters of the content and add an ellipsis.  Many of my old Radio Userland posts from 2002 that I imported into dasBlog have this problem.

    如果条目没有标题,那么我将剥离所有HTML标记,并采用内容的前50个字符并添加省略号。 我从2002年起导入dasBlog的许多旧的Radio Userland帖子都有这个问题

  • Should work but not tested: This page adds no new Resource strings and uses Invariant dates in the QueryString so the Calendar(s) should render in multiple languages (and possibly other calendar systems, such as Thai Bhuddist, as I make no assumptions as to how many months are in a year, etc.) Perhaps some attention to VaryByHeaders="Accept-Language" may be needed.

    应该可以正常工作,但未经测试:此页面未在QueryString中添加任何新的资源字符串并使用不变日期,因此Calendar应该以多种语言(以及其他日历系统,例如Thai Bhuddist)呈现,因为我没有做任何假设一年中有多少个月,等等。)也许需要注意VaryByHeaders =“ Accept-Language”。
  • This is a ridiculously expensive page, second only to Search, so it includes Poorman's caching for 15 minutes.  <%@ OutputCache Duration="900" VaryByParam="*" %>  Certainly change this value to taste.  Arguably it should STAY cached until the cache is explicitly invalidated.  I think there's some stuff in dasBlog to do that, I just didn't going looking for it. 

    这是一个荒谬的昂贵页面,仅次于搜索,因此它包含Poorman的15分钟缓存。 <%@ OutputCache持续时间=“ 900” VaryByParam =“ *”%>当然可以将此值更改为“味道”。 可以说它应该保持缓存,直到缓存显式无效为止。 我认为dasBlog中有一些东西可以做到这一点,我只是没有去寻找它。
  • I output the time the page was rendered at the TOP of the page (rather than the standard dasBlog rendered footer) just cause it's nice to know when these things get built.

    我输出页面在页面顶部渲染的时间(而不是标准的dasBlog渲染页脚),只是因为很高兴知道何时构建这些东西。
  • Clicking on the Weblog Calendar view takes you to MonthView.aspx without any QueryString parameters.  This shows you the entries for the current month.  From here you can go forward and backward with the Next/Prev buttons.  This will be MonthView.aspx?month=YYYY-MM.

    单击“ Weblog日历”视图,将带您进入MonthView.aspx,而没有任何QueryString参数。 这将显示当月的条目。 在这里,您可以使用“下一个/上一个”按钮前进和后退。 这将是MonthView.aspx?month = YYYY-MM。
  • Clicking on a Year number at the top of the page will take you to a page with all the months filled out.  This is MonthView?year=YYYY.

    单击页面顶部的Year数字,将带您进入所有月份已填写的页面。 这是MonthView?year = YYYY。

翻译自: https://www.hanselman.com/blog/dasmonthview-dasblog-now-includes-a-complete-year-viewand-im-spent

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值