Forums » Customize

Show URL in backend

rocked
GERMANY
2009-10-11 20:42:18
Permalink Post
 

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
GERMANY
2009-10-11 20:43:08
Permalink Post
 

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

Vaska A
I WROTE THIS
2009-10-11 20:52:16
Permalink Post
 

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
GERMANY
2009-10-25 17:10:35
Permalink Post
 

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
GERMANY
2009-10-27 15:23:38
Permalink Post
 

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
UNITED KINGDOM
2009-10-28 00:55:15
Permalink Post
 

@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
GERMANY
2009-10-28 10:46:14
Permalink Post
 

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
UNITED KINGDOM
2009-10-28 15:17:25
Permalink Post
 

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

beam
UNITED KINGDOM
2009-11-08 12:52:38
Permalink Post
 

great little hack, thank you.

Showing 1 - 9 of 9 posts in Forum > Customize > Show URL in backend
 

You need to be logged in to post.