I've created this simple php snippet to put in a block with PHP code filter.

<?php 
$result  = db_query (
"SELECT src
FROM `gotwo`
ORDER BY `gotwo`.`gid` DESC
LIMIT 0 , 10"
);

while ($entry = db_fetch_object($result)){
print '<br />/go/'. $entry->src;
}
?>

I can put this block in the node/add or edit pages.. so I have a handy list of latest redirects.

to do: would be good to have a little form there too to add redirects.. same as the form the module uses to manually add redirects without using the filter.

Why I don't use the filter? I like the idea of the filter, but I don't like that the links are not displayed as links in the html editor. so I just manually create redirects and add normal links in the html editor... I still don't know which would be the best way to add the redirects...

Comments

hass’s picture

Category: task » support
Status: Active » Fixed

I do not really understand the use case of the above...

For redirects I suggest you to use the path_redirect module.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.