11 years ago
7
Topic

Hi, I have Joomlart October template called JA Magz. And it supports 3 different content types: Text (basic content), Video (example) and Gallery (example). It's a simple dropdown menu with these 3 options. So when you choose "gallery" it creates gallery slider with ALL <img src="#"> that are in article, no matter are they below each other or inside the text. If you choose "video" it apply black wrapper (background color) of article. Here is how it looks like in backend => screenshot (it's Croatian language but you can clearly see JA Magz tab with these 3 options).

So my question is how to add this extra option to seblod content type?

Get a VIP membership
11 years ago
1
Level 1

Hello Budo,

welcome on SEBLOD.


I think you don't have anything to do. SEBLOD display image & video with good html code. So just try with the SEBLOD form article.


Regards.

Lionel

11 years ago
0
Level 2

I'm not sure that we understand each other. Take this article for an example. It's "text" article and background color of website is white and you can see image and text below. But if you change inside that article from "text" to "gallery", that that article would look like this, where you can see that background is changed to black and images are automatically linked to slider, no extra class inside <img src> tags.

So I want to have that option inside SEBLOD, to change from "text" to "gallery" or "video".

178 Posts
Jeka
11 years ago
2
Level 1

Hi.

For that you can create new field "Ja Magz Content Type" with type " Simple". 

As options set:

gallery=Gallery
video=Video
text=Text
As storage set:
JSON / Article / attribs[content_type]
Drop this field to needed seblod content types.


11 years ago
1
Level 2

Thank you Jeka for your answer. It's almost a "working" solution but as you can see in pic background changed but images are not in added automaticly in slider. And when I set options as you said, option 'gallery' is shown as cck gallery and I think it's not the gallery I need, as you can see here.

178 Posts
Jeka
11 years ago
0
Level 3

Hi.

Sorry, i made some mistake. Try set as values 

Gallery=gallery

Text=text

Video=video

And report here

178 Posts
Jeka
11 years ago
1
Level 1

And there one more problem. 
Ja magz content types use html override of com_content article template. As you use Seblod you have to make more deep customization. For now i dont see any other way to make it work.

11 years ago
0
Level 2

Changed options but still the same.

I think I'll use CCK for all articles except when I need to use video or gallery type, when I'll use joomla default system.

Thank you for your help, I appreciate it.

Get a VIP membership