Page 1 of 1
More generic version of Gallery module
Posted: Fri Jul 26, 2013 11:15 am
by boonier
Is there a module that exists, like the Gallery, that I can insert content into - eg. could be text, then a image, then embed code for a video, then more text....
Ideally I'd like the option to be able to order them in the backend, like the Gallery. Also option to show/hide these blocks of content.
I think this would suit portfolio projects, where the content is often arbritary and like a sketchbook. I have been developing in
The Secretary cms and wondered if this could be replicated somehow in CMSMS
Can I fashion something like this using Listit2?
cheers!
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 1:00 pm
by velden
I think you can make it in LI2 (ListIt2). Actually I once made it for image and video.
It shows a dropdown list (with upload option) for images (photo) or the user can enter a Youtube video-ID and upload a thumbnail picture for the video.
In the summary template, I check whether the video id is intered and then output video embedding code, else it will show image.
You can extend this with an extra textarea field etc.
It would be nice if the image dropdown could be replaced with an user friendly image picker (like GBFilePicker) but I don't know if that's possible.
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 1:08 pm
by uniqu3
velden wrote:
It would be nice if the image dropdown could be replaced with an user friendly image picker (like GBFilePicker) but I don't know if that's possible.
If you carefully read module help, you will find out that there is ListItXDefs module, which provides GBFilePicker field, once GBFP and LIXD are installed, scan fields in ListIt2 and GBFP field will become available.
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 1:32 pm
by boonier
Thats a nice simple approach - using the logic in the template..
But I wonder if I can be a bit more freeform about a) what sort of content blocks I want b) how many and c) the order to appear in
example:
1. I add an image block (with image upload field)
2. I need a text block below that
3. I add another image block
4. Then I want a video embed block
...
later, i want to change that order:
4. Then I want a video embed block
1. I add an image block (with image upload field)
3. I add another image block
2. I need a text block below that
Whether I can arrange that graphically or by some numbering system is not a problem either way
thanks
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 1:50 pm
by velden
Ordering is done by drag and drop!
As far as I know all List items in one list are of the same type. So you must create all desired types (text, image, video, etc) in one 'definition'. When an editor/admin adds an item he will see all options and then must choose which to enter.
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 2:04 pm
by boonier
But my point is that once the fields are defined, they are set for each record. I can't add or remove them as I see fit (as I can in Gallery)
Maybe extending Gallery is more appropriate...?
cheers
edit***
actually looking deeper into the Gallery module, I can define different types of fields, could be a solution....
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 2:27 pm
by velden
But my point is that once the fields are defined, they are set for each record. I can't add or remove them as I see fit (as I can in Gallery)
Sorry, I don't fully understand what you mean.
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 2:34 pm
by Stikki
Of course you can delete existing fields or add new ones later on.
Data is removed from database when field is deleted.
When field is added (at any point), new records are injected as you fill the information of items.
What you can't do is add fields on-the-fly as each field applies to all items.
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 2:40 pm
by boonier
Sorry I'll explain myself better
So when you define a Listit instance, the fields are declared and sorted into the right order (for the backend), then you create the instance. You then populate these fields and then if you need another field you are stuck with the predefined ones, or you may have created a few extra for this scenario... either way you cannot sort the order of them (because you've already done that before you've created the Listit2 instance)
What I want to do is, whether this uses Listit2 or something else, be able to add or remove them and order them, where I see fit. The Gallery kind of allows this with its extra fields, but I don't know yet if you *have* to upload an image just to get access that extra field...
Did you see the link I provided above?
http://www.secretarycms.com/
Re: More generic version of Gallery module
Posted: Fri Jul 26, 2013 7:12 pm
by velden
As Stikki explains, LI2 allows you to add new field definitions, even when you've already have existing items.
The same will probably apply to gallery.
Personally I think LI2 is the better choice. Why not install cmsms and LI2 and play with it?