Welcome to TalkGraphics.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2014
    Posts
    16

    Default Adjusting Multiple Links at once in web designer 9 premium

    I have built a image catalog page for my website (actually I have 2).

    The first one works great (basically each catalog catagory is a different page that opens in a frame on a single page). Each of my catalog pages are filled with image links (to design templates)

    On my 2nd page, I forgot to make sure that the link was opening in "Same window (_top)" and I built nearly 600-800 links going to "unspecified".

    I now need to change these links to "Same window (_top)".

    Is there a way to change this all at once, or do I have to open each link individually and change it individually.

    If this is possible in Xara Web designer 9 premium, instructions on how to do so would be very much appreciated as changing that many links one at a time is very tedious.

    Thanks

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    41,503

    Default Re: Adjusting Multiple Links at once in web designer 9 premium

    Welcome to TalkGraphics

    I always consider tasks like this as Zen meditation.

    I had an idea but it didn't work. So all I can suggest is check back during the day and see if any of the members has a work around or a fix for this.

    And add a large note on your site (on the pasteboard area) to remember to specify Same Window Top on all new catalog pages.

  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,823

    Default Re: Adjusting Multiple Links at once in web designer 9 premium

    You can add this code to the Page head Placeholder:

    Code:
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" ></script>
    <script>
    
    $(document).ready(function(){
      $('a[href!="_top"]').attr('target','_top');
    });
    
    </script>
    This will alter all links that do not have a target of _top already.
    You may have other targets (_blank) already set so do check this does not upset the other links on your page.

    Acorn

  4. #4
    Join Date
    Aug 2007
    Location
    Maghull UK
    Posts
    6,202

    Default Re: Adjusting Multiple Links at once in web designer 9 premium

    Excellent Acorn! Thanks
    JOHN -XaReg (FB) XaReg (DB - ignore prompt to register)
    Windows 10 [Anniversary] pro Intel Pentium CPU G630 @ 2.70Ghz RAM: 4 GB; 64-bit x64

 

 

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
  •