Hi,
ich bin mit PHP noch nicht so richtig bewand. Auf der Beispielseite steht, dass es noch kein Script für Link-Plugin gibt.
Hat jemand von euch schon so ein Script gemacht??
was für Variablen hab ich den zu verfühgung und wie heißen die?? (Falls ich das script selber schreiben darf 😉)
Viele Grüße
nazgul
ich bin auch auf der suche danach... ich bringe diese links-extension einfach nicht zum laufen.
folgendes hab ich aber im mailinglist-archiv gefunden, vielleicht kannst du damit was anfangen.
Constants:
content.tt_links {
name.wrap = <h3> |</h3>
name.case = upper
info.wrap = <font face=Arial size=2> |</font>
image.width = 120
orderBy = name
# cat=address//; type=options[,DESC]; label=Reverse order (DESC)?
desc =
}
Setup:
## Introducing rendering information for tt_address:
tt_links = COA
tt_links {
wrap = <TABLE border=0 cellpadding=0 cellspacing=0><tr><td valign=top>
| </tr></table>
20 = COA
20.wrap = {$content.tt_links.info.wrap}
20 {
20 = TEXT
20.if.isTrue.field = title
20.dataWrap = <BR><A target="_blank"
href="{field:url}">{field:title}</A> <BR>
21 = TEXT
21.if.isTrue.field = note
21.dataWrap = {field:note}<BR>
}
}
## Transfering to the tt_content.list object:
tt_content.list.20.1 >
tt_content.list.20.1= CASE
tt_content.list.20.1key.field = layout
tt_content.list.20.10 = CONTENT
tt_content.list.20.10 {
table = tt_links
# select.pidInList.field = pages
select.orderBy = {$content.tt_links.orderBy} {$content.tt_links.desc}
}
dann ein reply darauf:
I just tried to use this sampled code, but had to fix it. There it is:
Constants:
content.tt_links {
....
orderBy = title
^----------------------------------------- tt_links
has a "title" field, but no "name" field
Setup:
## Transfering to the tt_content.list object:
...
tt_content.list.20.1.key.field = layout
^----------------------------- There is a
period between 1 & key
tt_content.list.20.1.0 = CONTENT
^----------------------------- There is a
period between 1 & 0 (otherwise, you would unset the plugin.indexsearch
tt_content.list.20.1.0 {
^----------------------------- Idem