Home | Products | Consulting | Hosting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: CMS Builder:
Unwanted content

 

 


Vaisoco
User

Feb 21, 2008, 4:25 AM

Post #1 of 7 (428 views)
Shortcut
Unwanted content Can't Post

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?


Dave
Staff / Moderator


Feb 21, 2008, 1:42 PM

Post #2 of 7 (413 views)
Shortcut
Re: [Vaisoco] Unwanted content [In reply to] Can't Post

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


Vaisoco
User

Feb 21, 2008, 2:02 PM

Post #3 of 7 (410 views)
Shortcut
Re: [Dave] Unwanted content [In reply to] Can't Post

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 (6.51 KB)


Dave
Staff / Moderator


Feb 21, 2008, 2:21 PM

Post #4 of 7 (408 views)
Shortcut
Re: [Vaisoco] Unwanted content [In reply to] Can't Post

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:


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


Let me know how that goes.

Dave Edis - Senior Developer
interactivetools.com


Vaisoco
User

Feb 21, 2008, 4:07 PM

Post #5 of 7 (405 views)
Shortcut
Re: [Dave] Unwanted content [In reply to] Can't Post

That has sorted it perfectly.
Total thanks for great support


Vaisoco
User

Feb 21, 2008, 4:54 PM

Post #6 of 7 (403 views)
Shortcut
Re: [Vaisoco] Unwanted content [In reply to] Can't Post

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/


Dave
Staff / Moderator


Feb 22, 2008, 9:45 AM

Post #7 of 7 (390 views)
Shortcut
Re: [Vaisoco] Unwanted content [In reply to] Can't Post

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

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4