PDA

View Full Version : Template Problem


thruss
10-Aug-2003, 11:48 AM
I upgraded my site from 6.1 to 6.3 and as a result one of my product templates has gained some additional lines at the top of it including some numerical values and some vertical lines, which looks horrible. I have edited the template in Dreamweaver 3 and I cannot see any codes or line breaks to explain this, and have copied the original template from the backup I took before the upgrade, and the same problem occurs. Any ideas?

pinbrook
10-Aug-2003, 07:10 PM
the problem may not be in the product template, try looking in catalogbody and/or primary

cdicken
11-Aug-2003, 02:52 PM
You could try and track down the problem by switching one of your sections to using an alternative product layout template (set in the 'Product' tab of a section).

If you still get the problem, it then means it is a different template causing the issue.

Ideally, it would be good to see a site with the problem on it - or maybe a screenshot.

thruss
11-Aug-2003, 05:52 PM
Chris

Following earlier updates I played again and the problem went when I changed the template to use parent. Following your update to see an example of this I have tried to recreate it using the original template, but cannot recreate. I'm sorry.

If it helps, I have pages of my site that have a dummy product at the top as text without any formatting or images (I removed the image space from the template). This is where the error occurred.

thruss
11-Aug-2003, 08:15 PM
ok, so I was wrong I do have an example!

if you want to see the results, my site is www.fullofitawards.co.uk, Christmas link bottom right of screen and office party awards. The "1" at the top is the extraneous character that was being written between table rows.

I cannot get over the problem in this area the same way as using the parent template is no good for this page.

I am attaching the file used at the top of the page against the dummy product / text summary.

thruss
11-Aug-2003, 08:16 PM
Could not attach the file as there was an error in the file type. Give me a mail address if you want me to mail it to you.
Ta
Dee

cdicken
12-Aug-2003, 12:28 PM
I think you will find the rogue '1' is in Act_ProductSeparator.html.

thruss
12-Aug-2003, 07:47 PM
Have opened act_productseparator and cannot see any "1's" in the code. Can only see codes.

cdicken
13-Aug-2003, 09:47 AM
Well, the '1' was appearing just at the end of the code which inserted the product separator, but just before the code for the product.

Have a look at the top of your product layout template. Are you absolutely sure there is no '1's near the line that says

NETQUOTEVAR:INCLUDE Act_ProductSeparator.html

You will be able to attach a template to a message in this forum if you put it in a zip file first.

cdicken
15-Aug-2003, 03:10 PM
I've just found what is causing this.

There is a very odd minor bug in 6.1.3 whereby if you create a custom product template with an extension of *.htm rather than *.html, the page generation program leaves the 'l' in between the product templates.

This causes them all the stack up at the top of the section page.

To fix it, rename any custom product templates to give then an *.html extension and then re-select them in the 'General' tab of your products.

thruss
18-Aug-2003, 02:51 PM
I have renamed my template and reselected it within the product and the l is still there. I can only assume I have not renamed it properly. I opened it in dreamweaver and did a save as with an extension from the drop down list of htm and html. Is this the correct way of doing this? I have also done the act_productseparator as advised earlier in the updates to this.

cdicken
18-Aug-2003, 04:02 PM
You might find it easier to find the file in your 'Site1' folder using Windows Explorer, and then right-click on it and select 'Rename'. Dreamweaver always puts an *.htm extension on it by default.

thruss
22-Aug-2003, 12:13 PM
I still have the rogue 1 at the top of the page and I have changed the template in question (it is a dummy product template I have created without any graphics so that text starts at the top of the page). When I reselect it within Actinic it shows an extension of .html rather than .htm so I think I have renamed the file ok? I have tried to rename the other template you suggested (act_productseparator) but this causes errors when trying to preview so have not saved the changes to that. Am I being really thick?

cdicken
26-Aug-2003, 01:15 PM
When I reselect it within Actinic it shows an extension of .html rather than .htm so I think I have renamed the file ok? Sounds OK to me.

I have tried to rename the other template you suggested (act_productseparator) but this causes errors when trying to preview so have not saved the changes to that. I would use Windows Explorer to look in your 'Actinic Ecommerce v6\Sites\Site1' folder to look what extension your Act_ProductSeparator file has. If you cannot see any file extensions in Windows Explorer, then go to 'Tools | Folder Options', change to the 'View' tab and un-tick where it says 'Hide file extensions for known file types'.

Make sure Act_ProductSeparator has an extension of .html. Then open your product layout template and make sure that the line near the top says:

NETQUOTEVAR:INCLUDE Act_ProductSeparator.html

and not

NETQUOTEVAR:INCLUDE Act_ProductSeparator.htm

thruss
26-Aug-2003, 08:35 PM
Thank you for telling me how to check the extensions! They are definitely .html. Any other ideas?

cdicken
27-Aug-2003, 10:38 AM
I have no other suggestions I'm afraid. The suggestions I gave to you worked fine for me.

Perhaps you can send a snapshot to communityadmin@actinic.co.uk and I'll take a look at what else is causing it.

cdicken
28-Aug-2003, 08:05 AM
Your problem is with the 'Continue the fun into the new year' product. It is using a template called 'Act_CenterProductLinenoimage.htm'. You need to rename this to 'Act_CenterProductLinenoimage.html' and then re-select it in the 'Product Layout' field.

thruss
29-Aug-2003, 05:19 PM
wow, that easy. Thank you.