Antville Macros |
... Previous page
Monday, 6. May 2002
<% story.createtime %>
tobi
15:58h
this macro displays the create time of a story. while this might sound not too interesting in general, there is an exciting twist that can enhance your weblog to obtain scheduling capabilities. if you add the parameter as="editor" to this macro and put the whole thing into the "form for creating/editing a story" skin, a new input field will appear whenever you create or edit a story: <% story.createtime as="editor" %> by default, the new field contains the current date (ie. the date and time when you activated the link to the form). but you can modify the contents to give your story a date lying in the very past or future. For all the other options you can use within this macro see date and time (and how to format them) If you add the option as="link" the formatted create time of the story will appear as link to the appropriate day-listing, but only if you published the story in the weblog. If your story was published just in a topic it won't appear as link, just as plain text (the same will happen if the story is offline, of course). <% story.createtime as="link" %> ... Link (6 comments) ... Comment Monday, 29. April 2002
<% story.backlinks %>
tobi
16:16h
if you want to display a list of referrers linking to a story you can use the macro <% story.backlinks %> inside a story skin. as an example, take a look at this story over at project.antville. ... Link (6 comments) ... Comment Saturday, 23. March 2002
<% story.commentcounter %>
robert
15:13h
This macro - as you might assume because of it's name - displays a counter of all comments of a story. So, using it like this: <% story.commentcounter %> will result in "0 comments", "1 comment" or "341 comments", depending on the number of comments of a story. You can change the text following the number by using the following attributes: - text to display if there's no comment so (as a quite silly example) your commentcounter-macro might look like this: <% story.commentcounter no=", absolultely nothing" one=", solamente uno" more=", quite a bunch, isn't it?" %> The whole text will be linked to the main view of the story, and there's another attribute that you can (and probably will) use, it's called "anchor". By adding anchor="comments" a user will jump directly to the first comment. ... Link (3 comments) ... Comment Thursday, 7. February 2002
<% site.xmlbutton %>
tobi
12:03h
probably some of you already noticed the little orange "xml" button at the bottom of the antville sidebar. this is what it looks like: if you cannot spot it, you probably modified your site's page layout before we introduced the button. in this case you can add the macro yourself: <% site.xmlbutton %> simply put it at the desired place in a skin and voilà! the button links to a document that contains all the stories that are visible on the main page of a site but without any layout information (except for what was put into the stories). this document is in a special xml format called rss (which means rdf site summary, and in turn, rdf means resource description framework). actually, you do not need to know much more about these pretty technical terms. however, if you are interested in some background information, there is a good collection of articles and links at the o'reilly rss devcenter. generally, for sites rss documents provide a standard way to distribute their core data (in antville these are site stories stripped from any layout) among various publishing channels. because of the rather strict format, the rss documents then can be read and processed by other people and other tools. such tools include e.g. radio userland (win/mac), knewsticker (linux) or this javascript rss viewer. using rss feeds bloggers easily can exchange and syndicate their site's content with each other or news services like my netscape or news is free. ... Link (2 comments) ... Comment Wednesday, 6. February 2002
<% sitelist %>
tobi
18:19h
if you want to display a list of recently updated sites currently maintained in an antville installation (just like the one on the antville main page), you can use this macro: <% sitelist limit="number_of_sites" %> e.g. <% sitelist limit="50" %> will show the 50 most recently updated sites. if you leave away the limit parameter, the list will contain 10 sites only (however, you can go beyond this number). and there is a general limit that you cannot exceed (currently 100 sites). please note that this macro only works in skins, not in stories or comments. ... Link (2 comments) ... Comment ... Next page
|
Online for 8322 days
Last modified: 2/20/20, 5:31 AM Status
Youre not logged in ... Login
Menu
Search
Calendar
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)
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)
Ä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)
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)
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)
|