Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2008-03-01 02:34:05
- RepoPrez
- Member
- Registered: 2008-03-01
- Posts: 10
section specific header?
I have been using Textpattern for a while, but I am trying to implement section specific pictures to be placed in the header via inline CSS. I was using the <txp:if_section> tag, but it didn’t seem to work for me in Firefox but worked OK in IE. So now I am searching for a different solution :(
Can anyone help me? Please? :)
Offline
Re: section specific header?
um the tags are not even interpreted at the browser level. clear your cache or something.
Offline
#3 2008-03-01 04:22:47
- RepoPrez
- Member
- Registered: 2008-03-01
- Posts: 10
Re: section specific header?
either I am lost, or that didnt answer my question. lol.
I am just trying to figure out a good (and easy) way of having a picture specific to that section show whenever read that section.
This is the website I am working on, maybe that will help. I have generic photos in for right now.
http://www.rsiphoto.com
thanks for the help.
Last edited by RepoPrez (2008-03-01 04:24:01)
Offline
Re: section specific header?
As iblastoff said, the tags have nothing to do with browsers. Textpattern is PHP based CMS, and PHP is, as we all know, server side language, not client side, like JavaScript and CSS are, in example.
So, it possibly a cache problem as iblastoff descriped. So, you possibly cache your pages, by using Last-Modified header, or some real cache solution. IE doesn’t own anykind of real cache functionality, it doesn’t even handle sent headers correctly, but other browsers like Firefox and Opera do – if you don’t tell them to avoid caching (that isn’t good thing – could broke php based filedownloads etc).
Therefor clear your cache as iblastoff said, as it isn’t txp:if_section
tag’s fault if the code doesn’t work – and it works in every browser. You can clear Firefox’s cache by hitting CTRL+F5 while the browser is open.
For section specific photos: you can use <div id="header-<txp:section />"></div>
and then on your styleheet:
#header-mysectionname1 {background:;}
#header-mysectionname2 {background:;}
PS. Don’t use background music on websites, most users hate it. I was considering of browsing rsiphoto, but when i heard that song, I closed Firefox’s tab. (When it also is somewhat hateful techno…) ;)
Last edited by Gocom (2008-03-01 05:10:04)
Offline
#5 2008-03-01 06:44:44
- RepoPrez
- Member
- Registered: 2008-03-01
- Posts: 10
Re: section specific header?
haha. awesome idea. thanks.
I stay away from music too, but thats what he wanted. he is somewhat of a designer too, he should know better.
Offline
Pages: 1