Posted: Sat 28. Aug 2004, 15:53
when jumping to the anchor it will always play the anchor to the highest point on the screen it can: the top it possible but if the anchor has only half a screen of content below it it will appear in the middle of the screen etc..
add this code in your fron.func.inc.php @ line 1337 or so (just after the last reptag code you have )
The following repTag is only a hack for site wide 'anchor jumping' it may be used under all circumstances any other replacement tag is usable.
USEAGE: it is only nessassery to know the target ArticleID: these may be found by hovering over the add/edit icon of the target aritcle and reading from the bottom (info) line of your browser.
SET ANCHOR: {A:anchor_name}
GOTO TAG: [GOTO:structureID,articleID:anchor_name]string[/GOTO]
hope it helps: until a better solution comes along.
add this code in your fron.func.inc.php @ line 1337 or so (just after the last reptag code you have )
The following repTag is only a hack for site wide 'anchor jumping' it may be used under all circumstances any other replacement tag is usable.
Code: Select all
// internal Anchor-Link | useage: [GOTO:structureID,articleID:anchorname]string[/GOTO]
$search[pS1] = '/\[GOTO:(\d+):(\w+)\](.*?)\[\/GOTO\]/';
$replace[pS1] = '<a href="index.php?id=0,$1,0,0,1,0#$2">$3</a>';
SET ANCHOR: {A:anchor_name}
GOTO TAG: [GOTO:structureID,articleID:anchor_name]string[/GOTO]
hope it helps: until a better solution comes along.