Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#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

#2 2005-11-19 23:04:30

bluearc21
Member
From: US.VA
Registered: 2004-02-24
Posts: 62
Website

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

#5 2006-07-20 14:05:22

jayrope
Plugin Author
From: Berlin
Registered: 2006-07-06
Posts: 700
Website Mastodon

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

Board footer

Powered by FluxBB