Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 04:00:28 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155533 Posts in 21713 Topics by 7739 Members
Latest Member: audillino
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Droplet call in code2 or code section?  (Read 1009 times)
instantflorian
Betatester
*
Offline Offline

Posts: 804



WWW
« on: February 12, 2010, 07:32:37 PM »

Hi,

I want to use a droplet to generate a special javascript code (e.g. to add a marker to an open street map-map).
So that's why I can't use a WYSIWYG section, because the <p></p> or <div></div> added by FCKEditor around the droplet would break the code. (Yes I know there is a way to avoid that FCKEditor adds <p> if Return is hit, but this is needed on "real" WYSIWYG sections)

So I wonder if there is any way to call a droplet from a code, code2 or html section?

Thanks in advance
instantflorian
Logged
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #1 on: February 12, 2010, 07:38:46 PM »

don't test it - but [[yourDroplet]] in a code² box setting to HTML should _not_ be enclosed with any tags...?

regards martin

ps: with xft2 you could setup such things per str_replace before loading the whole $page.....so i prevent the <p> </p> 's around the [[hint_start]] and [[hint_end]] droplet/tags if there such things placed from the FCK...

Logged

 
instantflorian
Betatester
*
Offline Offline

Posts: 804



WWW
« Reply #2 on: February 12, 2010, 07:42:14 PM »

Hi Martin,

the droplets in a code(2) section are not parsed (if I call the droplet [[marker]] in the frontend just [[marker]] is written into the code instead of what really should be displayed).

Oh - and I'm much to stupid for xft2 wink

Regards
-f.
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6975


WWW
« Reply #3 on: February 12, 2010, 07:48:29 PM »

Hi Martin,

the droplets in a code(2) section are not parsed (if I call the droplet [[marker]] in the frontend just [[marker]] is written into the code instead of what really should be displayed).

Oh - and I'm much to stupid for xft2 wink

Regards
-f.

I use Droplets in sourcemode of the FCK and have no issues with it. Also check, that there are no spaces inside the droplet call.

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

instantflorian
Betatester
*
Offline Offline

Posts: 804



WWW
« Reply #4 on: February 12, 2010, 08:01:54 PM »

Aaah! The spaces were the murderers!  rolleyes
Logged
maverik

Offline Offline

Posts: 1568



WWW
« Reply #5 on: February 12, 2010, 08:03:42 PM »

if you dont want to have a p tag for droplet call make it as a div with fck, that works for me
Logged

Signatur wird geladen...
mr-fan

Offline Offline

Posts: 1556


WWW
« Reply #6 on: February 12, 2010, 08:05:30 PM »

Hi Martin,

the droplets in a code(2) section are not parsed (if I call the droplet [[marker]] in the frontend just [[marker]] is written into the code instead of what really should be displayed).

Oh - and I'm much to stupid for xft2 wink

Regards
-f.

could not confirm this.....tested right now with rev. 1265 on XAMPP and rev. 1287=89  wink on Portable with [[loginbox]] and [[searchbox]] in a code² section (short content) with no problems....

regards martin
Logged

 
instantflorian
Betatester
*
Offline Offline

Posts: 804



WWW
« Reply #7 on: February 12, 2010, 08:13:45 PM »

Now it works also in a code2 section, thanks. The droplet was not parsed because of spaces in the call.
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!