You are not logged in.
Pages: 1
hello,
I have this block of code in my page:
<a id="home" href="<txp:site_url />" title="back to homepage"> <span class="arr"></span> home</a><a id="projects" href="<txp:site_url />projects?c=illustration&p=1" title="">projects <span class="arr"></span> <img src="" /> </a><a id="about"<txp:if_section name="projects">class="low"</txp:if_section> href="<txp:site_url />about" title="">about <span class="arr"></span> <img src="" /> </a><a id="contact"<txp:if_section name="projects">class="low"</txp:if_section> href="<txp:site_url />contact" title="">contact <span class="arr"></span> <img src="" /> </a>
which is apparently requesting the page address each time a site_url tag is called.
is that normal..?
thank you
what was that again…?
Offline
No, that’s not normal, especially if you see what happens when you use the site_url tag:
function site_url()
{
return hu;
}
It doesn’t get more simple than that. No request at all, it just returns a predefined constant value.
Offline
forget about the above, I guess I need to learn how to read firebug’s reports.
thank you anyway
what was that again…?
Offline
mmm… how would you use if_individual_article inside <txp:php>?
what was that again…?
Offline
Pages: 1