Duplicate div id in asset listing

G'day all,


There's something wrong with my asset listings … can anyone work help me work out what's going on?..



If I create an asset listing page, for example, that lists all the PDF files in a certain folder - then each link in the resulting web page will have a div wrapper around it, such as <div id="content_div_1039">. The id for all the div's is the same - and this isn't valid XHTML.



I don't know how to fix this so that either the div id's are all different or the div wrapper isn't used at all. (I'm using Matrix 3.18.10)



Thanks!



Warwick

You need to change your presentation style to RAW HTML. This is done by clicking the small orange icon with a P on it, then changing the style info. Once you do this, you won't have those divs automatically added.


[attachment=396:Picture_1.png]
Picture_1.png (1.35 KB)

Hi Warwick


If you go into your type format and change the wysiwyg container to be raw html it will get rid of the div.



edit: quick off the mark Nic:)

[quote]There's something wrong with my asset listings … can anyone work help me work out what's going on?..


If I create an asset listing page, for example, that lists all the PDF files in a certain folder - then each link in the resulting web page will have a div wrapper around it, such as <div id="content_div_1039">. The id for all the div's is the same - and this isn't valid XHTML.



I don't know how to fix this so that either the div id's are all different or the div wrapper isn't used at all. (I'm using Matrix 3.18.10)[/quote]

Hi Warwick,



It is possible to obtain a content cell without a surrounding DIV by using the Raw HTML Content Type. This should ensure that this part of the page passes validation.



Edit: Thanks Nic and Shane - the perils of replying after opening the thread and being away for a while :wink:

Thank you all for your help … that's fixed the problem!