I would like to provide an added function on the end of a URL.
For example the RSS feed uses a /feed/ after any feed that is designated.
The problem is that I want to provide 3 separate functions for a pool of nodes.
Specifically multi-bandwidth and formatted versions of streaming video clips.
/video/we-just-released-a-new-product/band/lan/
/video/we-just-released-a-new-product/band/dsl/
/video/we-just-released-a-new-product/band/dialup/
/video/we-just-released-a-new-product/smil/
/video/we-just-released-a-new-product/cc/
Another Node would look like this:
/video/how-our-product-works/band/lan/
/video/how-our-product-works/band/dsl/
/video/how-our-product-works/band/dialup/
/video/how-our-product-works/smil/
/video/how-our-product-works/cc/
or even:
/video/we-just-released-a-new-product/?band=lan
/video/we-just-released-a-new-product/?band=dsl
/video/we-just-released-a-new-product/?band=dialup
/video/we-just-released-a-new-product/?smil=yes
/video/we-just-released-a-new-product/?cc=yes
I am already utilizing the video module to provide an rss feed with an attached downloadable video file, but I also have instances where I just want people to be able to play video's that are available on a streaming server.
Obviously I could create a separate page for each instance, but this is tedious, especially if the files and their locations and information are an underscore and extension away. For example
It would be as simple as saying
if ($band == "lan") {
do something
} else if ($band == "dsl") {
do something else
} else if ($band == "dialup") {
do something else
} else if ($smil == "yes") {
do something else
} else {
do whatever you do by default
}
I can do this with an ajax function, since it's merely swapping out a filename and a height and width attribute everything else should stay the same, the only problem is my media embed is using a js and it doesn't like outputting the embed from an ajax call. To tell the truth the ajax is much cooler, but the url function would be more practical.
Comments
Bummer....
I guess nobody understands what I am trying to do. This could also be an output to pdf function. So that all of your node could be output to pdf on the fly, or anything where you want a function to be applied to any node, by just appending a function to a url.
WOW
Either I am bleeding edge, or everyone is out of it.
My current solution is to integrate some sort of tabbed interface, I attempted to use jstools, but it too ambiguous to me. I am just going to adopt jquery's tab plugin externally (http://www.stilbuero.de/jquery/tabs/).
The great thing about this technique is you can still direct people to a direct link to the proper bandwidth, as I gave in the example above.
Like this:
www.example.org/about/video/our-new-product#lan
www.example.org/about/video/our-new-product#dsl
www.example.org/about/video/our-new-product#dialup
Only problem now is stopping each instance of any media player plugin otherwise the playback and bandwidth use overlaps.
Really wish my ajax solution would just work already.