Jump to content
Latest News: (loading..)

Recommended Posts

Hi,
I have 234.1Edge (BS) version, when add new addon, you can add the link to the admin infobox, such as tool.

      $group['apps'][] = array('code' => 'categories_list_front.php',
                               'title' => MODULES_ADMIN_MENU_TOOLS_CATEGORIES_LIST_FRONT,
                               'link' => tep_href_link(DIR_FS_CATALOG . 'categories_list_front.php'));


right now all the link will link to the files to the admin/ folder, is there a way the 'link' can link to the catalog folder, like catalog/categories_list_front.php

Thanks!  Lyn

Share this post


Link to post
Share on other sites

You can try replacing tep_href_link with tep_catalog_href_link. If you intention is to load that page In admin, I doubt that it would work, assuming it is using a standard format. But if you just want to open that page, you can hard code the link with standard html link code.

Share this post


Link to post
Share on other sites
2 hours ago, Jack_mcs said:

You can try replacing tep_href_link with tep_catalog_href_link. If you intention is to load that page In admin, I doubt that it would work, assuming it is using a standard format. But if you just want to open that page, you can hard code the link with standard html link code.

Hi @Jack_mcs

Thank you very much for you help! It works to link to the front end. I got a script online that can show the file and folder list. The file in admin show all the details without problem, but in the front-end i think it will cause the security problem. The reason to have this is in admin to show the website owner the file tree, and when they click on the file it will bring up the file. Will find another way to do it! Thank you so much for the code, great to learn one new thing!

Lyn

Share this post


Link to post
Share on other sites
11 hours ago, Jack_mcs said:

You can try replacing tep_href_link with tep_catalog_href_link. If you intention is to load that page In admin, I doubt that it would work, assuming it is using a standard format. But if you just want to open that page, you can hard code the link with standard html link code.

hi @Jack_mcs

a furthur question about tep_catalog_href_link, with this, in the admin infobox, i click on the file, it will link to the front page and out of the admin, is it possible to open in new window ?

Thanks! Lyn

Share this post


Link to post
Share on other sites

Use a standard html link as mentioned previously being sure to include the target="_blank" parameter.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×