Spry in Joomla

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
riceman
Joomla! Intern
Joomla! Intern
Posts: 92
Joined: Fri Mar 14, 2008 2:20 am

Spry in Joomla

Post by riceman » Fri May 16, 2008 5:18 am

Does anyone know if it is possible to use Adobe's Spry framework in an Article...without using a module? So basically hard coding it into the page...or template? This would of course require the .js files that spry uses, and the correct path to them, but i am wondering if it is possible. I am thinking of using the collapsible panel.

Maybe its easier to develop my own custom module, but I don't have a lot of experience with this...I have only created a simple image hold module.

Thanx

jackie7
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Fri Jul 18, 2008 2:03 am

Re: Spry in Joomla

Post by jackie7 » Fri Jul 18, 2008 2:07 am

Hi - I'm wondering if you ever got an answer to this because I'm trying to do the same thing: bring a site into Joomla but also have the spry tabs if possible...
thanks

esatterwhite
Joomla! Intern
Joomla! Intern
Posts: 50
Joined: Wed Aug 13, 2008 1:23 pm

Re: Spry in Joomla

Post by esatterwhite » Sat Aug 23, 2008 2:32 pm

Spry is just adobe's implementations of AJAX.

I would imagine all you would need to do is set it up in dream weaver

Move the .js files over into your joomla site & Change the paths & implement it into the pages you want to use it.

and then move the HTML into whatever article / custom HTML module you want to display it in...

Shouldn't be too difficult.

Let me know if the works

User avatar
topwebs
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 211
Joined: Wed Sep 06, 2006 1:14 pm
Location: St Louis, MO
Contact:

Re: Spry in Joomla

Post by topwebs » Mon Sep 29, 2008 1:20 pm

I have tried a Spry accordion in a Joomla article and it worked fine. You need to add the Spry css to your template.css or separately load it in your template. The javascript load can be included within your article if you use an editor that does not strip javascript like JCE or turn off all editors.
Dan Walker - Web Designer & Developer @ Top Webs Network
Custom Joomla & Wordpress Websites
www.TopBusinessWebsites.com
www.TopChurchWebsites.com

esatterwhite
Joomla! Intern
Joomla! Intern
Posts: 50
Joined: Wed Aug 13, 2008 1:23 pm

Re: Spry in Joomla

Post by esatterwhite » Mon Sep 29, 2008 7:57 pm

it may also be of interest that a lot...well none of elements will display right if javascript is turned off for some reason. Some people just don't like to use it.

The default widgets insert <spry> </spry> tags which don't really exist. So it would be wise to move all of that stuff to seperate files so the page doesn't break if the javascript is turned off. There is a pretty good tut on the subject on the adobe website.

tolakvoa
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon May 04, 2009 1:15 pm

Re: Spry in Joomla

Post by tolakvoa » Tue May 05, 2009 12:55 pm

Does any one have the tutorial for this. Can you guy help?
Thanks allot

JustM
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Jul 11, 2009 8:42 am

Re: Spry in Joomla

Post by JustM » Sat Jul 11, 2009 8:46 am

Hello everyone :)
This is my first post so please forgife me if I do something wrong.

I have a small question. I added the spry css data to the template css this part works great :D
But I'm not shure what to do with the .js file where do I put that information? I mean in what file?

All I know this doesnt work.
<script src="http://{path to document}/SpryTabbedPanels.js" type="text/javascript"></script>

Thanks in advanced,
Marco

User avatar
corrado444
Joomla! Guru
Joomla! Guru
Posts: 860
Joined: Thu Jul 06, 2006 8:30 am
Location: Sacramento
Contact:

Re: Spry in Joomla

Post by corrado444 » Sat Jul 11, 2009 8:55 pm

I have used Spry in a couple of my Joomla sites and it worked OK.
The way I did it was to first insert it in a plain HTML page and then, after making sure it worked, I transferred the JS code to the index.php template page. I also created a couple of conditionals in the template so that the spry only loads on certain pages and not others where it's not needed.

All in all it was a pretty good implementation, but I found it limiting for what it gave me and for how complex it was to make it work properly. I did it mostly because I am writing a book on Joomla and Dreamweaver integration and I have been exploring more ways to integrate Dreamweaver in my work flow. (I also tried the asset panel, history, etc. to see how they would help. Silly Adobe deactivates those panels right when you need them and for no reason I can see)

My suggestion to all that are trying to use Spry is to use either JQuery or Mootools based effects. There are some available that work as well or better than Spry, integrate better, have a wider user base and while they are commercial, they are somewhat inexpensive.
Off the top of my head I don't remember who was offering them, but I know they are there because I bought a few.

Don't let the "commercial" tag scare you off. If you compare how long it takes you to make Spry work, how inflexible it is in a dynamic environment (most of what Dreamweaver does is geared toward static or semi static sites) and how difficult (or impossible) to reuse the code in the same site, paying $30 for software that works is a small price.

Check out the JED

Goood luck
Watch the 10 Minute Joomla! Tips Video Podcast
Itunes: [url]itpc://10minutejoomlatips.blip.tv/rss/itunes[/url]
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips

JustM
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Sat Jul 11, 2009 8:42 am

Re: Spry in Joomla

Post by JustM » Sat Jul 11, 2009 11:06 pm

Thank you for your awnser corrado444 I really apreaciate it :)
Reason I am using spry i cause I need to make a gallery but every gallery (img) doesn't support external pictures they all asume you got unlimeted space on your server. What i need is imageshack and a way to intergrate a gallery in my site that allows you to click on the tumbmail and go to the fullscreen version on imageshack this way i can divert bandwith without paying loads of money for bandwith. spry allows me to make a simple gallery and it all loads in one page once you click on page two it loads indipendent of page one but you dont need to reload. I'm not really scared of paying for applications cause i do like to support developers :D i'm just against paypal and credit cards ( having a slite overspending problem when i have those things hehe :( )
But I will try your suggestion it never hurts to try :)

Btw. if annyone hears of an app that does what i just discribed please PM me it would make my life much easyer hehehe I'm even willing to pay for it :D

Hehehe i only got one question sinds im kinda a noob in php do i need to use special js tags in my page? could you point me to some nnice tutorials. I prommis everything i learn will eventually go back to the community in the form of plugins. it might take a while but im the kinda guy who is willing to spend ages behind dreamweaver and other editors to make his plugin flawless.

Once again thank you I really apriciate your awnser and it didt help :D

User avatar
corrado444
Joomla! Guru
Joomla! Guru
Posts: 860
Joined: Thu Jul 06, 2006 8:30 am
Location: Sacramento
Contact:

Re: Spry in Joomla

Post by corrado444 » Sat Jul 11, 2009 11:29 pm

Hi M. I have not tried this myself, so I cannot guarantee it will work but I am pretty sure it will. It also depends on how many images you need to process per "gallery", but if you were willing to hand code them in Spry you are probably going to be happy with what I am about to suggest.

But before I go into it, I have to wonder what hosting you are using that you are reduced to hosting your pictures offsite for fear of either disk space or bandwidth.
There are plenty of hosts with *almost* unlimited disk and bandwidth for less than $10 a month. Go to my site: http://www.conticreative.com/Hosting/tigersitescom.html and check these guys out. (and yes, if you click on the link and buy hosting from them I make a couple $$. Copy and paste their url if you don't want me to profit from my suggestion :)
Also, whatever you do I strongly suggest you get a Cpanel based host as it makes things a lot simpler. If you are afraid of moving your site to another host, don't. It's a very simple process, especially if you already have Cpanel.

That said, you should look into the JCE editor (google: jce Joomla content editor). For a mere $20 a year you can download the premium plugins, including the Advanced image manager that lets you build photo galleries in your articles. Instead of uploading the pictures to your server, simply place the absolute URL in the "popup" tab and in the "Picture" tab (or keep the thumb version locally and link the popup externally) and it should work. I see no reason why it wouldn't.
Give all the pictures the same "group" name and JCE will create a lightbox based gallery of the pictures right into your articles.

Check it out and let me know. When I have time I'll give it a try with my Picasa account.
Watch the 10 Minute Joomla! Tips Video Podcast
Itunes: [url]itpc://10minutejoomlatips.blip.tv/rss/itunes[/url]
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips

Koldsnapz
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Jul 24, 2009 3:34 pm

Re: Spry in Joomla

Post by Koldsnapz » Wed Jul 29, 2009 6:08 pm

"Hello everyone :)
This is my first post so please forgife me if I do something wrong.

I have a small question. I added the spry css data to the template css this part works great :D
But I'm not shure what to do with the .js file where do I put that information? I mean in what file?

All I know this doesnt work.
<script src="http://{path to document}/SpryTabbedPanels.js" type="text/javascript"></script>

Thanks in advanced,
Marco"


Did this get resolved? I am stuck at this point as well. The CSS worked fine but I can't seem to link the JS properly. Where does it go? Can I put the whole file somewhere or do I have to pull the code and paste it into something?

Please Help!

-T

User avatar
corrado444
Joomla! Guru
Joomla! Guru
Posts: 860
Joined: Thu Jul 06, 2006 8:30 am
Location: Sacramento
Contact:

Re: Spry in Joomla

Post by corrado444 » Wed Jul 29, 2009 7:28 pm

First of all, as I mentioned before, Spry is not ideal for Dreamweaver. At least not the way I did and I did not go too much further into it when I realized it wasn't as flexible as equivalent add-ons.

Since then I have not had time to explore the issue in detail and I probably forgot a great deal.

That said, if I recall I first created a static HTML page where I made the spry work.
Once I had that going for me, and I knew the Spry itself was working fine, I proceeded to relink the whole thing.

I placed the JS files in a folder called "spry" inside the template folder.
CSS files went into the CSS folder
Then I used search and replace to find every link to the JS and CSS and I moved those to the index.php file in the template.

To link those, I basically copied the JS files links that the menu was using in my template. Usually that means a php variable with the absolute path and/or one with the path + the template path (name).

What I found at the time is that each Spry build only works with its own JS files and it needs to call a JS file both from the <head> and from right before </body></html> the body closing tags.

Again, my memory is fuzzy, but I remember that if I wanted to place more than one instance of the same spry on different pages I could not reuse the same spry but I had to create a new one.

I'll tell you what. If you guys go an subscribe to my new Screencast, one of the features I am trying to establish is a "Dear Abby" style interaction with my viewers. Just email
joomlaquestions AT conticreative.com. But first do subscribe to the Screencast. I am working hard at it and I want it to become a great free resource for the community.

The screencast name is 10 minute Joomla! Tips and it's available on [youtube], vimeo, blip.tv and on Itunes and Feedburner.

Here are the links:
http://feeds.feedburner.com/10MinutesJoomlaTips
http://10minutejoomlatips.blip.tv/
http://vimeo.com/channels/10minutejoomlatips
http://www.[youtube].com/user/10minutejoomla
Direct Itunes subscription:[url]itpc://10minutejoomlatips.blip.tv/rss/itunes[/url]

But I'd appreciate it if anyone could subscribe to the Itunes version as well. The Itunes version is lower quality (until I figure out how to provide both the HD and the Ipod style version in the Itunes store).

The best are feedburner, Vimeo, Blip.tv or directly on my own website at:
http://www.conticreative.com/10-Minute-Joomla-Tips/

If I get more than one single request on the topic, I am going to see if I can screencast it. If I can't, meaning that the topic is too long to squeeze into 10 minutes, what I usually do I publish it on my blog in installments (so that I maintain the 10 minute limit on my screencast) but the flip side is that I keep the production value pretty raw: no fancy editing, no music intro, etc.

Still, I should be able to make the Spry work and maybe even find a better way to integrate it than what I did previously. I kind of doubt it because of the way Spry needs to work is just not a great fit for Joomla or any dynamic web site. Adobe is definitely in the dark ages as far as optimizing Dreamweaver for dynamic web site integration. But I did try it on DW CS3 not CS4. I know some things have changed and maybe now it works better (but I doubt it).

By the way, I am writing a book on Joomla integration with Dreamweaver. When it comes out is going to be really useful to a lot of people and I am hoping to have it ready inside of the next 3 months. I am going to have a sign up list on my web site and I am going to give sneak previews to those that sign up for the alert list (give me a couple of days to get to that).

Sorry for the shameless plug to my screencast and the upcoming book. But the screencast is free and a lot of work. I'd like to be able to have many subscribers so that I feel more motivated and I think I am doing a pretty good service. You'll be the judge.
Watch the 10 Minute Joomla! Tips Video Podcast
Itunes: [url]itpc://10minutejoomlatips.blip.tv/rss/itunes[/url]
Feedburner http://feeds.feedburner.com/10MinutesJoomlaTips

b_engh789
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Wed Dec 22, 2010 8:56 pm

Re: Spry in Joomla

Post by b_engh789 » Wed Dec 22, 2010 8:59 pm

Okay, I am no good at this coding game, but I'm trying to figure this out. I can not figure out how to get the correct path to the js file. The CSS code is fine and appears correct. But I can not link the js.

I put the js script file in the template folder and I'm trying to figure out the path.

Can anybody show me an example of a path that works so I can see where I'm going wrong?

Thanks!!!


Locked

Return to “General Questions/New to Joomla! 1.5”