Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Text Fields

 

 


weblinks
User

Mar 19, 2009, 2:04 PM

Post #1 of 7 (1092 views)
Shortcut
Text Fields Can't Post

Q. How to set default preferences such as TEXT SIZE, BOLD, TEXT COLOR, ETC. for TEXT FIELD? I know how in a wysiwyg field but I don't want Users to be able to have access to these settings.

Bob
WebLinks


ross
Staff / Moderator


Mar 19, 2009, 3:06 PM

Post #2 of 7 (1091 views)
Shortcut
Re: [weblinks] Text Fields [In reply to] Can't Post

Hi Bob

Thanks for posting!

So what you are have are a bunch of plain text boxes but you want to have some styles for them right?

What you would do is apply the styles on the template. Like this:

<span class="myTextFormatting">
<?php echo $record['content']; ?>
</span>

Does that sound like what you are looking for?
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/



weblinks
User

Mar 19, 2009, 3:28 PM

Post #3 of 7 (1088 views)
Shortcut
Re: [ross] Text Fields [In reply to] Can't Post

Sorry for being so dumb but... I'm confused. Do I place the text below in the code on the web page? If so, precisely where to I place it?

And, with regard to the <span class="myTextFormatting"> ... how do I specify the format I wish... and where.

Again, my apologies for this... I'm not as tech savy as I would like.

Bob


Bassman
User

Mar 19, 2009, 6:07 PM

Post #4 of 7 (1077 views)
Shortcut
Re: [weblinks] Text Fields [In reply to] Can't Post

You're going to need to learn about Cascading Style Sheets if you want to do that successfully: a CSS file is where you set the format of whatever elements of the page you choose. See http://www.w3.org/Style/CSS/


Dave
Staff / Moderator


Mar 23, 2009, 9:56 AM

Post #5 of 7 (1017 views)
Shortcut
Re: [weblinks] Text Fields [In reply to] Can't Post

You place it in the web page. You could try using standard html if that is easier:

Code like this displays a field:
<?php echo $record['title'] ?>

To make it bold:
<b><?php echo $record['title'] ?></b>

To make it red:
<font color="red"><?php echo $record['title'] ?></font>

Generally you either let the user use the wysiwyg in the CMS and style the content themselves (giving them control) or you let them enter text only and you style it in the viewer page with HTML (giving you control).

Hope that helps!

Dave Edis - Senior Developer
interactivetools.com
 


weblinks
User

Mar 23, 2009, 1:25 PM

Post #6 of 7 (1010 views)
Shortcut
Re: [Dave] Text Fields [In reply to] Can't Post

Dave....
Thanks... Big Time... This hopefully will allow me to just use Text Field so that the user doesn' have access to all of the bells and whistles in wysiwyg... Hope you can help me with this....

I have 4 text fields for individual users [advertisers] to fill in... I need to somehow allow the user to LINK THE TITLE TO THEIR WEB ADDRESS in the [title] field.. Please look at the TEST PAGE BELOW... If I were the user I would want to link "The Vermont Sugar Shack" to my website with a different nam... e.g.
http://www.mywebsite..... I KNOW I CAN DO THIS IN A WYSIWYG FORMAT, BUT I DON'T WANT TO GIVE THE USER THIS WHOLE BAG OF OPTIONS... JUST THIS ONE.

YOUR HELP WILL BE MORE THAN APPRECIATED.

http://www.linkvermont.com/TEST/maplesyrup_sugarhouses.php

Best,

Bob T.



ross
Staff / Moderator


Mar 23, 2009, 1:37 PM

Post #7 of 7 (1008 views)
Shortcut
Re: [weblinks] Text Fields [In reply to] Can't Post

Hi Bob

I replied to this question in your other thread :).

http://www.interactivetools.com/forum/gforum.cgi?post=70412#70412

Let me know if that is what you were looking for. Thanks!
-----------------------------------------------------------
Cheers,
Ross Fairbairn - Product Specialist
support@interactivetools.com

Hire me!  Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/