 |
Forums |
Admin Discussion Forums: help Start New Thread
By: wade guidry
RE: Where in code to add a tag to header? [ reply ] 2010-06-29 20:06
|
Problem resolved. D'oh! Should have caught it earlier.
I was renaming earlier template versions like so:
template.html.erb.06292010
The app was then still picking up the older version of the file (ignoring the last "extension", I suppose).
Renaming the older version like template_orig.html.erb fixed that problem.
|
By: wade guidry
RE: Where in code to add a tag to header? [ reply ] 2010-06-29 15:15
|
Thanks, Kim.
Using current version of LALC, with phusion.
Have already tried the touch tmp/restart.txt trick.
We are running in a VM environment, though. So I just realized that issue could be related to a cached or locked server image. So that's where I'll look next.
|
By: Admin Admin
RE: Where in code to add a tag to header? [ reply ] 2010-06-29 00:18
|
What version of LALC are you on? Unless it's an old one - it uses template.html.erb
Are you making sure your getting your changes to the file to the server?
Are you using mongrel or phusion or ... what is your development stack?
You only need to restart rails. We use Phusion and apache - so when I make a change to production I commit to SVN, update svn on the server and then run touch tmp/restart.txt at the root of the app and then refresh the page - then I can see my changes. Mongrel has a different restart script, I can't remember.
|
By: wade guidry
RE: Where in code to add a tag to header? [ reply ] 2010-06-28 22:27
|
Yes, in IE8 in compatibility mode it looks fine.
I haven't changed the code yet. Actually, I have changed the code (added the meta-equiv tag, and the lte IE7), but the change isn't appearing in the browser.
I did restart Apache, but change still doesn't appear.
On my test server, running in 'development' mode, the change does appear.
More of a general question than an alacarte question, but When run in 'production' mode, does Ruby do something differently with caching?
|
By: Admin Admin
RE: Where in code to add a tag to header? [ reply ] 2010-06-25 22:04
|
It looks like just changing the IE conditional statement in template.html.erb fixes it.
Change:
<!--[if IE]><link rel='stylesheet' type='text/css' href='/stylesheets/template_ie.css' /><![endif]-->
To:
<!--[if lte IE 7]><link rel='stylesheet' type='text/css' href='/stylesheets/template_ie.css' /><![endif]-->
|
By: David Lippert
RE: Where in code to add a tag to header? [ reply ] 2010-06-25 20:57
|
|
I actually added this code to my recent install of version 1.4.5 as well. I found that unless IE7 compatibility mode was turned on, subject guides that were laid out in the two column format would display one column under the other. It looked like there was not enough room for the second column to float up next to the first.
|
By: Admin Admin
RE: Where in code to add a tag to header? [ reply ] 2010-06-25 20:44
|
Hi Wade,
All the template files are in /app/views/layouts/. Depending on what version your on, you need to add the tag to /app/views/layouts/template.html.erb and /tutorial.html.erb for the public tempates and /popup.html and /tool.html for the tool.
I would like to know what the problem is though so I can fix the css. Can you give me more details.
|
By: wade guidry
Where in code to add a tag to header? [ reply ] 2010-06-25 18:01
|
I've found that the rendering of catalog module results sometimes breaks down in IE8.
If you put the page in IE compatibility mode, the page renders correctly.
So, I'd like to try adding the following tag to the general page header, to see if it would fix the issue:
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
Any thoughts on the best file in which to do this?
|
|
 |