56 Posts
mrits
9 years ago
5
Topic

Hello,

how can

Remove the seblod html comments like:

</!-- Begin: SEBLOD 3.x Document { www.seblod.com } -->

I'll try to generate a PDF from content and the comments are killing my PDF :-S

Thanks

Regards

Get a Book for SEBLOD
4229 Posts
Kadministrator
9 years ago
3
Level 1

Do a string replace like the one in the new xml view of the list:

echo trim( str_replace( array( '<!-- Begin: SEBLOD 3.x Document { www.seblod.com } -->', '<!-- End: SEBLOD 3.x (App Builder & CCK for Joomla!) { www.seblod.com } -->' ), '', $this->data ) );

56 Posts
mrits
9 years ago
2
Level 2

Thanks for the Answer :-) 

Where can i find the xml view? I use seb_minima with own positions.

Thanks

4229 Posts
Kadministrator
9 years ago
1
Level 3

In components\com_cck\views\list\tmpl\xml.php

56 Posts
mrits
9 years ago
0
Level 4

OK 

Thank you.

It's already in there but it don't works for me :-(

Maybe J2.5 is the problem.

i'll try it on joomla3 

thanks

56 Posts
mrits
9 years ago
0
Level 1

i found a "solution" :-S

change the core file libaries/cck/rendering/document/html/html.php Line 202

// $data = '<!-- Begin: SEBLOD 3.x Document { www.seblod.com } -->'. $data .'<!-- End: SEBLOD 3.x (App Builder & CCK for Joomla!) { www.seblod.com } -->';

i know: "Don't change core files!!"

But so far it works ;-)

Get a Book for SEBLOD