Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 01:27:06 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.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: Is there a plain text page module available?  (Read 465 times)
dennisvr

Offline Offline

Posts: 20


« on: December 31, 2009, 12:16:19 AM »

Hi,

I'm working on a Droplet that can upload files from the media-directory to Scribd (www.scribd.com) and show those files.

I want to use the following structure on the page:
- In a WYSIWYG section ($BLOCK[1] in my template) I add the [[droplet]]
- In a Code section ($BLOCK[2] in my template) I add the url and/or filename (for example document.pdf)

This way I can use page_content(2) in the Droplet to upload/show the document on the page.

I used to be able to use a Code section, however I have the feeling that code is checked for valid PHP, in WB 2.8, since nothing shows up.

Using a WYSIWYG section adds <p> tags, so I can not use that either.

Is there a module available that only inserts the text (preferably a single line)?

Thank you for your reply!

All the best,

Dennis

P.s. If someone has been able to implement the Scribd API, I'm very interested. I'm not really a coder, so I'm building the Droplet through trial and error.
Logged
dennisvr

Offline Offline

Posts: 20


« Reply #1 on: January 13, 2010, 08:15:41 PM »

* bump *
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6823


WWW
« Reply #2 on: January 13, 2010, 08:55:36 PM »

Maybe somebody would actually help if you post some code that you have done ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

instantflorian

Offline Offline

Posts: 685



WWW
« Reply #3 on: January 14, 2010, 09:14:51 AM »

There is a module called Code2 which can either display PHP, HTML oder JavaScript
http://www.websitebaker2.org/forum/index.php/topic,14200.0.html
Logged
dennisvr

Offline Offline

Posts: 20


« Reply #4 on: January 14, 2010, 12:34:40 PM »

Hi Klaus & Instantflorian,

Thank you for your replies.

@ Instantflorian: This might well be the module I am looking for. Will test it tonight.

Currently I am able to upload text/pdf files to Scribd (file path and name hardcoded into the droplet) , but unfortunately a new document gets uploaded on every page refresh. Hopefully the new module enables me to make it dynamic.

@ Klaus: The droplet code is far from finished and not very useful at the moment (a simple copy/past of the embed code from the Scribd website works better / is easier). I will try the new module and, if I am able to produce something that works, post the droplet code later on.

Again, thanks!

Regards,

Dennis
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!