Welcome to TalkGraphics.com
Results 1 to 5 of 5

Thread: Internal links

  1. #1
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,107

    Default Internal links

    Hi folks. How can I find out what links are connected for internal links in a website. I want to rename a page but want all internal links to point to that new page.

    Thanks.

    Creative Art Director/Owner
    www.designfacet.com

  2. #2
    Join Date
    Aug 2000
    Location
    Placitas, New Mexico, USA
    Posts
    39,974

    Default Re: Internal links

    I am pretty sure if you change a page name the link automatically changes. Give it a try.
    Gary W. Priester
    Mr. Moderator Emeritus Dude
    , Sir

    gwpriester.com | Custom-Stereograms.com | eyeTricks on Facebook






  3. #3
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    14,325

    Default Re: Internal links

    behzad, your ask is very ambiguous. You seem to be implying all internal links to go to a completely new page (and location).

    If you have used Link to links then your XDA recalculates any changes when you change the current page name to another (what Gary P said).
    Ditto for changes to Anchors, Headings and Smart Fields. [Page name change Help --> Support]

    If you have added links manually as in Link to Web or Email address then these have to be manually changed. [Link change help.htm --> support.htm]

    Your XDA has no search & replace capability for links.
    To change [Link to old location --> new location], i would Preview the page and open Browser de Tools > Consult and paste in the following:
    Code:
    var x = document.querySelectorAll("a");
    var myarray = []
    for (var i=0; i<x.length; i++){
    var nametext = x[i].textContent;
    var cleantext = nametext.replace(/\s+/g, ' ').trim();
    var cleanlink = x[i].href;
    myarray.push([cleantext,cleanlink]);
    };
    function make_table() {
        var table = '<table><thead><th>Name</th><th>Links</th></thead><tbody>';
       for (var i=0; i<myarray.length; i++) {
                table += '<tr><td>'+ myarray[i][0] + '</td><td>'+myarray[i][1]+'</td></tr>';
        };
    
        var w = window.open("");
    w.document.write(table); 
    }
    make_table()
    This creates a listing of all links.
    You can then check the internal ones to see what you need to alter in the design.

    Acorn
    Acorn - installed and active Xara software: Cloud+/Pro+, XDPX, XWD Premium 15 & 12, XPGD10, X3D7, Xara Xtreme 5, back through time (to CC's Artworks).
    Raise software faults with MagiXara: http://support.magix.net/; if Cloud+/Pro+: https://xara.com/contact-us/

  4. #4
    Join Date
    May 2002
    Location
    Canada
    Posts
    3,107

    Default Re: Internal links

    Thank you Both. I used an existing page and renamed it and it did it automatically. For assistance I used google search console/links/internal links.
    Acorn how did you learn coding?
    Creative Art Director/Owner
    www.designfacet.com

  5. #5
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    14,325

    Default Re: Internal links

    Quote Originally Posted by behzad View Post
    Thank you Both. I used an existing page and renamed it and it did it automatically. For assistance I used google search console/links/internal links.
    Acorn how did you learn coding?
    50 years of practice.

    Acorn
    Acorn - installed and active Xara software: Cloud+/Pro+, XDPX, XWD Premium 15 & 12, XPGD10, X3D7, Xara Xtreme 5, back through time (to CC's Artworks).
    Raise software faults with MagiXara: http://support.magix.net/; if Cloud+/Pro+: https://xara.com/contact-us/

 

 

Tags for this Thread

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
  •