Configure jQuery Cycle plugin

If you have questions about using mojoPortal, you can post them here.

You may want to first review our site administration documentation to see if your question is answered there.

This thread is closed to new posts. You must sign in to post in the forums.
11/2/2009 3:50:42 AM
Gravatar
Total Posts 123
/Mats Lillnor

Configure jQuery Cycle plugin

Hi,

I am using the jQuery Cycle plugin by enabling it on html-content in mojoPortal.
It works great, but I want to adjust some settings for the plugin.

According to this page there are quite a few things that can be adjusted. I want to modify the option "speed" since I think the transitions are too fast with the fade-method, you can hardly note any fading, the picture just switches.

How can this be achieved in mojoPortal?

It would be nice to have a field in the settings for the html-content to put these options in. Is it possible by filling out the "CSS Class"-field and then enter something clever in the html-code?

 

/Mats

11/2/2009 6:29:57 AM
Gravatar
Total Posts 18439

Re: Configure jQuery Cycle plugin

Hi Mats,

If you check demo.mojoportal.com, you will see we have already added a setting for Transition speed and a way to select an element within the content to be the slide container rather than the whole content. Click the help links next to the settings for more details.

So this will be in the next release, or you can get it now in a preview build for MS SQL available on our Novell Forge download page.

Best,

Joe

11/2/2009 3:55:49 PM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Configure jQuery Cycle plugin

Hi again!

 

I followed your advice and downloaded and installed the interim-build by oct 31.

Updated the files, did a iisreset and hit the page /setup/default.aspx, but still no option of Transition speed :-(

So, after a few other tries with emptying caches and so on, I went to demo.mojoportal.com to check it out, but there is no setting there either! Am I blind or missing something?

 

/Mats

11/2/2009 4:08:23 PM
Gravatar
Total Posts 18439

Re: Configure jQuery Cycle plugin

Hi,

Sorry the setting is named "Transition Interval In Milliseconds", it is the equivalent of speed, it is how long to stay on a slide before transitioning to the next one, so a higher number is slower and a lower number is faster.

Hope it helps,

Joe

11/2/2009 5:08:51 PM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Configure jQuery Cycle plugin

"Transition Interval In Milliseconds", it is the equivalent of speed

I am sorry Joe, but that is not the case.

The interval was present before and correlates to the "timeout" option value and is the interval between changes from one item to the next (as you correctly say), but the "speed" setting is how long the transformation itself goes on. The problem I see when using transition fade, it just swaps too fast, so I want the fading procedure itself to take longer.

 

From the jQuery documentation:

Value         Default   Meaning
---------    ----------  ----------
timeout:       4000,  // milliseconds between slide transitions (0 to disable auto advance) 
speed:         1000,  // speed of the transition (any valid fx speed value)

 

Besides from this specific settings, there are numerou s of other tweaks that can be made. How can this be achieved in MP? If there is no gui for this, can you give a hint on where in a file or how this can be adjusted in the html of the content?

/Mats

11/3/2009 1:51:17 PM
Gravatar
Total Posts 18439

Re: Configure jQuery Cycle plugin

I will add a setting for the transition speed and rename the other setting to Slide Duration.

I actually have implemented a .NET control that exposes all the settings of the cycle plugin as properties on the control but I do not want to expose all of them as settings in the Html module except on a case by case basis where I agree with the need to expose it. More settings means more confusing to users so I really want to limit it to just the very useful settings and leave out obscure ones that are of little value so that it is simple to use and understand nad hides the complexity from users.

Best,

Joe

11/4/2009 2:20:26 AM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Configure jQuery Cycle plugin

Joe, you are the greatest!

mojoPortal is faboulus and your support is second to none, absolutely fantastic. It is like Christmas day every day, you just wish for a feature and before you can say "mojo" it is implemented! I really look forward to the next release (especially for the file upload feature), I can't wait! In fact it would be very nice to see an interim build with this implemented already today... Wink

 

About the jQuery cycle options, sooner or later someone wants another option implemented and then you implement that one and so on, which in time will make it cluttered anyway.

How about having only the few options that are present now and instead add a check box or button called "Show advanced options" (which is by default not checked) and if you select it all of the other settings unfolds?

(Also i suggest that you keep the terminology Interval instead of Duration which sounds more logic to me, but I am not a native English-speaker so you might just disregard this.)

 

BR

/Mats

11/4/2009 7:03:18 AM
Gravatar
Total Posts 18439

Re: Configure jQuery Cycle plugin

Hi Mats,

Many thanks for the beers!

I will try to put up an interim build by the end of the day today, I'll post here again when its available. I've added the settings for shared files as discussed in another thread and I've added the Transition Speed for the Html setting. I noticed when doing this that the actual default transition speed for the plugin is 1000 but I had mistakenly made it 300 on my control which made it too fast. So really this setting might not have been requested if I had made the correct default in the first place.

The thing about the settings page is that the same settings page is used by all content features as a way to not have to implement a special settings page for each feature. The trade off however is that it would be complicated to implement complex show and hide logic based on other settings. I can go along with using Interval instead of Duration in terms of labeling the setting.

Note that if someone really wants to use all the features of my .NET Control SlidePanel, which just inherits from Panel and adds the needed javascript based on properties set on the control they can easily use it directly in a custom feature and set any of the properties and add slide markup inside the panel.

<portal:SlidePanel ID="slidePanel1" runat="server"

After=""

Before=""

AnimIn=""

AnimOut=""

Autostop="false"

AutostopCount="0"

CleartypeNoBg="true"

ContainerResize="true"

Continuous="true"

...moresettings

>

 

<p>slide1</p>

<p>slide2</p>

</portal:SlidePanel>

Best,

Joe

11/4/2009 2:27:19 PM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Configure jQuery Cycle plugin

Great!

I found the new build and downloaded it.

 

Cheers
/Mats

11/4/2009 2:41:13 PM
Gravatar
Total Posts 18439

Re: Configure jQuery Cycle plugin

Cool, I just now uploaded it and was about to post.

Best,

Joe

11/4/2009 3:30:48 PM
Gravatar
Total Posts 123
/Mats Lillnor

Re: Configure jQuery Cycle plugin

Super, it solved my problem, now I can give permission to this person to upload the images.

 

BUT!, I found something that you might consider to change for the final release.

If a user has Edit permissions, the settings for "Allow edit users to change folder path?" and "Allow edit users to upload?" is not really of much use, since the user actually can change these settings and because of this can grant himself these privileges if he did not have them before. I am sure that this is not what you intended, right?

 

/Mats

You must sign in to post in the forums. This thread is closed to new posts.