This is the formVistatm users forum. Please post questions and comments here.

You must register for an account in order to participate in the forum. Forum instructions can be found here.

Subscribe to RSS Feed
formVista Users Forum -> On the subject of taking static designs and creating templates
Not logged in.
2010-02-04 17:44:34
1 of 20
#1685
Nope. That's what distinguishes my design from other CMS's. Basically, just create a flat set of pages with some placeholder content. Use CSS.

Then I'll show you how to modify those pages so that they can be used as various kinds of templates for pages on the site. It's actually really easy.

All that will happen is we'll modify some paths to your art, flash files, css files, etc to match the formVista theme directory structure.

Then we'll decide which "components" we want to appear where on each type of page. For each component we add one line of PHP code to the top and one call in the body of the HTML where the component should appear.

There are a shitload of components, and some of them involve alot of functionality. For instance, this entire messaging system is a single component and can be pulled into a page with just two lines of PHP code.

For instance, to create a page type that includes this member account messing feature, you add a one line declaration in the top section before the <DOCTYPE tag,like:

<?php declareSpot( "member_account_01", "member_account" ); ?>

The first parameter is the name of the spot used in the body section, the second is the type of component. For some types of components, like simple editable text hotspots, you may have multiple instances of a component. Other kinds of components, like the nav tree, the messaging and the blog typically only have one instance per page.

Then in the body section where you want the component to be displayed you just call hotspot.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
....

<body>
...
<?php hotspot( "member_account_01" ); ?>

There's a naming convention for hotspots so that we can switch out one theme for another and have all the content show up in the right spots.

There are a few more calls that need to be added to the templates for everything to work, some in the <head> section and some at the bottom. These are points where extra CSS and js files are pulled in and glue code is run. I'll show you how to do all of that. It's really easy.

So you should be able to see that you can do pretty much anything you want on a page. So I would suggest create a sample set of simple pages and then we can sit down together and I can show you how to modify them to fit into formVista.
Posted by: Yermo
2010-02-11 21:55:26
2 of 20
#1726
in reply to #1685
I'm in the process of doing a site redesign at the point, and have some basic HTML and CSS. So I've got some non live code we can use.
Also, as I'm using GoDaddy for hosting, on a linux server, might want to document installing it there. shouldn't be a problem, though.
Posted by: Kyrin7
2010-02-13 17:24:37
3 of 20
#1734
in reply to #1726
Do you have some info on their configuration?

Before we go too far we should test to make sure formVista will run there. I've put alot of effort into making this stuff installable, but there are a few things that it does require such as Mysql and GD support and PHP5.

Once this snow melts a bit let's get together and give that a try.
Posted by: Yermo
2010-02-15 16:04:57
4 of 20
#1737
in reply to #1734
Go Daddy does support and include, PHP5, Mysql, GD and MHASH. I've seen refrence to mod_rewrite in their help, but not certain if it is auto enabled or not. I will have to send a support email.
Posted by: Kyrin7
2010-02-15 16:07:16
5 of 20
#1738
in reply to #1737
If they have mod_rewrite or can enable it for your site, then installing formVista should be a no brainer.
Posted by: Yermo
2010-02-15 23:28:06
6 of 20
#1742
in reply to #1738
the official reply from GoDaddy:

"Mod_rewrite is an Apache web server module installed on all of our Linux servers by default; it does not have to be installed or enabled. Our Linux hosting accounts support most mod_rewrite functionality.

You do not need to enable mod_rewrite in your httpd.conf, as this is handled at a global level. All you need to do is add the desired code to the body of your .htaccess file.


NOTE: The .htaccess file containing the rewrite rules must be in the same directory as the target files."

Theres one for the FAQ
Posted by: Kyrin7
2010-02-15 23:46:35
7 of 20
#1743
in reply to #1742
Excellent. The formVista setup script creates the correct .htaccess file for you.

I think we're good to go to try an install. Before we do that I should create a new release with all the latest code.

What version of jQuery have you been using in your work? latest and greatest?
Posted by: Yermo
2010-02-16 09:55:47
8 of 20
#1744
in reply to #1743
My server has jQuery 1.3.2 installed. GoDaddy is pretty good at keeping their code updated.
Posted by: Kyrin7
2010-02-16 13:08:15
9 of 20
#1748
in reply to #1744
Cool. The version of formVista that's available for download on the site still uses jQuery 1.2.6 but my development code has been upgraded to 1.3.2. I'll put together a new build of the code and upload it before we try the install over at godaddy.
Posted by: Yermo
2010-02-16 14:11:48
10 of 20
#1749
in reply to #1748
It appears Formvista can handle modal windows. that being the case, I will likely use it to replace the Lightbox 2 I'm using on my site for my gallery.
Posted by: Kyrin7
2010-02-16 18:21:47
11 of 20
#1753
in reply to #1749
We'll discuss the photo gallery. If you want that to work differently, I'll have to update it for you. No problem though.
Posted by: Yermo
2010-02-17 17:56:36
12 of 20
#1772
in reply to #1749
Ok, I've updated the build with all the latest code and released it.

You can try to install it yourself if you like, but I think I'd like for us to get together to do it. I'd be very interested to see where my documentation and setup program fall down in this context.
Posted by: Yermo
2010-02-18 10:00:10
13 of 20
#1775
in reply to #1772
I'm having my Linux expert do that, he seems to think he can talk me through install, I'm inclined to believe he is right. Well, install for my test server anyway.
Posted by: Kyrin7
2010-02-18 10:25:47
14 of 20
#1776
in reply to #1775
Ok, cool.

Sorry about the formatting right now, but you can point him at the installation instructions:

http://formvista.com/formvista/docs/html/formvistainsta...

Let me know when you guys are going to do that so I can make myself available in case any problems arise. If you want I can give you a tour of the system

Here's a link to the beginnings of the users guide:

http://formvista.com/formvista/docs/html/formvistausers...

Again, sorry about the formatting.

I hope to find some time to start putting together the designers guide.
Posted by: Yermo
2010-02-18 11:18:21
15 of 20
#1777
in reply to #1776
Well I can take notes during my initial foray into the design aspect of it, and perhaps even provide screenshots and example, after I got the system sussed out
Posted by: Kyrin7