WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Droplet call in code2 or code section?
  • Print
Pages: [1]   Go Down

Author Topic: Droplet call in code2 or code section?  (Read 8262 times)

instantflorian

  • Guest
Droplet call in code2 or code section?
« 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

  • Guest
Re: Droplet call in code2 or code section?
« 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

  • Guest
Re: Droplet call in code2 or code section?
« 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 ;-)

Regards
-f.
Logged

Offline kweitzel

  • WebsiteBaker Org e.V.
  • **
  • Posts: 6983
  • Gender: Male
Re: Droplet call in code2 or code section?
« Reply #3 on: February 12, 2010, 07:48:29 PM »
Quote from: instantflorian 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 ;-)

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

instantflorian

  • Guest
Re: Droplet call in code2 or code section?
« Reply #4 on: February 12, 2010, 08:01:54 PM »
Aaah! The spaces were the murderers!  :roll:
Logged

Offline maverik

  • Posts: 1572
  • Gender: Male
  • ..:: viva los tioz ::..
Re: Droplet call in code2 or code section?
« 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

mr-fan

  • Guest
Re: Droplet call in code2 or code section?
« Reply #6 on: February 12, 2010, 08:05:30 PM »
Quote from: instantflorian 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 ;-)

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

  • Guest
Re: Droplet call in code2 or code section?
« 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

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • Droplet call in code2 or code section?
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2