Antville Macros
Tuesday, 31. December 2002
<% site.navigation %>
This macro works hand in hand with three skins to build the navigation depending on the user's status:

<% site.navigation for="users" %>
DEPRECATED. Since version 1.1pre2 the navigation bar for users is not supported by the site.navigation macro anymore. Navigation items for all users should be directly included in the site's main.skin. This macro call won't be supported in the final release so it's a good idea to update the user navigation now.

<% site.navigation for="contributors" %>
will be replaced with the navigation-bar for contributors (which in most cases will contain links for creating a new story etc.). if the user doesn't belong to the contributors of a weblog nothing will be displayed. If you enabled "Allow contributions" in your weblog-preferences this navigation-skin will be displayed for all logged in users.

<% site.navigation for="admins" %>
same as above, but antville will check if the user belongs to the administrators of a weblog and either render the navigation bar for admins or nothing.

To change the skins simply go to the skin editor of your weblog and scroll down to the section "navigation skins". In antville's default skinset you can find this macro in the skin "main page".

... Comment

Online for 2709 days
Last modified: 2009.04.09, 15:00
Status
Youre not logged in ... Login
Menu
... Home
... Tags

Search
Calendar
July 2009
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
262728293031
January
Recent updates
with a little javascript like: <div><% story.content part="lead" fallback="text" %> <script type="text/javascript"><!-- var lead =...
by dotnet (2009.04.09, 15:00)
There's another parameter which enables to specify the blog whose imagelist you would like...
by giardino (2009.01.04, 11:00)
Is it possible to create a link to the root-page of the system or...
by phoque (2008.06.07, 12:34)
Thanks a lot for the quick response, kinomu. The good side: Now I have...
by molosovsky (2008.01.16, 11:59)
There is no technical solution to this problem, but try to change (or insert)...
by kinomu (2008.01.16, 10:22)
Sorry if I’m too stupid to wrap my brain around this problem: Is there...
by molosovsky (2008.01.16, 09:48)
Optional viewlink I am using the lead for long stories. And wish to give the...
by byggvirofbarley (2007.07.12, 22:49)
Macros to use smileys in comments? Hi! I added some smileys to my image gallery...
by stuepfnick (2007.05.20, 14:30)
Was suchen Sie denn genau?
by ichichich (2007.05.15, 16:06)
Ähm, ich glaube das Fixen muss nicht mehr sein Hallo, äh 2004 der letzte Inhalt....
by stsboard (2007.03.09, 21:48)
I found a solution and modified it slightly for usage with Antville. Add to...
by ichichich (2007.01.18, 13:07)
story.age would be great to have a macro that does the same for stories. I'd...
by imp13 (2007.01.17, 22:40)
is it somehow possible to change the word "comments" itsself, that automatically results when...
by yetused (2006.11.11, 09:55)
Thanks a lot! Just what I was looking for.
by mwegsche (2006.11.10, 11:24)
That is possible: http://macros.antville.org/stories/44385/ (Beware: An invalid format of the timestamp may corrupt the database...
by ichichich (2006.11.10, 10:38)
Edit date OK, thanks for the feedback. This was just the answer I had already...
by mwegsche (2006.11.10, 08:47)
This is one of the top requested features...
by ichichich (2006.11.09, 17:02)
limit stories I want to limit the number of stories on the homepage of my...
by mwegsche (2006.11.09, 16:58)
To get the login form/skin you must add to query: skins/edit?key=MemberMgr.login
by click (2006.07.29, 01:33)
Need Help! I need to modify the "Login" form/skin that a visitor to my blog...
by aqss (2006.06.18, 22:15)
that more interesting part of the question didn't get answered ;) how can we...
by schimmerschnecke (2006.01.31, 01:02)
Thanks many thanks, click Naino (english version)
by aconti (2006.01.30, 22:09)
The attribute "show" can be used to distinguish further between stories and comments: <%...
by blue sky (2006.01.13, 12:03)
how to always allow discussions without using the checkbox?
by nastja (2005.09.23, 10:23)

RSS feed

Made with Antville
Helma Object Publisher