[opencms-dev] Using Include?

Stanczak Group justin at stanczakgroup.com
Tue Sep 12 17:02:55 CEST 2006


Well now wait. When I click to preview it's showing file not found. This 
has something to do with the template I think. I set the template to 
empty and I can preview now. What am I doing wrong?

Christian Steinert wrote:
> use this
>
> <cms:include file="/ads_content.html" element="body"
> editable="true"/>
>
>   
>> Well I'm not sure why this wouldn't work.
>>
>> <cms:include file="/sites/default/ads_content.html" element="body" 
>> editable="true"/>
>>
>> All the docs show this working. Is this the proper way to do this?
>>
>> Stanczak Group wrote:
>>     
>>> I've created a template and it needs to include some html that my 
>>> users will need to update. I have the template in the modules folder 
>>> and I put the html page under the default site. I use something like 
>>> <cms:include file="/sites/default/ads_content.html" element="body" 
>>> editable="true"/>. This method doesn't seem to be working for me. I'm 
>>> not completely understanding what is doing wrong, but I get file not 
>>> found messages. What strange is it will work for a while then stop 
>>> working. I'm not sure if this connected to the logout or what. So my 
>>> question is how should I do this. I want some content that's included 
>>> in the template, and is located in a place where my users can edit it. 
>>> As in I didn't think letting them in the module section would be ok. 
>>> Anyone have some advice?
>>>
>>>       
>> -- 
>> Justin Stanczak
>> Stanczak Group
>> 812-735-3600
>>
>> "All that is necessary for the triumph of evil is that good men do nothing."
>> Edmund Burke
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>     
>
>
> _____________________________________________________________________
> Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>   

-- 
Justin Stanczak
Stanczak Group
812-735-3600

"All that is necessary for the triumph of evil is that good men do nothing."
Edmund Burke




More information about the opencms-dev mailing list