Welcome, Guest. Please login or register.
Did you miss your activation email?
May 27, 2012, 05:17:42 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155555 Posts in 21715 Topics by 7737 Members
Latest Member: gx-world
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Outputting HTML in code section  (Read 1041 times)
POPDUM

Offline Offline

Posts: 23


« on: December 08, 2007, 02:48:59 PM »

Hi,

I am working on a new webpage. The end-user wants to use an editor (FCKEditor, e.g.) to update a new image and text (weekly to monthly). This has to appear on many pages. In order that he should update once, I am using a code section in the other pages to display the contents of the WYSIWYG section on the Home page.

Everything is fine till I actually display teh content using "echo $content;". It only displays the entire HTML string; I tried to surround $content with single and double quotes, but no change. However, when I echo the literal string contained in $content, it works, like :

echo '<p align="center"><img class="" height="223" alt="" width="320" align="left" src="http://www.pif.at/media/fi_3.gif" />&nbsp;<font size="5"><font color="#800000"><strong>&quot;HAUS DES MONATS!!!!</strong></font></font></p> <p>&nbsp;<strong><font color="#ff0000">Great location:</font> </strong>Reisingergasse 8/8</p> <p>&nbsp;<font color="#ff0000"><strong>District:</strong></font> 10th</p> <p>&nbsp;<font color="#ff0000"><strong>Public Transport Connections:</strong></font> Great</p> <p>&nbsp;<font color="#ff0000"><strong>Price:</strong></font> Only &euro; 100 million!</p> <p>&nbsp;<font color="#ff0000"><strong>Available: </strong></font>immediately</p>';

How can I display the content that it shows what I want it to show?

Thanks for your help
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6977


WWW
« Reply #1 on: December 08, 2007, 09:25:07 PM »

Maybe "Global Blocks" is the right keyword for you ... have a look here and search the forum for this please.

[edit]
Forgot to mention ... the WYSIWYG Pages do not allow any kind of code ... neither JS nor PHP
[/edit]

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

rsmith

Offline Offline

Posts: 194


« Reply #2 on: December 09, 2007, 02:35:28 AM »

Hi

I have 2 modules that may assist with this... if the global blocks wont work for you

- Multiple WYSIWYG Section Module
this will allow you to select 1 or many WYSIWYG sections for display and display them all ... insert this on all the other pages and select the one you want..
http://slink2.no-ip.info/pages/website-baker-info/module-mods/multiple-wysiwyg-sections.php

- Random WYSIWYG Section Module
this will allow you to select 1 or many WYSIWYG sections for display and display one of them randomly, if only one section is select it displays it... insert this on all the other pages and select the one you want..
http://slink2.no-ip.info/pages/website-baker-info/module-mods/random-wysiwyg-sections.php

Rob
Logged
POPDUM

Offline Offline

Posts: 23


« Reply #3 on: December 10, 2007, 11:25:48 AM »

Thank you all very much for your help; the GLOBAL BLOCKS helped.
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!