By: powerpop
Date: 2004-07-14
Time: 09:16
|
listing a set of blog entries
i want to be able to list a person blog entries in the following way - for the first 10 entries i want to display the full title/text/date - for the remaining entries i want to only list the title/date as a link - can i do this with one MergeBlock?
|
By: Skrol29
Date: 2004-07-15
Time: 01:24
|
Re: listing a set of blog entries
Hi PowerPop,
It's possible using the following formula:
[blk.text;if [blk.#]>10;then '']
You can even use parameter 'friend' to delete an embeding Html tag.
But you have to notice that this will cost the same time as if the text was displayed. Because if you use only one MergeBlock then the query will return all the texts for all records, and thatis what takes time.
|
By: powerpop
Date: 2004-07-15
Time: 11:34
|
Re: listing a set of blog entries
that is a nice construct - i will try it - i think it will be okay to have the full text - i might put in html to allow expanding the blog entries dynamically
i also have to look at how i limit blog listings - i may delete most of them after 90 days unless they are tagged in special ways (like as an faq entry, or as an important item) - or i may just make archives like most blog systems do
|
By: Skrol29
Date: 2004-07-15
Time: 11:57
|
Re: listing a set of blog entries
Sorry, symbol > is not valid!
It should be:
[blk.text;if [blk.#]-+10;then '']
And it requires TBS 1.97.10
|
|
Posting in progress.
Please wait...
|