Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am converting my html website to a CMS format. I have anchor point hyperlinks (from a word or phrase on one page to a specific point in the text of another page.
In html webpages, pages are separate files with file names and I know how to do that. CMS however is a database format. Pages are not file names. So I don't know how this is done.
Could someone possibly show me the code that is used to do this in CMS. As I'm not a real code master, hopefully someone can explain what goes in each segment of the code.
In advance, thanks much

What cms are you using? Also most cms will have a feature where you can click to make a new link and it will ask you what page you want it to go to in your site.

Thanks for responding.
I am using Mambo. In their WYSIWYG editor (but you can also edit via text editing mode to actually write code) there is a button for to insert anchors, and a box comes up to name the anchor. That part works fine.
Let's call that page the target page. Now when you then go to create a link to that anchor in a different page (we'll call the source page), I can highlight a word that I want to create as the link to, and then can click on a link to icon. A box comes up with several dropdown type boxes of possible types of links. One of those is labeled Anchors. The problem is that the anchor I named earlier does not appear there. That dropdown is totally empty. So you are foiled right there. Very frustrating.

Not familiar with Mambo (aren't they called Joomla now?), but I think you should use this:
hxxp://link_to?the=target&page#anchor_name
... as links in the source page.
Basically you only need #anchor_name in the last part of a URL, to directly "scroll" to an element named or ID'd anchor_name in a target page.
---
Fubar

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |