Thanks for your help Dave, however that wasn't what I was needing.

I wanted some content within a Roller template to be pulled in externally so
that the same template could be applied to many weblogs but with differing
content. However, in this instance I didn't want the content to be a blog
entry but more like a standard html page describing that particular blogger.

The solution that I found to work was:

   ## Inlcude about this blog content here
   ## Place a file called 'weblog.vm', where weblog is the handle of the
weblog
   ## on the server within:
Tomcat\webapps\roller\WEB-INF\velocity\AboutPages

   #include( "AboutPages/${model.weblog.handle}.vm" ) 

Therefore this will pull in the contents of *.vm where the * must be the
same as the handle of the particular weblog. The only problem with this
solution is that there must be a .vm file for each weblog otherwise you
receive an error.


Dave Levy wrote:
> 
> Rich
> 
> I am unsure of what you're looking to do, but I hope the following helps.
> 
> I have customised the currency theme and moved towards having a bunch of 
> includes. I usually put the file in to the templates directory and use 
> the preceding underbar convention e.g. _banner
> 
> The following code then includes it into the weblog file
> 
>     #includeTemplate($model.weblog "_banner")
> 
> In my case _banner contains html code and is an ascii file (I think)
> 
> For this to work on each article, my theme came with an _day file within 
> which is a loop
> 
>      #foreach( $entry in $entries )
> 
> the enclosed code is executed for each article
> 
> I place the code to display the affinity/posting buttons after each 
> article in this loop. See http://blogs.sun.com/DaveLevy
> 
> http://blogs.sun.com/DaveLevy/entry/voting_in_the_blogosphere shows  
> example code for this usage.
> 
> You can include your text file within this loop.
> 
> http://blogs.sun.com/DaveLevy/tags/roller may also have some hints.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-do-I-include-*.txt-file-contents-in-a-Roller-Page-tp16145755s12275p16274112.html
Sent from the Roller - Dev mailing list archive at Nabble.com.

Reply via email to