X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   How tag specific points in a page so links will lead to that (https://forum.x-cart.com/showthread.php?t=5212)

spike 11-13-2003 03:55 AM

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?

concepts 11-16-2003 11:33 AM

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

spike 11-16-2003 02:41 PM

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.

concepts 11-16-2003 03:20 PM

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

spike 11-16-2003 04:10 PM

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

concepts 11-16-2003 08:57 PM

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

xcell67 05-02-2004 01:13 AM

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.


All times are GMT -8. The time now is 06:10 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.