Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default html <a name=" to define page

    [Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]

    Hi, I do not have an html txt editor, and I would like to put html on the define pages, if I put
    <a name="name-element"> </a>
    <a href="#name-element"> click paragraph </a>
    I hit home page and not in the paragraph. </ strong> br etc works well, but a name not.
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

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

    Default Re: html <a name=" to define page

    At moments I think I fully understand the arrangement you have tried describe, but then I think about it and lose it.

    If you have a series of words or a sentence that you want visitors to click on with the expectation that they be directed to somewhere else (on page or away), then the click on words/phrase should be an "a" link but the destination location would likely be a div, span, etc... The way the issue is presented looks like an "a" link is used to go to another "a" link...

    Regardless, a little research indicated that at least with html5 (not sure if site is built with that in mind) that the id parameter should be used instead of the name parameter. In keeping with html validation and appropriate use, the id parameter value used should be unique for the page. (only one occurrence of say id="goto-big-text-block")
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,622
    Plugin Contributions
    123

    Default Re: html <a name=" to define page

    MC is correct. The HTML5 way of doing this is

    Code:
    <span id="some-search-string"></span>
    Then you can use the URL
    http://some-url#some-search-string

    and get to that point in the document.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  4. #4
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: html <a name=" to define page

    Hi, what I want to do is go to a place on the same page, as we do with the top of the page. I try this too but it does not work.
    this will have to go into the part of the same page
    <a href="#A1">1bla bla bla</a>
    <a id="A1"></a>2blablabla</strong>
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,571
    Plugin Contributions
    30

    Default Re: html <a name=" to define page

    I found I had to use the complete relative url.
    eg:
    index.php?main_page=product_info&cPath=1_2176&products_id=3711#A1
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  6. #6
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: html <a name=" to define page

    sorry, I can not translate my thoughts, here what I want to do.
    https://www.w3.org/TR/html4/struct/links.html

    Thus, for example, an author might create a table of contents whose entries link to header elements H2, H3, etc., in the same document. Using the A element to create destination anchors, we would write:

    <H1>Table of Contents</H1>
    <P><A href="#section1">Introduction</A><BR>
    <A href="#section2">Some background</A><BR>
    <A href="#section2.1">On a more personal note</A><BR>
    ...the rest of the table of contents...
    ...the document body...
    <H2><A name="section1">Introduction</A></H2>
    ...section 1...
    <H2><A name="section2">Some background</A></H2>
    ...section 2...
    <H3><A name="section2.1">On a more personal note</A></H3>
    ...section 2.1...
    We may achieve the same effect by making the header elements themselves the anchors:

    <H1>Table of Contents</H1>
    <P><A href="#section1">Introduction</A><BR>
    <A href="#section2">Some background</A><BR>
    <A href="#section2.1">On a more personal note</A><BR>
    ...the rest of the table of contents...
    ...the document body...
    <H2 id="section1">Introduction</H2>
    ...section 1...
    <H2 id="section2">Some background</H2>
    ...section 2...
    <H3 id="section2.1">On a more personal note</H3>
    ...section 2.1...
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  7. #7
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,221
    Plugin Contributions
    1

    Default Re: html <a name=" to define page

    sorry, I can not translate my thoughts, here what I want to do.
    https://www.w3.org/TR/html4/struct/links.html

    Thus, for example, an author might create a table of contents whose entries link to header elements H2, H3, etc., in the same document. Using the A element to create destination anchors, we would write:
    I think we understand your thoughts.

    Quote Originally Posted by torvista View Post
    I found I had to use the complete relative url.
    eg:
    index.php?main_page=product_info&cPath=1_2176&products_id=3711#A1
    This is how I do it. Have you tried changing your <P><A href="#section1">Introduction</A><BR> to include the complete relative url - as Torvista suggested?
    Simon

  8. #8
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: html <a name=" to define page

    I do not have to go to another page, I have to stay on the same page a little further down the page.

    for example by clicking on <P> <A href="#section1"> Introduction </A> <BR>
    I must go lower in the same page a
    <H2 id = "section1"> Introduction </ H2>
    Last edited by diamond1; 28 Mar 2019 at 07:24 PM.
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

  9. #9
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,221
    Plugin Contributions
    1

    Default Re: html <a name=" to define page

    The code suggested does not need to take you to another page.

    It would help if you can give the url of the page where you wish to add this html. You can rename the domain name if you wish.
    Simon

  10. #10
    Join Date
    Jan 2010
    Location
    France
    Posts
    279
    Plugin Contributions
    0

    Default Re: html <a name=" to define page

    sorry friends, but i really can't make myself understood, i found an example, see this page
    http://www.tagindex.net/html/link/an...le1s.html#a001
    and click on

    Jump to a001
    Jump to a002
    Jump to a003

    You'll see that it goes up

    a001
    a002
    a003

    But always on the same page
    it's what I want to do, I've done it many times on other cms but, on zen cart it doesn't work goes into. home page

    ok I understood their code and it works

    <h3><a name="menu">Menu</a></h3>
    <ul>
    <li><a href="#a001">Jump to a001</a></li>
    <li><a href="#a002">Jump to a002</a></li>
    <li><a href="#a003">Jump to a003</a></li>
    </ul>

    <h3><a name="a001">a001</a></h3>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>

    <h3><a name="a002">a002</a></h3>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>

    <h3><a name="a003">a003</a></h3>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>
    <p>paragraph text paragraph text paragraph text</p>

    <hr>
    Last edited by diamond1; 28 Mar 2019 at 10:08 PM.
    Giovanni,
    Zen Cart V1.5.8 + templates ZCA Bootstrap Template

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Define Page Editor does not have HTML
    By zulu26 in forum Basic Configuration
    Replies: 3
    Last Post: 4 Apr 2012, 10:38 PM
  2. How to delete links of "item name" and "price" in category list page?
    By rainmist in forum Templates, Stylesheets, Page Layout
    Replies: 8
    Last Post: 10 May 2010, 06:26 AM
  3. changing "page 4" name in the "more information" box
    By verdo131 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 19 Dec 2009, 05:16 AM
  4. New file into "Config.->Define Page Status"
    By jamieboulder in forum Basic Configuration
    Replies: 2
    Last Post: 12 Apr 2008, 12:27 PM
  5. Replies: 3
    Last Post: 29 Jan 2008, 04:43 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