Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2008
    Location
    Pittsburgh, PA
    Posts
    237
    Plugin Contributions
    1

    Default Open in new window Admin Delete Categories Link &target="_blank" ? zen_href_link(

    So occasionally I blow up my easypopulate.php import and create a bunch of bogus categories by accident that I delete out so I want to have my delete icon open in a new window. I was trying to simply add the &target="_blank" to the link as seen below, but it only loads as &target=

    any idea why? I can't seem to escape? the double quote maybe? I tried slashes, concatenating, etc. I think I'm just too much of a n00b.

    admin/includes/modules/category_product_listing.php

    Code:
    <?php echo '<a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $categories->fields['categories_id'] . '&action=delete_category') . '&target="_blank">' . zen_image(DIR_WS_IMAGES . 'icon_delete.gif', ICON_DELETE) . '</a>'; ?>

  2. #2
    Join Date
    Jul 2012
    Posts
    16,705
    Plugin Contributions
    17

    Default Re: Open in new window Admin Delete Categories Link &target="_blank" ? zen_href_link(

    Two things that come to mind:

    First the use of the target parameter on an a link is not "anded" to anything, it is its own parameter, so it would not be '&target=""' but instead a space then target:

    Code:
    . ' target="_blank"'.
    The other thing which really in the realm of security should have been first is that you shouldn't have two admin windows open at the same time... creating such a button/link does that...

    Been a while since I've looked up where it says that, but thought it was in the either some of the design criteria or standard usage or something.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 

Similar Threads

  1. Really stupid but... '" target="_blank">
    By Rizla in forum General Questions
    Replies: 4
    Last Post: 23 Jan 2011, 11:37 AM
  2. New link targeted "_blank" on sidebox informations
    By OLIVIER72 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 31 May 2009, 02:02 PM
  3. Image link "open in new window" not working
    By kevinmc3 in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 22 Mar 2008, 02:57 AM
  4. Replies: 0
    Last Post: 5 Jan 2007, 02:35 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR