Alex's Support Forums » Taking Requests

Reformat fields on "form"

(4 posts)
  • Started 5 months ago by nortongulch
  • Latest reply from Alex

  1. nortongulch
    Member

    As designed, Simple Contact lists fields linerally, one field per row down the page.

    I'd like to make it look more like a form and set the fields where I want them, for example:

    First Name Last Name

    Address

    Address

    City, State Zip (oh yeah... we don't have State yet)

    Thanks,

    Dennis

    Posted 5 months ago #
  2. You should find that the changes you want can be accomplished with CSS. If necessary, you could modify sc_admin/include/contact/build.php to add a few ids to facilitate this.

    simpleContact Pro will include what I call "HTML snippets" in the admin. You can write chunks of code (headers, paragraphs, divs etc) and place them between form objects. You should be able to use this feature to construct whatever layout you need.

    Posted 5 months ago #
  3. nortongulch
    Member

    Hmmm. I don't have a clue as to how to do it with CSS (alone).

    Meanwhile, I'm busy 'fixing' it by modifying sc_admin/include/contactd/build.php putting the fields into a <table>.

    I guess it depends on the abilities of your users, but what would be cool would be a wizard to help place the fields. This may be like using an elephant gun to kill a mouse, but what I am doing is TDious (note attempt at humor)... and I see I need to tweek the screen.css to deal with border:bottom on fieldset.

    Posted 5 months ago #
  4. Judicious use of CSS 'float' and 'clear' properties should do the trick. CSS layout takes some getting used to but pays off in more maintainable code and better compatibility.

    A good place to start would be Jeffrey Zeldman's influential book Designing With Web Standards.

    I can offer some advice if you email me, but I don't think a wizard is feasible. It would take a horribly complicated mechanism to achieve a fraction of what you could do simply by tweaking the CSS.

    Posted 5 months ago #

RSS feed for this topic

Reply

You must log in to post.