[Pro] Link to File Action

Hi guys,

knowing well that this won’t be a “great” action, I wonder if it is possible to have this action included a simple way to hook a “class”. Just a textfield or so.

The background:

using the lightbox (jQuery) natively, means to add all files and necessary classes by hand - no problem at all. But the re-written action could make it more FW-like.

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I’m not able to understand what your use-case is here. Can you give a concrete example? Show a link to a simple HTML page without the content you wish to add, and another with the content added. There is probably a combination of Actions already in the world that could make the page you’re looking for here. (I’m thinking that Protaculous 2 and AddSelector would give you the JavaScript library – or libraries – and additional classnames, respectively.)

Walter

On Dec 26, 2013, at 6:04 AM, Thomas Kimmich wrote:

Hi guys,

knowing well that this won’t be a “great” action, I wonder if it is possible to have this action included a simple way to hook a “class”. Just a textfield or so.

The background:

using the lightbox (jQuery) natively, means to add all files and necessary classes by hand - no problem at all. But the re-written action could make it more FW-like.

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

And the External Javascript action will select javascript files for addition/inclusion.

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Wrapping an example would be dumb cause it would be a working one. So let me try it that way:

All I thought of is an easier way to add jQuery Lightbox2 to Freeway. It requires currently the following steps (that are no problem to do)

  1. Place all required files on the server (via Action or manual)
  2. Place a “Zoom” instance of an image on the server
  3. Draw a graphic-item on the page, load the “thumb-image”.
  4. Link dialog, external, add the path to the Zoom-image, extended dialog, name/value “data-lightbox” / “gallery1”

A link to file action WITH the opportunity to add a name/value pair would (or to hook a class to the link) shortens the above pointed way. Step 2+3+4 would be redundant as far as can see.

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I used the above mentioned method on this page:

http://buenavista-socialarchitecture.de/projekte.html

to wrap the two big images close to the footer “together”.

So it’s all about classifying links on graphic-items, which could be re-used for other things as well (probably).

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

This is pretty much exactly what the ScriptyLightbox 2 Action does, with the substitution of Prototype for jQuery. You draw your “thumb” image on the page, apply the Action to it, and use the file picker in the Action to choose the large image version. All the rest (hooking the link with a classname, adding JavaScript to the page) is done automatically by the Action. So I guess what you need is for someone to port ScriptyLightbox 2 to jQuery.

Walter

On Dec 26, 2013, at 1:15 PM, Thomas Kimmich wrote:

Wrapping an example would be dumb cause it would be a working one. So let me try it that way:

All I thought of is an easier way to add jQuery Lightbox2 to Freeway. It requires currently the following steps (that are no problem to do)

  1. Place all required files on the server (via Action or manual)
  2. Place a “Zoom” instance of an image on the server
  3. Draw a graphic-item on the page, load the “thumb-image”.
  4. Link dialog, external, add the path to the Zoom-image, extended dialog, name/value “data-lightbox” / “gallery1”

A link to file action WITH the opportunity to add a name/value pair would (or to hook a class to the link) shortens the above pointed way. Step 2+3+4 would be redundant as far as can see.

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 26 Dec 2013, 6:08 pm, waltd wrote:

So I guess what you need is for someone to port ScriptyLightbox 2 to jQuery.

Is this Sarcasm?

If you ask me, hmm - no, not needed I know what I’m doing.

Just thought a bit “pro community”.

You once said:

Don’t use both libraries - find equivalents. I did - cause it’s anyway the only chance to step to jQuery if you are after self-adjusting stuff.

But if I could remind you on one thing you wrote a few days ago:

“… I think that Actions are the single feature that has helped keep Freeway relevant for me as my depth and breadth of knowledge about HTML and server-side programming have grown well outside of the bounds of the basic application. Without them, I doubt I would still be interested. They help me keep from doing busy-work, and since like most creative people, I am fundamentally lazy when it comes to repetitive tasks, there’s a natural fit for me…”

So I wonder how long I’ll keep up my interest in Freeway.

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Dec 26, 2013, at 3:24 PM, Thomas Kimmich wrote:

On 26 Dec 2013, 6:08 pm, waltd wrote:

So I guess what you need is for someone to port ScriptyLightbox 2 to jQuery.

Actually, I misspoke here – the version I was thinking of was SL3.

Is this Sarcasm?

Not at all. Everything that the Action does can be done by hand or with the combination of a number of Actions. F.E.:

Draw a graphic box on the page. Fill it with the thumbnail image. Apply the Link to File Action to the image, and set it to the large image. Apply the AddSelector Action to the thumbnail image, and use it to add the classname. Apply the External JavaScript Action to the page, use it to link up the script.

Repeat per image.

If you ask me, hmm - no, not needed I know what I’m doing.

Never doubted it.

Just thought a bit “pro community”.

You once said:

Don’t use both libraries - find equivalents. I did - cause it’s anyway the only chance to step to jQuery if you are after self-adjusting stuff.

Precisely – the ScriptyLightbox 3 does everything that Lightbox2 and jQuery does – except the ability to link to multiple images in a “slideshow” format. And that’s a limitation of the Freeway Action API interface more than anything else.

But if I could remind you on one thing you wrote a few days ago:

“… I think that Actions are the single feature that has helped keep Freeway relevant for me as my depth and breadth of knowledge about HTML and server-side programming have grown well outside of the bounds of the basic application. Without them, I doubt I would still be interested. They help me keep from doing busy-work, and since like most creative people, I am fundamentally lazy when it comes to repetitive tasks, there’s a natural fit for me…”

So I wonder how long I’ll keep up my interest in Freeway.

You could start by deconstructing the ScriptyLightbox 3 Action, and see how it works inside. It doesn’t use any exotic techniques – it’s a normal flat-file Action rather than a bundle – so it’s a good subject for dissection and learning. Actions are very simple programs, written in JavaScript and decorated in XML. Both of those technologies are essentially self-documenting, and there’s nothing compiled, so what you read is what the computer reads.

If you want, read through this page: gist:8138585 · GitHub for a commented version of the Action. I’ve tried to describe what each part is and does.

Walter

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Here’s a cut-down version of SL3 that actually works:

Note – this doesn’t add noConflict, didn’t take time to do that.

Walter

On Dec 26, 2013, at 3:54 PM, Walter Lee Davis wrote:

Actions are very simple programs, written in JavaScript and decorated in XML. Both of those technologies are essentially self-documenting, and there’s nothing compiled, so what you read is what the computer reads.


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Awesome Walter!

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Walter, thanks so far.

To be honest, all “lightboxes” work the more or less the same. So for exactly this, I’m not after an “action” for a specific one, I just thought about a little helping action.

All I want is a possibility to add a “class” and/or a “rel” to a link in Freeway which can be naturally done by the hyperlink-dialog.

The AddSelector Action might be fine, but useless (as far as I can see which is sometimes not much). It misses selectors like li, ul, and anchor. All I can do is p, DIV, Form and Table-stuff, interesting but not important.

I am basically not sure if it is Freeway’s API limiting the gallery function of a lightbox cause I already saw a working example (based on jQuery).

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

All I can do is p, DIV, Form and Table-stuff, interesting but not important.

I have a version that also includes Links (a tag) - and you could add your own if you felt inclined.

D


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On Dec 27, 2013, at 4:27 PM, Thomas Kimmich wrote:

Walter, thanks so far.

To be honest, all “lightboxes” work the more or less the same. So for exactly this, I’m not after an “action” for a specific one, I just thought about a little helping action.

All I want is a possibility to add a “class” and/or a “rel” to a link in Freeway which can be naturally done by the hyperlink-dialog.

Right. Which is one reason why the Action doesn’t cover those elements.

The AddSelector Action might be fine, but useless (as far as I can see which is sometimes not much). It misses selectors like li, ul, and anchor. All I can do is p, DIV, Form and Table-stuff, interesting but not important.

The Action was written to facilitate getting into the cracks between elements, where Freeway won’t let you go with the Item/ Extended dialog. If you place your cursor somewhere inside the line of text within an li, and use Insert / Action Item / AddSelector, you will find that the Action lets you select the LI as the target element. Going in the other direction (from the outside DIV in to the UL and LI within it) isn’t going to let you control the precise tag that the classname should be added to – it might apply to all li elements in that DIV, for example, rather than a particular one.

I am basically not sure if it is Freeway’s API limiting the gallery function of a lightbox cause I already saw a working example (based on jQuery).

The issue here is how do you upload a folder full of images using an Action? How do you get your individual lightbox link to relate to an entire folder of images? My mapping of one thumbnail to one large image is strongly influenced by what the Action and Freeway can do. In the jQuery example I posted on Github, the only relation between one image and another is the lightbox name you enter in the dialog. You can’t upload a bunch of images and link them to a single thumbnail, as in Softpress’s Showcase application, not using Actions alone. You still have to provide a file picker for the “large” image somewhere in the Action, and so while you may enable linking from one image to the next, you can’t avoid the need to select all of the large files, which means associating each one with its own thumbnail.

Walter

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You still have to provide a file picker for the “large” image somewhere in the Action, and so while you may enable linking from one image to the next, you can’t avoid the need to select all of the large files, which means associating each one with its own thumbnail.

Yeah - sure, but I’m not talking about an action, only about the picker (link2file action) and I’m still under the impression that this is the correct place to flavor it by some extra stuff.

Such as combination of Link to file and - don’t know - HTML5 item action (or ID2Class) or whatever. Am I so wrong here?

Cheers

Thomas


actionsdev mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options