Help for a fool

4 posts by 2 authors in: Forums > CMS Builder
Last Post: April 18, 2008   (RSS)

By Vaisoco - April 18, 2008

Guys - I feel completely stupid in asking for input on this matter.
We have created a design for a new website and had planned to use CMS Builder to manage the content.
We now have to lauch the website urgently and really need help to speed up out learning curve.
I have attached the design and as you can see we need to summarise "news" and "Reviews" in a very formatted manner as well as linking to individual items.

If anyone can help with direction I would be so pleased.

My most sincere thanks

Geoff
Attachments:

main01.jpg 212K

Re: [Dave] Help for a fool

By Vaisoco - April 18, 2008

Dave- you guys are just fantastic - honestly!!
We have not created the html yet as we are waiting for client approval. I just want to get the cms content ready ahead of time.
I will have a play with creating the listing and detail pages for "news" within the syste. I guess my main questions are :-
1. How I ONLY show 3 news items and ONLY 4 review items on the homepage.
2. How do I control which items are shown on the homepage.
3. How do I enable the homepage to show both listings.
4. How do I use our "Read More" button to show content instead of using just links generated by your cms.

Too many questions I am sure :-)

Re: [Vaisoco] Help for a fool

By Dave - April 18, 2008

I'll give you the overview, if you need more detail let me know.

>1. How I ONLY show 3 news items and ONLY 4 review items on the homepage.

There will be some options in the list viewer code that you can change. To only show the first 3 items you'd set these options:

$options['perPage'] = '3';
$options['pageNum'] = '1';

>2. How do I control which items are shown on the homepage.

The easiest way to do this is to add a checkbox field called 'homepageItem' and then add a where option like below. This means (only show records in this list where homepageItem is 1 (checked)).

$options['where'] = 'homepageItem = 1';

>3. How do I enable the homepage to show both listings.

You create two list viewers (one for news and one for reviews) and add them both to the homepage.

>4. How do I use our "Read More" button to show content instead of using just links generated by your cms.

The Code generator will create a basic html link that looks something like this:

<a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a>

The <?php echo $record['_link'] ?> part shows the link, so just put that in an <a href="..."> around your button image tag.

<a href="...link tag here..."><img src="yourButton.gif"></a>

Hope that helps! Let us know if you get stuck anywhere along the way. We're here to help! :)
Dave Edis - Senior Developer
interactivetools.com