HTML code in global content blocks [solved]

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
pumuklee

HTML code in global content blocks [solved]

Post by pumuklee »

hi
im new in cmsms but i said it si one of the best cms systems

what i want to ask:

about global content blocks
i want to do something like this in my gcb

Code: Select all

<div id='mainfooter'>
		<img id='bim' src='images/icon_mps.gif'>
	  <div style=''>
		  <table id='footer_link' class='smallfont_link' cellpadding='0' cellspacing='0' border='0'>
			<tr> 
			  <td width='100%'></td>
			  <td>{cms_module module='bookmarks' columns='2' category='bottom_links' email_to='1'}</td>
			  <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
			  <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
			  <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
			  <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
			</tr>
		  </table>
	  </div>
	  <span class='smallfont'>MPS GmbH.1998-2007 Copyright.All rights reserved</span> 
    </div>
the problem:
in my template the html code appears like a static code
the cms_module it is executed but the ... tags remains like a static text?

any ideea?

thanks a lot
Last edited by pumuklee on Tue Jan 09, 2007 9:50 am, edited 1 time in total.
cyberman

Re: HTML code in global content blocks

Post by cyberman »

Have you insert the posted gcb in source view? Link? Image?
pumuklee

Re: HTML code in global content blocks

Post by pumuklee »

i included that code into my template in thsi way:

Code: Select all

        ...............
        <img src="images/globe.gif" align="right" border="0"><br>
        </div>
      </div>
    </div>
  </div>

	{global_content name='footer_mps'}
	
</div>
	
<__body>
</__html>
but what i said before the html from gcb appears like a normal static text, the tags are not applied

ex:

Code: Select all

<b>text</b>
remain

Code: Select all

<b>text</b>
not text what i want

thanks
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: HTML code in global content blocks

Post by Dr.CSS »

I think cyberman means did you put this in the GCB in source view, it will some times think you are putting in and format it so it comes out as text, check your GCB in source view or check the page source view...

Link? = do you have a link we can look at the page with...

Image? = do you have a screen shot...

I think ;)
pumuklee

Re: HTML code in global content blocks

Post by pumuklee »

hi
here are some datas:

the gcb in the source file:

Code: Select all

<div id='mainfooter'><br />
  <img id='bim' src='images/icon_mps.gif'><br />
   <div style=''><br />
    <table id='footer_link' class='smallfont_link' cellpadding='0' cellspacing='0' border='0'><br />
   <tr> <br />
     <td width='100%'></td><br />
     <td><!-- Bookmarks Module: number of bookmarks: 2 -->
<table id='cms-module-bookmarks' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td valign='top'>
		<div class='cms-module-bookmarks-header'>bottom_links</div>
		<ul class='cms-module-bookmarks-list'>
			<li><a class='bookmark-link'  href='http://www.google.com'>privacy</a></li>
			<li><a class='bookmark-link'  href='http://www.yahoo.com'>terms</a></li>
		</ul>
</td>
</tr>
</table>
<!-- End of Bookmarks Module -->
</td><br />
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td><br />
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td><br />
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td><br />
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td><br />
   </tr><br />
    </table><br />
   </div><br />
   <span class='smallfont'>MPS GmbH.1998-2007 Copyright.All rights reserved</span> <br />
    </div>
and this is the gcb code:

Code: Select all

<div id='mainfooter'>
  <img id='bim' src='images/icon_mps.gif'>
   <div style=''>
    <table id='footer_link' class='smallfont_link' cellpadding='0' cellspacing='0' border='0'>
   <tr> 
     <td width='100%'></td>
     <td>{cms_module module='bookmarks' columns='2' category='bottom_links' email_to='1'}</td>
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
     <td nowrap><img src='images/arrow.gif' class='imagelink'>terms of use</td>
   </tr>
    </table>
   </div>
   <span class='smallfont'>MPS GmbH.1998-2007 Copyright.All rights reserved</span> 
    </div>
it seems to be all the tags are quoted

a screenshot:
Image

thanks

[gelöscht durch Administrator]
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: HTML code in global content blocks

Post by Dr.CSS »

Obviously the editor is messing with it, 2 options...

1) use the source button, in FCKeditor, HTML button in tinyMCE, and paste your code in the popup box, don't look at it again as it may get reformatted... then submit if it works  :) if not...

2) go to My Preferences » User Preferences and uncheck "Enable the WYSIWYG editor while editing Global Content Blocks"
go back and paste your code in and save/submit...
You can go back and recheck the "Enable the WYSIWYG editor while editing Global Content Blocks" now...

  HTH
pumuklee

Re: HTML code in global content blocks

Post by pumuklee »

yes
you has right

source button in the editor is the key

great job
thanks a lot

ill be back soon
because i like this cms

bye
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: HTML code in global content blocks

Post by Dr.CSS »

Good...

if you could please amend the end of the original subject line with [solved] at the end, in case others have the same problem they can find the solution... thanx...
Locked

Return to “Modules/Add-Ons”