Where are the product pages for an Interchange located?

All product pages are created on the fly using the “flypage.html”. This file is located in the pages directory with all of the other .html files.

What does [area example] mean when setting up global links in the navigation?

[area example] is the format for setting up the links throughout your site. Usually defined in the _TOPLEFT_ template, “area” will look in the pages directory for the name of the file listed, minus the .html.

In this example, it will look for a page called example.html.

My theme.cfg is not updating on my Interchange site.

This has been the bane of my existence since I started working on my first Interchange website.

I have already mentioned one way previously about changing the line break types in Dreamweaver, and here are some other methods to prevent any non Unix breaks from getting in that file.

Make sure that you .cfg files are being uploaded in ASCII and not the default ftp of Dreamweaver which is Binary. In order to set this you need to edit the FTP Extension Map file.

On your local hard drive, navigate to the directory where your Dreamweaver is installed.

Macromedia > Dreamweaver MX 2004 > Configuration > FTPExtensionMap.txt.

Open this file in Notepad and you will see different file types listed and the type of ftp method for each. Add your extension in a similar format and specify the type of ftp method you want. As a rule of thumb, most web files are ASCII except for Image and Media files which are Binary.

Save and Exit the file and restart Dreamweaver for those changes to take effect.

The second way you can make sure to rid your file of CR Windows breaks is to make sure you are saving the correct type of file in Homesite (If you are using it).

Open Homesite

Options > File Settings

In this section you should see three different types of method to save the files, PC, Unix and Macintosh. Set the type to Unix.

What happens if I get the file on the server and it isn’t working, can I get rid of the CR breaks?

Open up SSH and navigate to the folder where your theme.cfg file is located.

At the prompt type this command. (It’s an Octal Dump with a Grep to find any CR line breaks in the code.)

od -a catalog.cfg | grep cr

Hopefully, this won’t spit anything out, but if it does, then you should be able to clean up the file. Either save it again with the changes made in Homesite and upload it again. Or, you can run this command at the prompt line.

perl -pi -e ’s/\r\n/\n/g’ < old_file.cfg > new_file.cfg

These are three great ways to fix your theme.cfg file for your interchange site.

Here are some similar arcade posts
Print This Post Print This Post

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)