Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2005-11-19 22:50:28
- Zubrik
- Member
- Registered: 2005-07-28
- Posts: 65
Using TXP tags inside php includes
Hello,
I’m new using TXP, and I’m trying to do something like this in the default template:
<code>
<?php require(“sidebar-1.htm”); ?>
</code>
And then I have file sidebar-1.htm like this:
<code>
<div id=“sidebar-1”>
<txp:section_list wraptag=“ul” break=“li” />
</div>
</code>
It doesn’t work as it should when I put the txp tag, but it works without that tag, with plain html.
My question is: is it possible to use txp tags inside included files?
Thank you!
Last edited by Zubrik (2005-11-19 22:59:10)
Offline
Re: Using TXP tags inside php includes
Boy, I don’t think so Zubrik. Very creative though!
“If you build it, they will come.”
Offline
#3 2005-11-19 23:04:49
- Zubrik
- Member
- Registered: 2005-07-28
- Posts: 65
Re: Using TXP tags inside php includes
Well, no answers needed: I just discovered FORMS right now…
Offline
#4 2005-11-19 23:52:57
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Using TXP tags inside php includes
And the simple answer to the original question is ‘no’. :)
Offline
Re: Using TXP tags inside php includes
oh it might when you use
echo ‘your html to be echoed’;
A hole turned upside down is a dome, when there’s also gravity.
Offline
Pages: 1