Text Fields

7 posts by 4 authors in: Forums > CMS Builder
Last Post: March 23, 2009   (RSS)

By weblinks - March 19, 2009

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

Re: [weblinks] Text Fields

By ross - March 19, 2009

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 - Consulting
consulting@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/

Re: [ross] Text Fields

By weblinks - March 19, 2009

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 [font "Verdana"]<span class="myTextFormatting"> ... how do I specify the format I wish... and where.

[font "Verdana"]Again, my apologies for this... I'm not as tech savy as I would like.

[font "Verdana"]Bob

Re: [weblinks] Text Fields

By Bassman - March 19, 2009

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/

Re: [weblinks] Text Fields

By Dave - March 23, 2009

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

Re: [weblinks] Text Fields

By ross - March 23, 2009

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 - Consulting
consulting@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/