Antville Macros
Monday, 2. September 2002
<% day.storylist %> and <% topic.storylist%>

These are storylist-macros for a single day or a single topic. The behaviour is as expected: the macro renders a list of all stories (using the preview-skin for each of them). Besides prefix and suffix there's nothing to customize.

Be aware that you can use these macros only in specific skins: day.storylist can only be used in the frontpage of a single day, and topic.storylist in the frontpage of a single topic.

... Link (0 comments) ... Comment


<% imagelist %>

This macro takes a defineable number of images out of the image pool (beginning with the latest one) and displays them as a list, where each item either appears as fullsize-image or thumbnail (which itselft can link to the fullsize-image either in the same browser window or in a popup). To choose what the macro should display use the attribute as

<% imagelist as="popup" %>
or
<% imagelist as="thumbnail" %>

Omitting as will result in a list of fullsize images. If you choose "popup" or "thumbnail" and one of the images in the imagepool doesn't contain a thumbnail (i.e. because the image-width is smaller than 100px) the macro will ignore the image and proceed with the next one having a thumbnail. Similar to the ubiquitous macro-attributes "prefix" and "suffix" you can also define itemprefix and itemsuffix which will be places before and after each image in the list.

<% imagelist as="popup" itemsuffix="<br />" %>

You can also use the attribute linkto which will force the macro to link every item to the URL you specified. And of course you can limit the number of items:

<% imagelist limit="1" prefix="this is my newest one:" linkto="http://myfirstweblog.com" %>

... Link (1 comment) ... Comment


<% topiclist %>

This macro displays all topics of your weblog as links to themselves. Besides the ubiquitous macro-attributes "prefix" and "suffix" you can also define itemprefix and itemsuffix that will be placed before and after each topic. So it's easy to generate an unordered list of topics:

<ul>
<% topiclist itemprefix="<li>" itemsuffix="</li>" %>
</ul>

... Link (5 comments) ... Comment


<% site.monthlist %>

This macro displays the archive of your weblog as a list of months. Every item will appear as link to the first story of the appropriate month. By using the attribute format you can change the appearance of the items, eg.

<% site.monthlist format="MMMM yyyy" %>

This will give you each month as "April 2002", "May 2002" (this is the default formatting). The language used by this macro is depending on the language you defined in the preferences of your weblog.

Besides the ubiquitous macro-attributes "prefix" and "suffix" you can define "itemprefix" and "itemsuffix" which are placed before and after each item, so you can eg. construct a typical unordered html-list:

<ul>
<% site.monthlist itemprefix="<li>" itemsuffix="</li>" %>
</ul>

With the last optional attribute, limit, you can define the number of months that should appear in your list.

Of course this macro will only display anything if the weblog contains at least one story (which is online) plus the archive is enabled in the preferences.

... Link (3 comments) ... Comment


<% site.history %>

(a.k.a. "recently modified"-list) This macro displays a defineable number of stories and comments that have changed in the recent history of your weblog. To change the number of items in the list use the option "show", eg.:

<% site.history limit="10" %>

will give you a list of the 10 most recent modified stories or comments of your weblog.

... Link (9 comments) ... Comment


Online for 8360 days
Last modified: 2/20/20, 5:31 AM
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
September 2002
SunMonTueWedThuFriSat
1234567
891011121314
15161718192021
22232425262728
2930
MayDecember
Recent updates
Grundlegendes: Wie Macros entstehen Im
Zuge der Erneuerung der hier befindlichen Dokumentation soll dargestellt werden,...
by libralop (1/18/17, 2:21 PM)
If the link on the
starting page leads you to http://foo.blogger.de/topics/topic1/ and you want...
by kinomu (1/6/11, 3:43 AM)
how to make topicchooser redundant?
hello, i am new to antville and have a problem...
by cafereiche (1/5/11, 8:26 PM)
+ position and line distance
" itemsuffix="" %> how does ist function? every time when...
by miamicat (7/12/10, 5:23 PM)
with a little javascript like:
<div><% story.content part="lead" fallback="text" %> <script type="text/javascript"><!-- var lead =...
by dotnet (4/9/09, 3:00 PM)
There's another parameter which enables
to specify the blog whose imagelist you would like...
by giardino (1/4/09, 11:00 AM)
Is it possible to create
a link to the root-page of the system or...
by phoque (6/7/08, 12:34 PM)
Thanks a lot for the
quick response, kinomu. The good side: Now I have...
by molosovsky (1/16/08, 11:59 AM)
There is no technical solution
to this problem, but try to change (or insert)...
by kinomu (1/16/08, 10:22 AM)
Sorry if I’m too stupid
to wrap my brain around this problem: Is there...
by molosovsky (1/16/08, 9:48 AM)
Optional viewlink I am using
the lead for long stories. And wish to give the...
by byggvirofbarley (7/12/07, 10:49 PM)
Macros to use smileys in
comments? Hi! I added some smileys to my image gallery...
by stuepfnick (5/20/07, 2:30 PM)
Was suchen Sie denn
genau?
by ichichich (5/15/07, 4:06 PM)
Ähm, ich glaube das Fixen
muss nicht mehr sein Hallo, äh 2004 der letzte Inhalt....
by stsboard (3/9/07, 9:48 PM)
I found a solution
and modified it slightly for usage with Antville. Add to...
by ichichich (1/18/07, 1:07 PM)
story.age would be great to
have a macro that does the same for stories. I'd...
by imp13 (1/17/07, 10:40 PM)
is it somehow possible to
change the word "comments" itsself, that automatically results when...
by yetused (11/11/06, 9:55 AM)
Thanks a lot! Just
what I was looking for.
by mwegsche (11/10/06, 11:24 AM)
That is possible: http://macros.antville.org/stories/44385/
(Beware: An invalid format of the timestamp may corrupt the database...
by ichichich (11/10/06, 10:38 AM)
Edit date OK, thanks for
the feedback. This was just the answer I had already...
by mwegsche (11/10/06, 8:47 AM)
This is one of
the top requested features...
by ichichich (11/9/06, 5:02 PM)
limit stories I want to
limit the number of stories on the homepage of my...
by mwegsche (11/9/06, 4:58 PM)
To get the login form/skin
you must add to query: skins/edit?key=MemberMgr.login
by click (7/29/06, 1:33 AM)
Need Help! I need to
modify the "Login" form/skin that a visitor to my blog...
by aqss (6/18/06, 10:15 PM)
that more interesting part of
the question didn't get answered ;) how can we...
by schimmerschnecke (1/31/06, 1:02 AM)

RSS feed

Made with Antville
Helma Object Publisher