Announcement

Collapse
No announcement yet.

Add URL / Link to this page

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Add URL / Link to this page

    Hi all

    I would like to have a "Link to this page" function at the bottom of this page.

    There is a peice of PHP code that completes this function here: http://www.liamdelahunty.com/tips/se..._link_form.php. It automatically puts the page's url into a text field for the user to copy and paste.

    Is this the best way to do it?

    I wondered if it was possible / better to use the sPageName content from Catalog Section database as a NETEQUOTEVAR? e.g.

    http://www.kjbeckett.com/acatalog/NE...EVAR:sPageName - or the like? I appreciate the aforementioned isnt a real NETEQUOTEVAR - I'm not sure if one exists?!?!

    Many thanks.

    Paul
    KJ Beckett
    Men's Clothing & Accessories
    Cufflinks, Underwear, Ties, Grooming Products
    Bath, England
    Fast delivery to UK, USA and worldwide.
    Men's Fashion Blog

    #2
    Don't think there's a netquotevar (although I may be corrected on that) but this should do the trick:

    <script type='text/javascript'>
    document.write("<input type='text' value='"+window.location.href+"' />");
    </script>

    Obviously users with Javascript disabled won't see anything.
    www.gbradley.co.uk
    Web Development, Actinic Patches, Scripts & more

    Comment

    Working...
    X