HTML5_Block_Link.fwaction (2016-01-25) (Downloaded 181 times)
Contains:
Compatible: Pro 5.5, Pro 6, and Pro 7
HTML5_Block_Link.fwaction (2014-05-16) (Downloaded 153 times)
Contains:
Compatible: Pro 6
Author: Walter Davis
Apply a link directly to an HTML item in Freeway 6. The HTML5 specification allows you to wrap an HTML item with a link, like this:
<a href="example.html">
<div id="item42">
<p>Some content here.</p>
</div>
</a>
Apply this Action to the HTML item, and set the link and any extra attributes for the link using the Actions palette interface.
Simon Clay
At last. Thank you Walter.
Walter Davis
Just pushed an update that works around an apparent Actions API bug. Links to pages in folders are now possible.
Justin Easthall
Can we get this to work with Anchor links too?
Walter Davis
How are you making the anchor link? This should just work, no matter what you put in the URL field.
Justin Easthall
just through the pop ups - select other, then internal etc through the action window - it goes to the webpage but no the anchor link which is further down - click icons on my homepage - they should go to each relevant anchor on the linking page but dont
Walter Davis
Try adding the link manually. Note the ID of the element you wish to link to, then enter that as
#theID
in the URL field, with nothing else around it. So if your element had the Name/ID field set todetails
in the Inspector, you would click on the External tab, and type precisely#details
in the URL field and okay out of the Hyperlink dialog.Justin Easthall
Yep that worked… the Pop way does not - a little note to all
Riccardo Sala
Hi Walter
it is possible to add also a "rel" field into your action?
For example is useful when we build a photogallery like fancybox.
Thanks a lot!
John Cooper
I'm not where this type of link would be requires? Could you give an example of its use?
David McCallum
Typically in FW you cannot apply a link to an HTML container only text or graphics within it.
This action allows you to apply a link to the entire item.
John Cooper
Yes, I know. I was wondering in what circumstances would one need to apply a link to the whole html item, rather than to text of graphics. I was looking for an example of that.
Moreover, would a user expect a HTML block to be clickable, and how would one know without mousing over it?
David McCallum
Not need - want.
Mainly for styling purposes or creating html item link.
Here is a quick example - http://www.deltadesign.co/FW7Test/block-link.html
Would you know without mousing over - entirely up to you if you want an item with a link to be styled differently. Only text links with default browser styling are obvious without mousing over.
Actions are all about enhancements - there are no actions that cannot be replaced with code, they just make it easier for the user to apply.
D
Sign In or to comment.