Show URL in backend

rocked / 2009-10-11 20:42:18   

Hey there,

i´m looking for a function, that shows the url of the project directly in the backend (where i edit the projects). If you don´t know what i mean, please check the mockup picture.

Thanks in advance...

ALEX

rocked / 2009-10-11 20:43:08   

here is the link to the picture http://qkpic.com/83c58

Vaska A / 2009-10-11 20:52:16   

Doesn't really exist in the current version.

It would only exist if a project was 'Published' so you could hack something in like...

  1. if ($rs['status'] == 1)
  2. {
  3. // whatever $s should be - depends on what's around it
  4. $url = BASEURL . $rs['url'];
  5. $s .= p( href($url, $url, "target='_new'") );
  6. }

There you go.

rocked / 2009-10-25 17:10:35   

Hey vaska,

thanks for your answer (i was for holiday, so i could not replay directly).
Could you please tell me where i have to insert this piece of code?

Thanks a lot for your reply...

ALEX

rocked / 2009-10-27 15:23:38   

hey, its me again,

i tried to embed the code snippet, but it won´t work...
so does anybody know, where to place this code?

thanks in advance and if we could fix this issue i will
spend a beer or two to vaska....

Greetings ALEX ;)

LeslieOA / 2009-10-28 00:55:15   

@rocked: - Just taken a look into this...

You'll need to add a line of code after line 291 of '/ndxz-studio/module/exhibits/index.php': -

  1. if ($rs['status'] == 1) { $url = BASEURL . $rs['url']; $body .= div(href($url, $url, 'target="_blank"'), 'class="txt-left"'); }

If you don't have "clean URLs" enabled, use the following instead: -

  1. if ($rs['status'] == 1) { $url = BASEURL . "/index.php?" . $rs['url']; $body .= div(href($url, $url, 'target="_blank"'), 'class="txt-left"'); }

Hope this helps.
Peace.

rocked / 2009-10-28 10:46:14   

Hey LesliOA....

WOW... it works.... Thanks al lot man for your efforts...
i love this forum and how people are working together....

greetings from germany...

ALEX

LeslieOA / 2009-10-28 15:17:25   

@rocked: - Not a problem. Remember to 'send' those beers to Vaska ;-)

beam / 2009-11-08 12:52:38   

great little hack, thank you.

This thread has been closed, thank you.