Closed (fixed)
Project:
Go - url redirects
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Sep 2010 at 22:06 UTC
Updated:
26 Sep 2010 at 22:50 UTC
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
Comment #1
hass commentedI do not really understand the use case of the above...
For redirects I suggest you to use the path_redirect module.