Yes, editing the exported HTML is the best way to accomplish this. There is no way to embed anchor tags within a page in Fireworks - you can add a link that includes an anchor tag, but you'll have to add that anchor manually after the page is exported.
And remember - the HTML and CSS that Fireworks exports is a starting point, not final production ready code. It's fine to use as demonstration, but there are always things than can be optimized, added, and improved.
If you are using FW to create wireframes -> you can create internal document links to other pages like this:
(I am assuming that you have a master page and multiple document pages)
- navigate to the object that you want to make into a link
- click the web layer
- select the Rectangle Hot Spot tool
- Draw a hotspot over your link
- from the dropdown in the properties panel - choose the internal FW page that you want that link to go to!
btw -> it is 1,000 % ok to use FW to create wireframes and use internal link
This is actually not entirely that difficult.
- Navigate to the area where you want the anchor to reside. The point at which the scroll will jump to.
- Add an HTML Slice at that point and Click the Edit button in the Properties panel to add the html "<a name="#name"></a>" to the slice.
- Also in the properties panel, set the width and height of that slice to 1x1 so it only takes up a pixel. When rendered the slice will appear as a white pixel.
- Now create another slice over where you want the link to that spot as an image or whatever.
- In the properties panel, change the "Link" option to #name and the target option as "_self."
- Go to File >> Preview in Browser >> Preview All Pages in [Browser Name] and watch your anchor links in action!
Let me know if this is helpful or not.
Thanks chan-ingenuitycc - this worked for me. Here are a few more tips to folks who are trying this out:
- I didn't bother with Step 3 to set the slice dimensions to 1x1 because I simply put my slice on an area with a white background.
- Step 4 is actually placing a hot spot, not another html slice. (These two tools are located side-by-side on the "Tools" palette, under the section labeled "Web")
- In my project, I was linking to a specific area on different page (rather than within the same page like Kguy2's original question above). You can do that by changing the link destination to pagename.htm#name in the Properties panel. No need to change the target to self if you're going to a new page.
- I exported to HTML afterwards to create a clickable prototype. Be sure to included HTML slices in the export settings or else it won't work.