Indexhibit
Index + Exhibit

Login:

Created by
Daniel Eatock
Jeffery Vaska
And You

Indexhibit was updated to version 2.1.4 on April 10, 2017.

Show URL in backend

 

Indexhibit version: Legacy
Thread is not resolved.

rocked
GERMANY
8 year(s) ago
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
8 year(s) ago
Permalink Post

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

Vaska A
UNITED STATES
8 year(s) ago
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
8 year(s) ago
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
8 year(s) ago
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
8 year(s) ago
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
8 year(s) ago
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
8 year(s) ago
Permalink Post

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

beam
UNITED KINGDOM
8 year(s) ago
Permalink Post

great little hack, thank you.

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

This thread has been closed, thank you.