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: [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/

Re: [Vaisoco] Unwanted content

By Dave - February 22, 2008

Hi Vaisoco,

It's totally possible to display your listings like that. CMS Builder doesn't provide the web design (that's up to you) but it gives you all the tools to manage the content and generate all the product pages.

The next step is to just keep cutting and pasting. If there's content you don't want try editing your viewer and removing that extra text. If you remove too much just undo or copy and paste from the code generator again.

Once you have all the fields you want (make a backup of that working file! and then) start adding your design to the page.

Hope that helps! Keep posting with your progress, we're here to help.
Dave Edis - Senior Developer
interactivetools.com