field outputs as a number

7 posts by 3 authors in: Forums > CMS Builder
Last Post: August 10, 2010   (RSS)

Re: [socanews] field outputs as a number

Hi Socanews,

For one thing, your endforeach on line is missing the ?>

See where that gets you.

Best,

Jerry Kornbluth
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [socanews] field outputs as a number

By Jason - August 9, 2010

Hi,

If you are using CMS Builder version 2.04 or higher, you can use Pseudo fields to display the label of a field that's stored as a number.

In your case, trying this:

Theme: <?php echo $masbands['theme:label']; ?><br/>

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] field outputs as a number

By Joseph - August 9, 2010

Hi Jason

Thanks for your reply I made the change as suggested but now nothing at all shows up http://www.socanews.com/masbands/indexTest.php

Joseph

Re: [socanews] field outputs as a number

By Jason - August 9, 2010

Hi Joseph,

Could you tell exactly how you're storing the field "theme" in the database? I'm assuming it's a drop down field that is pulling information from another table. What are the label and value fields?

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] field outputs as a number

By Joseph - August 9, 2010

Hi Jason

the Theme field is working with another the Section Editor Mas bands.

Under mas bands i have set up a list field to pull information from the Themes Section Editor if one exsist for the masband. i have attached a screen print of how i this has been set up.
Attachments:

themes-list.jpg 45K

Re: [socanews] field outputs as a number

By Jason - August 10, 2010

Hi Joseph,

If you can fill out a Second level support request here:
http://www.interactivetools.com/support/

We can go in and take a closer look at the problem.

Thanks.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/