[solved] CreateInputText

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
musicscore
Power Poster
Power Poster
Posts: 474
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

[solved] CreateInputText

Post by musicscore »

I want to have a kind of CreateInputText  but the content should be read-only.
With function can I use.

Musicscore
Last edited by musicscore on Tue Mar 16, 2010 7:50 pm, edited 1 time in total.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: CreateInputText

Post by Jos »

CreateInputText  ;D just don't save it  8)
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: CreateInputText

Post by Wishbone »

You can use readonly="readonly" in the "addtext" parameter of CreateInputText. Of course you will have to escape the quotes.

http://cmsmadesimple.org/apidoc/CMS/CMS ... eInputText
http://htmldog.com/reference/htmltags/input/
musicscore
Power Poster
Power Poster
Posts: 474
Joined: Wed Jan 25, 2006 11:53 am
Location: Netherlands

Re: [solved] CreateInputText

Post by musicscore »

Whisbone,

Thanx for your quick answer.
As a newbie trying to create my first module this help was very usefull.

Also Jos, thanx for you answer.

Musicscore
Post Reply

Return to “Developers Discussion”