[SOLVED] Problem with global content blocks

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
MadBoy
New Member
New Member
Posts: 5
Joined: Mon Jul 20, 2009 8:57 pm

[SOLVED] Problem with global content blocks

Post 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
Last edited by MadBoy on Tue Jul 21, 2009 9:34 am, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Re: Problem with global content blocks

Post by jmcgin51 »

check the HTML source of the content block (turn the WYSIWYG off).  Fix the problem in the HTML, then save the block.
MadBoy
New Member
New Member
Posts: 5
Joined: Mon Jul 20, 2009 8:57 pm

Re: Problem with global content blocks

Post 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...
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Problem with global content blocks

Post 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...
MadBoy
New Member
New Member
Posts: 5
Joined: Mon Jul 20, 2009 8:57 pm

Re: Problem with global content blocks

Post 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
Post Reply

Return to “CMSMS Core”