8 years ago
23
Topic

Hi,

I manage to finish the OS training course about SEBLOD and that helped me a lot. But i want to create another template for search item display. According to Template position overrides it says List items cannot be override. 

But there should be a way to create your own template for Search List items. Any thoughts or suggestions. 

Thank you

Get a Book for SEBLOD
4229 Posts
Kadministrator
8 years ago
10
Level 1

Hi,

you can create new template if you know php/Joomla coding. Just copy one of the existing ones and change necessary things (file/folder name, name in xml fields etc).

8 years ago
9
Level 2

is it similar to content template as I created that but can you please tell me what's the folder name I have to put as the mainbody.php is placed in minima/position/content-type-name-here/content

Also do you have a example of that

1283 Posts
Bucklash
8 years ago
8
Level 3

Hi

I don't know if these links will help. I created my own versions of Seblod's Minima, and List templates:

jb_slicked_minima

jb_slicked_list

Also, have a look at 

seb_rotator

Bucklash

8 years ago
3
Level 4

Hey,

You are a superstar. Do you have demos of these templates. Thanks a lot again.. Great work 

1283 Posts
Bucklash
8 years ago
2
Level 5

Hi

I've got my site where I use slicked_minima for the contact form on main page, and on all of my list views use jb_slicked_list.

There is a carousel on all pages except hone page

Minima with Slides

List with Slides

8 years ago
1
Level 6

Hey. Thats really good looking site. Also the structrue is really good. Good job man..

1283 Posts
Bucklash
8 years ago
0
Level 7

Thanks for that, I appreciate the feedvack

8 years ago
0
Level 4

Hey Buck. Thank you so much for sharing this. I installed the list template but I cant get it setup as SEBLOD template. 


sorry my bad i fixed this. 


PCo
8 years ago
2
Level 4

Hi Buckslash, 

well done and thanks for publishing it @Github, watched+1 ;)

jb_slicked_list is not available any more?

Best regards, Pierre.

1283 Posts
Bucklash
8 years ago
1
Level 5

Hi Pierre

Yes, it is on the Seblod store now.

JB Slicked Minima will be on there soon.

I have improved them both greatly:

- rock solid,

- really versatile

- really clean output

- comprehensive manual

I am soon to put more details on there... the manual, mainly aimed at beginners, goes over creating a list, and then demonstrates some of the key uses of Slick such as:

- 'asNavFor'

- 'appendDots'

- 'appendArrows'

I can email the manual to you if you want to check it out...

I will be taking JB Slicked Minima off github soon ;)

Buckalsh

1283 Posts
Bucklash
8 years ago
0
Level 6

PS

Thanks for comment :)

1283 Posts
Bucklash
8 years ago
11
Level 1

Cool :)

This might help you get your head round the template:

Seblod Tut

8 years ago
10
Level 2

Thank you so much. Im watching the video now. 

What I want to do in this list

Title and Intro text + Image (this image should assign depends on each item type)

have you done having a image display by the checkbox selection? 

its sort of check whether the item is match if so then display this image. image next to the Item and intro text. hope this make sense :)

1283 Posts
Bucklash
8 years ago
9
Level 3

Hi

Ha, not really... I can maybe help later today or tomorrow..

Bucklash

8 years ago
0
Level 4

Your input is most valuable. I will give it a try and see. Thanks a lot. 

Again.. SEBLOD is powerful when I see your websites man.. 

Also thank you for being so active in the forum. You and Klas is really helpful

8 years ago
7
Level 4

Hi Bucklash, 

I guess I need your help and im sort of stuck here. 

im checking the dropdown value with the assigned value. But im stuck as the template is assigning item to a array. but how can add this to that. 

if (strcmp($typeofitem, $typeofitem1)==0){ print '<div id="imgbox"><img src="/images/placeholder-box.png" /></div>'; }

1283 Posts
Bucklash
8 years ago
6
Level 5

Hi

I think that would be in a position override, add to it that code plus all the other fields that you need.

Have you checked out this forum post: list-format-change-depending-on-the-value and help-please-with-using-code-pack-beforerender-field

When creating article, using beforestore, I would check to see if a fields value was empty ie = ''; and if so checkbox field = x, else = y (change the $config value).

Then in list... if field = x then output 'this, else 'that.

That wasn't the solution for the op's and probably not the solution for you...

Beyond that I don't know

8 years ago
5
Level 6

Hi Bucklash, 

i need your help. 

Im trying to get the data display but it looks like the data is not coming to this 

But for some reason the values are not printing. im modifying the index.php of slicked_list. Is there better way of getting this as Im sort of stuck and dont know why the data is not coming through. $html .= '
<' . $slickOutputElementsChild . ' class="mybadgona ' . $slickChildClasses . $cck->get('type_of_item')->value .' ">' . $row . '
'; I tried assigning a variable to that value but still didnt work. $rowvalue = $item->$typeofitem;
1283 Posts
Bucklash
8 years ago
4
Level 7



Hi Codekadiya

You only need to edit index.php if you are going to make a custom template that you intend to re-use. 

  

If I understand you correctly... you need to do a position override or a position variation (variations are reusable, in any position and so more flexible).

Justy remember:  

In Slick CSS Options which is in the 'Options - Template' area...

Unique Class Name: here you give slick a class name, ie veg

Extra Classes: here you can add extra classes to that same element ie another-veg another-veg-2

Classes for your output items: Here you can add classes to your list items ie peas carrots spinach

If you want dynamic values aded to your list items then you need to use the position 'Element-Open' and therefore 'Element-Closed'.

You could add any field in there to 'activate' the position, and then either do an html override, or use a position override or variation, apply your code (make sure you activate element-closed and add the necessary elements to close it off)

In your override add your code ie

<li class="mybadgona peas carrots spinach <?php echo $cck->get('type_of_item')->value; ?> ">

Hope that sorts things a bit.

Can help out later if needed

8 years ago
3
Level 8

Thank you so much for taking the effort and posting this. i tried it but what I want is css class depends on each item value from the dropdown. 

What i did was moved the dropdown box to hidden and took the value over and create css classes with the value. manage to get it working. there is a tricky part on this. because the values have 2 words i couldnt get that to a single string. so what i did was if its "online resource or Academic literature" im using online and academic as unique css classes. 

its not ideal solution but its a solution.. :(

1283 Posts
Bucklash
8 years ago
2
Level 9

Hi

Just a thought:

Use a beforerender field and manipulate the value ie do a string replace changing each space to a hyphen

Bucklash  

8 years ago
1
Level 10

I have not purchased that code pack. I will purchase it today. thanks a lot

1283 Posts
Bucklash
8 years ago
0
Level 11

Hope you sort it

ps

I think the code pack is a must

Get a Book for SEBLOD