| Antville Macros |
|
Monday, 4. February 2002
links and <% link %>
robert
18:59h
While you always can use normal HTML to create a link (i.e. <a href="http://www.antville.org">antville</a>), antville provides a special macro called "link". depending on the options you specify, the link-macro will change it's behaviour.
<% link to="http://www.antville.org" %> will result in http://www.antville.org. <% link to="http://www.antville.org" text="antville" %> will show this link: antville. <% site.link to="topics/polls" text="polls" %> creates a link to polls. please mind the use of site.link - this simply means that you tell your site to create a link (you can also use <% story.link ...%>). And that again means that everything you specify in the to=...-option will be relative to your site (or your story). Of course you can also use the link-macro for ftp-, https-, mms- or whatever-links. The only thing that an external URL must contain is :// And finally, for the lousy ones, antville is able to detect URLs in a story or comment, so when you simply write http://antville.org antville will display www.antville.org ... Comment
tobi, 2002.05.22, 10:28
urls as plain text
i think we should provide a way to enter a url without antville transforming it into a link...
... Link ... Comment
Ecki, 2002.07.24, 17:59
links in new windows
is there the possibility to set a link that opens a new window rather than opening the resource in the current one?
... Link
tobi, 2002.07.24, 18:10
simply add a target="_blank" parameter to the macro call. but please think of the poor kitten.
... link ... Comment
baronesse, 2002.11.27, 23:43
site.link in image
is there something like the 454 for the "linkto" in image makros? I tried "site.linkto" but it didn't work.
how else can i place the correct links for images in my main navigation (see here: depix.antville.org)? good old static html would of course work, but is it the only possibility? ... Link
robert, 2002.11.28, 00:41
Re: site.link in image
i don't know if i understood you correctly, but this might help:
<% image name="myimage" as="url" %> ... link
baronesse, 2002.11.28, 12:13
not what I was looking for, but thank you any way for trying to help. could solve the problem by simply adding a slash before the link, like this:
<% image name="myimage" linkto="/main" %>who would have thought it would be that easy! ... link ... Comment
phoque, 2008.06.07, 12:34
Is it possible to create a link to the root-page of the system or blog only if the user is not already there (in case he/she is already there replace the link with normal text or similar)?
... Link ... Comment |
Online for 2498 days
Last modified: 2008.10.11, 21:24 Status
Youre not logged in ... Login
Menu
Search
Calendar
Recent updates
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)
check this, mate http://help.antville.org/stories/1197657/
by kris (2005.08.23, 11:05)
okay then here you go:
http://help.antville.org/stories/1197657/
by kris (2005.08.23, 11:04)
i did it but it's
feierabend today. i'll tell you tomorrow how it works.
by kris (2005.08.22, 17:47)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||