11 years ago
7
Topic

Hi

We often use side modules with seblod lists that display some fields of the same content that is displayed as the main content.

This module allow some special display for special fields. The problem however is we get duplicates DIV IDs on the same page (cckID) which is very bad for the W3C compliance.

Is there a way to force the naming of the DIV IDs for each list please ?


thanks


cyril

Get a Book for SEBLOD
11 years ago
1
Level 1

Hello cyril,

the naming of the div ids depends on the template that you are using.

I started a thread a while ago because I needed to get rid of all the cck divs.


There is a file  templates/seb_one/fields/_markup.php

Read the instructions in that file to understand how to change the markup function to fit your needs.

You can use that markup.php for other templates, too.


And make a override in your template for /components/com_cck/views/list/tmpl/default.php.

In that file you can throw out a lot ov divs if you don't need them.

11 years ago
0
Level 2

Thanks Gebeer

I tried but It didn't give me the possibility to modify the DIV I wanted:

Here is what I get in my search result:
<div class="cck-plr">
<div class="cck-odd">
<div id="cck493" class="cck-f100 cck-pad-8">  <-- THIS IS THE DIV I WANT TO MODIFY and markup.php file has no effect here
<div>
<div class="cck-line-body">
<div class="cck-plr cck-ptb">
<div id="cck493_mainbody" class="seb_css3 vertical cck493-deepest">  <-- this is the first DIV I can modify with the MARKUP.PHP file


thanks again

cyril

11 years ago
0
Level 1

Which template are you using for your List&search type items?

And have you tried the template override for the default.php of the com_cck list view like I mentioned in my post?

Have you tried different variation for items? You can choose variation in tab "Template".

I copied the "simple" variation from SD Simple Simon template to the seb_one and seb_blog templates into variation folder. After that I can choose variation "simple" for my list item and even that ugly divs disappear.

Hope this helps, Cheers

gerhard

11 years ago
1
Level 1

Hi Gerhard

Thanks again for the tips. I never used the SD simple template but it maight be the right solution.

However I must have missed something here since I see no effect after I did the following:

- installed the SD simple template

- copied the simple folder in templates\seb_blog\variations and templates\seb_one\variations

- went into the item / template tab of the search list and selected 'simple' as the default variation

but in front end nothing changed. I'm 200% sure I missed something :)

thanks for your help!

Cyril

11 years ago
0
Level 2

Hi Cyril,

what template are you using for List and for Item?

I have made a quick and dirty list template derived from seb_blog where I stripped out a lot of code. I use that as template for List and for the Item I use Seb Minima with simple variation from SD Simple. This way I got rid of all cck divs that I don't need.

Maybe you want to give my list template a try and see if it works for you.

Cheers

gerhard

11 years ago
0
Level 1

Hi Gerhard

Thanks for the info, now we got rid of the ID duplication with the MINIMA template and the SD simple variation. We still use the seb_blog template for the list however.

thanks a lot!

Cyril

PS: it's very strange this thread had become invisible from the forum itself. I only could see it from my profile page. Now I replied, it is visible again however!

11 years ago
0
Level 1

Hi Cyril,

glad you could work it out. Please mark the topic as solved.

Get a VIP membership