I did like that and
#set($pager = $site.getWeblogEntriesPager($since, $maxResults))
worked well,
but
## assume "myblog" is a blog name
#set($myweblog = $site.getWeblog("myblog"))
#if ($myweblog.name ) weblog: ($myweblog.name ) #end
##work well also!!
#set($pager =$site.getWeblogEntriesPager($myweblog,$since,
$maxResults))
### did not work , return nothing!!!!!!!!!!!!!!!!!!!!!!!!!!
I think it is a bug!!!
2006/10/31, Dave <[EMAIL PROTECTED]>:
The site model will only return site-wide content when:
1) It is used in a blog that is set to be the front-page blog
2) The "Enable aggregated frontpage feeds" checkbox is checked
You can do both of those things on the Server Admin->Config page.
- Dave
On 10/31/06, cn kene <[EMAIL PROTECTED]> wrote:
> who can tell me how to get a weblog content in site-model?
> I want to put some content of some specified weblogs on the home page.
>
> SOS!!!
>
> It is a pity that the following sentences do not work,:(
>
>
> 2006/9/29, cn kene <[EMAIL PROTECTED]>:
> >
> > A bug in template:
> >
> > #set($pager = $site.getWeblogEntriesPager($since, $maxResults))
> > ok!
> > #set($myweblog = $site.getWeblog("myblog"))
> > #if ($myweblog.name ) weblog: ($myweblog.name )
#end
> > ok!
> > but:
> > #set($pager =
> > $site.getWeblogEntriesPager($myweblog,$since, $maxResults))
> >
> > nothing?????????
> >
> > who can help me?
> >
>
>