Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

How tag specific points in a page so links will lead to that

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-13-2003, 03:55 AM
 
spike spike is offline
 

Newbie
  
Join Date: Nov 2003
Location: oklahoma
Posts: 4
 

Default How tag specific points in a page so links will lead to that

I want to put links on the start page which lead to specific places on another page. I got it down, how to link to another page but how do I make the link point to a specific article on a page?
Reply With Quote
  #2  
Old 11-16-2003, 11:33 AM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

You can make an named anchor point in the page.

For example

name it firstpara

Then you can do something like

http://yourstore.com/xcart/pageid#firstpara

which will go to the page and go right to the anchor
Reply With Quote
  #3  
Old 11-16-2003, 02:41 PM
 
spike spike is offline
 

Newbie
  
Join Date: Nov 2003
Location: oklahoma
Posts: 4
 

Default One more time, real slowly

I am just learning the most basic html now so I dont understand.

Imagine I have a page called "commentary" On that page I have a story about Hillary Clinton stealing the donations from her church on sunday morning. Of course I have five other storie as well on that page. From my first page I enter a one liner about Hillary's sticky fingers. So I write in the editor.....
Hillary strikes again......Obviously the word again
will take people to my commentary page but how do I name that story and link to it as you describe.
Reply With Quote
  #4  
Old 11-16-2003, 03:20 PM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

What you want to do is go to the page with all the stories (which is the page you are linking)

If you have 5 stories, right before the each story add this

<a name="storyone"></a>

<a name="storytwo"></a>

and so on, save and publish to server

Then when you link to it

You will use the OLD URL link but add #storyone

For example

link text here
Reply With Quote
  #5  
Old 11-16-2003, 04:10 PM
 
spike spike is offline
 

Newbie
  
Join Date: Nov 2003
Location: oklahoma
Posts: 4
 

Default Thank you

That worked great. Thank you very much. I have been learning an awfully lot in the last two weeks about this website building and html and all. So many hours though. Visit the site sometime and tell me what you think and how I might improve it, if you get time. Thanks again Spike at http://www.politicallyrighton.com
Reply With Quote
  #6  
Old 11-16-2003, 08:57 PM
 
concepts concepts is offline
 

Senior Member
  
Join Date: Nov 2003
Posts: 104
 

Default

Spike,

I am just a beginner, I am actually on here looking for some answers to my questions to xcart. But I have learned a lot and know HTML/CSS, etc to answer some pretty basic questions.

I looked at your site, here are a few suggestions.

You have TOO many graphics on your site, eliminate some of the horizontal bars, etc

You can create a horizontal bar by

<hr>

in your HTML

You can also adjust the color and width by

<hr color="red" width="80%" height="3px">

The above will make a red bar 80% window 3 pixel high.

This is a lot better than using those horizontal bars.

I am on my laptop right now and your entire window is not 800x600 friendly. You need to make your home page 800x600 friendly, not everyone is in 1024 mode you know

I think it has to do with that HUGE banner (NATIONAL COMMITTEE) which is taking expanding your page to more than 800 pixels across.

If you MUST use it, you can use something like

[img]your image .jpg[/img]

and go down with the number in width to adjust to fit (it is 760 width right now) -- remember, you are trying to be under 800 pixel width, 780 optimal since there is a scrollbar.

Also, if you must use those horizontal bars to divide, I think you have set to left align since your text is wrapping around it.


Good luck, you'll be looking at your site 6 months from now and will be saying "who coded that!" lol
Reply With Quote
  #7  
Old 05-02-2004, 01:13 AM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default

I can see how easy this would be for an html site but how would you do this for xcart's php pages, for example, if you wanted to tag on a product page:

http://yourdomain.com/xcart/customer/product.php?productid=10

and u wanted to link to Customer votes which way down the page

first you would do this:

<a name="{$lng.lbl_customer_voting}"></a>

but how would you create the link up top?

TESTING

doesn't seem to work.

Thanks for your help.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:36 AM.

   

 
X-Cart forums © 2001-2020