Enable use of url aliases in preview, not just node/x/suffix

Comments

Apfel007’s picture

Title: Allow url aliases » Convert to Drupal 6

Hi Chris,

I like the idea of the module. I try the convert the first part of the "menu part" into Vers. 6, but i'm not good enough to do this with the whole thing. Are you able to transform it?

Cheers Kai

My part:
/**
* Implementation of hook_menu().
*/
function public_preview_menu() {
$items = array();
if ($may_cache) {

$items['admin/content/preview'] = array(
'title' => 'Content Preview',
'description' => 'Settings to allow users access to unpublished content.',
'page callback' => 'drupal_get_form',
'page arguments' => array('public_preview_admin_settings', 2),
// NOTE: as of Drupal 6.2, all menu items are *required* to have
// access control.
'access arguments' => array('administer site configuration'),
'type' => MENU_LOCAL_ITEM,
);
} else {
.....

chrisyates’s picture

Kai,

I haven't done much with D6 yet, but I'll take a look at this when I can. If you get any further in the meantime, please let me know.

-c

chrisyates’s picture

Status: Active » Fixed

I've released an initial port for D6. Download here: http://ftp.drupal.org/files/projects/public_preview-6.x-1.0.tar.gz

-chris

Anonymous’s picture

Status: Fixed » Closed (fixed)

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