Page 1 of 1

[SOLVED] Problem with global content blocks

Posted: Mon Jul 20, 2009 9:10 pm
by MadBoy
Hello,

I'm having a problem with Global Conent Blocks. I got the webpage done by some company and it was working fine. The problem is that i have some global content blocks like 'main', 'main2' and 'submain'. It was working fine till yesterday (at least i noticed it then). I've done some little modification to main2. Then after seeing that the page is looking bad i've changed it back but couldn't get the orginal look. So i've tried some experiments and i've found out that if i change template index2

From: {global_content name='main2'}   --> This was orginal line in the file
To: {global_content name='submain'}  

The page is displayed fine. Looks good, but the conent is slightly diffrent from main2 so i need main2 to work. So i've copied code from submain to main2 and ... the no luck. The page looks back. I've decided to create new codeblock submainNew and i copied same content to it. Changed {global_content name='submain'}  to {global_content name='submainNew'} unfortunetly still no luck. I can't realy change submain but i think that even if i did change something in it, it would get broken too.  Not sure why is that happening.

The problem is visible on http://secusam.pl/  The text Strona Glowna and Aktualnosci should be at the top just under the menu bar.

Any help would be appreciated. Been trying to fix it for some time now. Just to say html/php and cms ain't my best friends.  


With regards,

MadBoy

Re: Problem with global content blocks

Posted: Mon Jul 20, 2009 9:36 pm
by jmcgin51
check the HTML source of the content block (turn the WYSIWYG off).  Fix the problem in the HTML, then save the block.

Re: Problem with global content blocks

Posted: Tue Jul 21, 2009 6:11 am
by MadBoy
Well what i did is i copied completly working html code of submain to submainNew or main2 and the code block that was working while in submain stops working as submainNew or main2. This is my problem...

Re: Problem with global content blocks

Posted: Tue Jul 21, 2009 9:30 am
by Dr.CSS
Something else has changed, did you edit the page the GCB was on and now it is in a tag or maybe , are these in the page content or in the template...

Re: Problem with global content blocks

Posted: Tue Jul 21, 2009 9:33 am
by MadBoy
Hello,

My friend solved it for me. Turns out he removed Table/TR/TD closing brackets and it all started to work again. The problem is I didn't added them there but i presume during my modification on said 'pages' with WYSWYIG editor being turned on (i edited html source only) it had to add the closing tags itself.

With regards,

MadBoy