Technology Tools for Ministry

Community

Web-Empowered Church User Community
All Categories > Getting Started > Templates > Template changes for an old HTML coder
Total Posts: 9 - Pages (1): [1]
Author: David Simmons
Posted: Jul 18 2008 - 02:49 AM
Subject: Template changes for an old HTML coder
I've gotta be missing something as obvious as the nose on my face ....but need some help.

I'm wanting to change a template (template 8-sub2brown - which is the current one being used by my site) layout for example removing the bottom menu bar. Using FileList, I navigate to tv-templates/template8-sub2brown and choose 'Edit' on the template.htm file.

Look toward the bottom of the html, I find the section I want and <!-- --> comment the section out (or so I hoped).

Save it....Clear All Caches....refresh the FE in another window.....bottom menu bar is still there?!

Also, why when I look at the template.htm file - is the actual data 'all wrong'.....For example, I'm looking at the Footer Section and my template.htm file has the default "First United Methodist Church" information?! but my site shows the right info?

The obvious tells me that I'm not using the right 'template.htm' file.....but all of the RTFineM docs tell me that's the one I should be editting?

Can you point out to me the 'nose on my face'?

Thanks - dave
user picture Author: Jason Gillett
Posted: Jul 18 2008 - 06:16 PM
Subject: re: Template changes for an old HTML coder
The information in the template file is being dynamically replaced by your info. I'm not the best to explain how exactly it does this, but I believe I can tell you how to remove the bottom menu bar.

click on TemplaVoilà in the left menu bar
you might need to select the top level of your web site in the page menu
click on /Storage Folder/ under page header in the right panel
select the template you want to edit
then click on Update Mapping
click on the mapping tab
find the line with Bottom Menu and click its Ch.Mode button
select the empty space in the drop-down menu
then click on set
then save it

that should prevent the dynamic replacement
you'll need to keep the menu commented out in the template

you might want to wait to see if there is a simpler method, but that should work


Author: David Simmons
Posted: Jul 18 2008 - 10:57 PM
Subject: re: Template changes for an old HTML coder
Welp....I would say this is contrary to the Command-Line method of an 'ole HMTL coder'.....but it appears to work. Since I'm running 4.2.1, my procedure was a little different.

After I click 'TemplaVoila' on the left panel....I had to click on the 'page' icon of the site root and choose 'View: DS/TO'.....then I could click on the specific Template....and then find Bottom.Menu and click on Ch.Mode to un-map the content.

Through a couple of other changes - I do see what you mean that the specific 'template.htm' needed also to be changed and how TemplaVoila is automagically re-writing the site specific info.

Thanks for the response!

- dave
Author: David Simmons
Posted: Jul 19 2008 - 03:00 AM
Subject: re: Template changes for an old HTML coder
Was hoping someone could answer a whyda, whoda...hmmm...duntknow question.

I've used the discussed techniques to remove the bottom menu, the contact, and copyright information....am also trying to get rid of the 'Site Name' at the top....was successful in removing the name I have, but I'm getting a dangling 'First United Methodist Church' tag that's not mapped (that I can tell - but since TemplaVoila isn't substituting it for the 'real stuff' then it's not a mapping issue, right?

Have also scoured the template.htm file and have erased it...but it still seems to show up?!

Any ideas?

Thanks in advance - dave
user picture Author: Jason Gillett
Posted: Jul 19 2008 - 01:57 PM
Subject: re: Template changes for an old HTML coder
can you give us any more information, maybe even the web address?
Author: David Simmons
Posted: Jul 20 2008 - 12:30 AM
Subject: re: re: Template changes for an old HTML coder
Sorry....actually- I believe it was a cache issue...as I did more editing (and flushing caches) - it did erase/remove it....Thanks for the willingness to 'dig in'!

= dave
Author: David Simmons
Posted: Jul 20 2008 - 07:06 PM
Subject: re: Template changes for an old HTML coder
OH...also on a side note for those 'by-handers'...make sure that you check-out the .css files because template changes also (may) require changing values with the CSS files.

Hope the Helps - dave
user picture Author: Barbara Bowser
Posted: Jul 21 2008 - 10:22 AM
Subject: re: Template changes for an old HTML coder
One easy way to remove content from visibility is to edit the CSS file of the template - styles.css. You can find this file in the main root folder of the template within fileadmin/tv-templates/...

If you dig a little, you can find the particular CSS style of the content you want to hide - ie. "#sitename" and add this property:

display:none;


This will remove the content from browser display, but will still allow it to be in the HTML. In some ways, this may help your search engine rankings - especially with the site name. Search engines may not be as likely to find you if there is not a clear and descriptive name for your website within the <body> of the site. The same follows for navigational links.

This also degrades nicely in older browsers that may not understand the CSS property or that are text-based.

I hope this gives another option. It can get a little hairy editing the HTML file of the template because of the mapping that must be done in TemplaVoila. With some practice, it is not so bad, but in my experience, the road to get there was a bit bumpy Editing the CSS is a bit easier since it does not require re-mapping.

Take care,
Barbara
Author: David Simmons
Posted: Jul 22 2008 - 11:42 AM
Subject: re: Template changes for an old HTML coder
Ahhh....that's a much smarter way....thanks Barbara
Total Posts: 9 - Pages (1): [1]
You must login to post a message to this conference.