The WorksForWeb Community Forums
Welcome to the WorksForWeb community forums. Here you can discuss WorksForWeb products with others and contribute to the rapidly growing WorksForWeb community. Please note that while WorksForWeb staff try to maintain presence on the forums, this is not the most reliable way to contact WorksForWeb staff. In case you require a timely response from WorksForWeb on an issue, please open a support ticket here. For pre-sales questions, please open a sales ticket here.

Welcome, Guest. Please login or register.
July 31, 2010, 11:00:07 PM

Login with username, password and session length
Search:     Advanced search
Added the iLister-related Boards

Rate My Site Boards Added

Merged iAuto and iRealty Support Forums together

Several new tips in the Tips and Tricks section
1,422 Posts in 562 Topics by 882 Members
Latest Member: gcharisehansonv
* Home Help Search Login Register
+  The iAuto/iRealty/iLister Support Forum
|-+  iAuto and iRealty v.2.x - 3.x
| |-+  Tips and Tricks
| | |-+  An Awesome Built-In CMS
« previous next »
Pages: [1] Print
Author Topic: An Awesome Built-In CMS  (Read 1344 times)
iAuto/iRealty Sales
The Sales Guy
Administrator
Full Member
*****

Karma: 1
Posts: 120



View Profile WWW
« on: November 30, 2006, 03:14:31 PM »

Did you know that iAuto and iRealty both come with a built-in CMS that is capable of doing lots of great things. Not only it is used for supporting the main functionality of iAuto and iRealty, the classifieds engine, but it can also be used to build a great website. Here are a few tips and tricks that you may use in your project.

First, there is a TinyMCE WYSIWYG Editor. We've selected it from a number of similar products searching for an editor that does not ruin the actual html code produced manually in the source code editor. We thought TinyMCE is the one, but alas, it isn't, it does have some minor considerations on how html should be formatted that it imposes on the coders. Some of us hate when a machine tells us what to do (hence the How to Get Rid of TinyMCE topic), but when you have finally managed to get rid of it, you're getting one big input window to do magic with it by hand (Notepad or UltraEdit are the best, aren't they? Wink).

Static page functionality is not only for creating the About Us and Contact Us pages. Say, you want to build banner ads that you may change frequently into your website template. One of the ways to do it by editing your main.tpl and index.tpl only once is described below:

1.  You create a static page (Content Management->Static Pages->Add A New Static Page), say, banner_1/ (type in banner_1/ into your url field).
2.  Since you don't really need to display it standalone, but rather on the front page as part of your main.tpl, write down the ID number of the newly created page (say, 18).
3.  Open main.tpl, find a good place to insert your banner, and put the following code there (say, it's in a formatting table cell):

Code:
<tr>
   <td>
      {module name="static_pages" function="show_static_page" pageid="18"}
   </td>
</tr>
As you've guessed, pageid="18" is the only thing we need to change in the above tag.

4. Open your banner_1/ and put whatever html formatting you may need to properly display the banner (don't worry about opening and closing tags for html, heading and body).
5.  That's it! Now, when you need to change your banner, you don't need to change the main.tpl file (especially if you put 5 identical banners all over the website), you can only change the banner_1/ html code and it displays the changes everywhere.

Here's another little one for you. Instead of having a misleading url for your About Us page (www.yoursite.com/about/), just type in about.html in the URL input box when editing your About us page, and it'll magically become www.yoursite.com/about.html.

You can be very creative by putting any code from templates into the snippets like the one I discussed above, as it can be very useful sometimes. Our next major release will have a much more flexible CMS, and you'll be amazed by what you will be able to do with it.

« Last Edit: November 30, 2006, 03:16:23 PM by iAuto Sales » Logged

Sincerely,

iAuto/iRealty Sales
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!