multiple sliders on a single page - web

all. I have noticed that almost every single sample slider gallery out there uses IDs to identify their gallery div. Is there a way to easily change these to accept classes? Or what options do I have to make more than one slider on a page. I tried with many of them and they didn't work... Don't ask which ones because I have got no idea, after about the 15th one I didn't bother trying to remember what it was called.
So yeah, what sliders are there that are able to be on a single page more than once?

Check this out. This is a Slider that I have actually used in my own website. This one doesn't use ID's but Classes. Trying to change all the ID's to classes in a slider that uses ID's could be a nightmare.
All you will do is just modify this so that there is two sliders on one page and that should do it.
http://plugins.jquery.com/jcarousel/
Hope this helps

Related

WxPython Feature Property Grid

I was wondering if a feature for WxPython existed or if I need to make it.
Here is a sample from a C# program I am trying to achieve with a property grid:
Sample Grid Image
I want this look with a checkbox in front of a PropertyCategory such as Group 0 or Message 0 in PropertyCategoryExample and can include the category. If you include the parent category I want the children categories to also be included.
Basically it acts as the expansion next to it but is a checkbox. I want to be able to still expand and shrink but just an extra checkbox when I go to save to see if the user wanted it included.
I have looked around in the docs and web but can’t find anything related to this. Do I need to make a custom property to do this?
I have asked on the discussion board but I haven't heard anything back
Thanks for your help in advance!!!

Kentico 10 BasicRepeater - implementing custom navigation between items

I have a list of custom items of the same page type being displayed in a basic repeater with a page size of 1. I want to implement my own navigation for the back and forward through the items.
I tried using a Text / XML transformation so I'm not sure if I have to revert to using ASCX.
However DataItemCount works fine for the number of items but not the current "item" index. I have tried DataItemIndex and DisplayIndex which are always zero. I have tried accessing the current Pager (although ideally I want to hide this) but am not 100% sure how to reference it.
I also need to be able to navigate to the next and previous item. I'm sure I could make use of the querystring page parameter in a custom method but don't know how to write or how to call this. I am struggling to find examples which don't simply involve evaluating a column value.
It sounds like you need a carousel. I'd go with javascript solution for this: it is more efficient as it does not reload the page when you navigate between items.
You can also use this:
https://devnet.kentico.com/articles/previous-and-next-links-to-listed-pages
It for version 8.2, but with none or a little code adjustment it should work in any version.

Orchard Module Override a Field Driver

Hello fellow Orcharders!
I'm not sure if what I want to do is possible, but I want to override the Driver for a single Field in the Module I'm writing.
The Field I want more control over is the Content Picker field. Basically I want the Content Picker to load the shapes for their respective content items. I've looked at Sipke's Content Picker Widget for an example on how to load shapes, however I'm unsure of the best/recommended approach to implement something similar in my module.
I have the Content Picker Field attached to my Content Part, and the default Content Picker comma list of Content Item titles appears as expected. I have tried to define an Alternate in Placement.info, but I can't load the Content Item shapes from within the Alternate view.
Presumably, as per Sipke's example, these shapes need to be built in the Driver and passed along. If this is correct thing to do, how could I do this in the most Orchard-y way with minimal "hacks". Looking into the debugger, I could "hack" my way to the Field I need in my part's Driver; but the module I'm building will be reused in the future by people unfamiliar with it, and if they start adding/deleting Fields from the Content Part, I'd like everything to behave accordingly!
Of course, if I must take the "hacky" option, I'm willing to do so, but only after I've exhausted all other options. This is my first module, and I've learnt an incredible amount along the way, and I'm really trying to learn the "right" way to build an Orchard Module as best I can.
Thanks in advance!

Yesod Editable Table

I need to make a table with an editable column. Each row is a separate record. I want to be able to display hundreds of records, perform edits to them and then submit them back to the server for updating. I am not sure this is really supported by the forms infrastructure.
Is there a way to make a repeatable form such that I would get a list of results back? This seems to be the closest solution I can envision without writing my own in javascript. Any ideas on this would be welcome.
Don't reinvent the wheel. Just use one of the full featured js grids like jqgrid or extjs if you want the full pack of UI components.
I use jqgrid with yesod, edit rows both in grid and in outside panel and submit the changes back.
I think the problem with your approach is that you found your hammer (yesod forms library) and now looking for a nail.
You don't have to use every bit of yesod just because its there.

How to create the LWUIT 3D carousel

Do anyone know on how to create 3d carousel effect in LWUIT?. Can anyone explain me with a sample program on how to implement?.
First of all, I'm considering you want to use Lists, that's the most sensible way to do it, isn't is?
The first thing you want to know is this List.setFixedSelection(List.FIXED_CENTER), and that's the easy part. Tha method makes the list scroll around the middle displayed element, it's to say, it will add the carousel effect.
The difficult part comes when adding the 3D. First ad all, you should have a look to this article, if you haven't done it yet. It's compulsory to understand how LWUIT Lists work and what you can do (and how) with them. Basically you would need to implement a ListCellRenderer and specially the getListCellRendererComponent(List list, Object value, int index, boolean isSelected), there you would have to add the corresponding logic to detect where the list element is going to be painted, and play with the Styles to set shadows, gradients, or whatever you want.
And I'm sorry but I don't have any sample for you, maybe you can have a look at Shai's Blog, I don't know whether there is that specific sample, but there are a lot of them.
Good luck and regards.

Resources