First of all I would like to say its a fantastic module. One thing what I would love to see in this module is the ability to select different transactions on different pages. May be on create content page there could be a drop down in which we can select our required transaction effect.

Comments

idflood’s picture

Title: Abilty to chose different transactions effects on each page » Abilty to chose different transitions effects on each page

Hi,

This is a nice feature request. The problem is that I don't see how to make an UI for this. Ideally, the settings for a specific field could be overridden in a specific page.

One easy way to implement something like this would be to do it without UI. This could be done at the template level and the logic would look like this:
- For each field_slideshow field:
- Try to find the closest $(".slideshow_settings") element
- If such element exists, takes the settings from it

This way, you could override a node template and do something like this:

<div class="node-container slideshow_settings" data-slideshow-speed="400" data-slideshow-transition="slideUp" ...>
   ...
  <div class="field_slideshow_1">This takes the settings from the above node</div>
  <div class="field_slideshow_2 slideshow_settings" data-slideshow-speed="800">And this one has just the speed overriden, other settings come from the field setting</div>
  ...
</div>

What do you think of this idea?

fahadurrehman’s picture

I was thinking to override the transaction settings on specific page through js injector module.

I am not a coder so I don't know either it is possible or not and if it is possible than how to write a code for that.

What I assume the transaction effects settings are defined in following code and by overriding fx: settings.fx this code we may achieve the desired result but as I told you that I am not a coder so please correct me if I am wrong.

// Add options
var options = {
resizing: 0,
fx: settings.fx,
speed: settings.speed,
timeout: parseInt(settings.timeout),
index: i,
settings: settings
}

If it is some how possible, please contribute a code snippet.

lamp5’s picture

Issue summary: View changes
Status: Active » Closed (works as designed)