Unwanted content

7 posts by 2 authors in: Forums > CMS Builder
Last Post: February 22, 2008   (RSS)

I have just created my first section and added the appropriate code to my required page (http://www.first4studio.com/indus/offers.php).
I dont want the record, title and content fields showing at all. This is a simple text page.

What have I done wrong?

Re: [Vaisoco] Unwanted content

By Dave - February 21, 2008

You're on the right track! The code viewer outputs ALL the fields, just remove the ones you don't want. They probably look something like this:

Record Number: <?php echo $record['num'] ?><br/>
Title: <?php echo $record['title'] ?><br/>
Content: <?php echo $record['content'] ?><br/>

Just remove those and refresh the page.

Also, change this tag:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

To this:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />

And you won't get those funny "Â" characters.

Hope that helps! Let us know if you have any other questions.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Unwanted content

You must get rather tired of fools like me.
I removed only those lines you requested but now the content has completely dispapeared from http://www.first4studio.com/indus/offers.php

The code for the page is attached.
Attachments:

offers.txt 7K

Re: [Vaisoco] Unwanted content

By Dave - February 21, 2008

It looks like maybe we removed a little too much. I think we want that "Content" field after all, maybe just without the text before it that said "Content: ".

Try adding this back in step 2:

<?php if ($record): ?>
<?php echo $record['content'] ?>
<?php endif ?>


Let me know how that goes.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Unwanted content

That has sorted it perfectly.
Total thanks for great support

Re: [Vaisoco] Unwanted content

I am really sorry to bother you again but your help would be greatly appreciated.
How can a list page show records in a more formatted manner. By default your program adds field names to every entry in a record. As you can see at http://www.first4studio.com/indus/caravansList.php this doesnt look right. I would love to be able to display my records as you can see at http://www.curtisusedcars.co.uk/carListing/