Alan Burlison wrote:
> Brain fade - you can mostly do this with the parse tag,
except that it
> doesn't search for the file. How about adding a
parameter to the
> parse tag (search=yes) to get it to search in the same
way as the
> include searchfile module does?
>
> On 18/01/07, Alan Burlison <alan.burlison gmail.com> wrote:
>> I have a requirement to insert a HTML fragment at
the bottom of each
>> page (a "sponsored by" message), but just
for certain subtrees of the
>> site. Basically, what I want to something like the
searchfile tag
>> that instead of outputing the file name, outputs
the content of the
>> file itself. I know about the include tag, but I
don't want the stuff
>> that it wraps the content in, I just want it to
include the content
>> verbatim. There doesn't seem to be an easy way to
do this, unless I'm
>> missing something obvious...
Hi Alan,
you could put the parse module in a if statement checking
for the path:
<% if (pagePath.isContainedIn(myPath)) { %>
<cms:module name="parse:myfile.html"
location="foo" />
<% } %>
If the subtrees are not too many, this should work,
otherwise it becomes
really ugly.
Luciano
------------------------------------------------------------
-------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.
php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
MeshCMS-Discussion mailing list
MeshCMS-Discussion lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesh
cms-discussion
|