Help for a fool

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

Re: [Vaisoco] Help for a fool

By Dave - April 18, 2008

Hi Geoff,

No problem, the design looks great! How far along are you? The first step would be slicing it up and turning the mockup into HTML.

Once you have a mockup of the index page and the review detail page you can create an editor in CMS Builder, then create a page viewer that outputs the fields you want, then add that to your index page.

We can walk you through the steps or if you're in a real rush we also have consulting services (let me know if you want a quote on that).

Have you created an HTML version yet? Let me know how we can best help.
Dave Edis - Senior Developer
interactivetools.com

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