PDA

View Full Version : link to specific fragment?


george
09-Sep-2005, 09:20 AM
Sure this has been answered before but searching the forum has not brought it up. Whats the method of creating a link say, on the homepage, to take you to a specific fragment on another page (not just the page the its in, the actual fragment halfway down it).

jont
09-Sep-2005, 10:05 AM
If you look at the published web page source code just before your fragment text you will see something like <a name="a124"></a> the a124 is the page anchor.

To link directly to that fragment that is on page widgets.html use the following url in your code http://www.site.com/acatalog/widgets.html#a124

Luddite
09-Sep-2005, 10:21 AM
Can the same method be used to link to a direct product, not just the page that product is on? Again, I've seen this on a thread recently but can't find it now.

jont
09-Sep-2005, 10:28 AM
You should really use

http://your.URL/cgi-bin/ss00000x.pl?PRODREF=12345&NOLOGIN=1


where 12345 is the product reference

Luddite
09-Sep-2005, 10:32 AM
Thanks John - again!!

Mike Hughes
09-Sep-2005, 10:33 AM
If you're not using customer accounts then the search engine friendly way to link directly to products is the same as Jont gives for fragments. i.e.:

http://www.site.com/acatalog/widgets.html#a124

Where 124 is your product reference number.

Mike

Luddite
09-Sep-2005, 10:47 AM
I'll give it a whirl........
(sorry to hijack your thread George)

george
09-Sep-2005, 10:50 AM
Aye, just be careful Nick. ;) lol


Thanks for the replies folks.

Mucho appreciatedo.

Luddite
09-Sep-2005, 11:16 AM
If you're not using customer accounts then the search engine friendly way to link directly to products is the same as Jont gives for fragments. i.e.:

http://www.site.com/acatalog/widgets.html#a124

Where 124 is your product reference number.

MikeAlmost worked a treat - the link seems to take you to the row of products underneath the one I want - if you've got a min, go to http://www.theperfectpad.co.uk/ and select the far right image (a cushion) underneath the floorplan image. The link takes you just a little bit too low on the page. Its as near as dammit though, so i'm not going to split hairs!
Nick

george
17-Jan-2006, 02:06 PM
If you look at the published web page source code just before your fragment text you will see something like <a name="a124"></a> the a124 is the page anchor.

To link directly to that fragment that is on page widgets.html use the following url in your code http://www.site.com/acatalog/widgets.html#a124


Cannot see this reference on the `view source` page. Any ideas?

For an example I'd like a clickable text link on one of the sideboxes to the `delivery` fragment on this page...

http://www.footballheaven.net/acatalog/Frequently_Asked_Questions.html

This seems to have been requested a few times within the forum so it would be good to get an answer (I had no joy looking).

Bruce
19-Jan-2006, 01:03 PM
George,

To do this on the brochure page you would have to create a seperate brochurepage for Delivery Charges and put the fragment in there and then link to this page in the right hand box. The ref that Jonty was pointing you to would be for a fragment that is on a Catalog page where it has a reference number.

Kind regards,

remmo
19-Jan-2006, 09:02 PM
Would this approach also work for linking into a specific part of the Terms and Conditions? I want to link from the homepage to the "Credit Card Security" part of the T&C's as generated by Actinic... or will I need to create a new brochure page?

Bruce
23-Jan-2006, 04:07 PM
Replied at http://community.actinic.com/showthread.php?t=18708

george
24-Jan-2006, 06:20 AM
With (all) brochure pages appearing on nav bars you maybe don't want too many of them. Maybe a method of directly linking to a (brochure) fragment is something for the wishlist.

Is there something you could include in the fragment (htmlwise) that would make it locatable?