[opencms-dev] Accessing html file from sites folder

Achim Westermann a.westermann at alkacon.com
Thu Nov 10 12:06:55 CET 2005


Hi Manjo,

I assume (just time for a quick look) you are using the wrong collector name.
Try "singleFile".

/sites/default/BlackRock/Modules/Emp_001.html is a file and no folder but collector allInFolder tries to treat it as a folder.

kind regards,

Achim

Achim Westermann
-------------------
Alkacon Software
http://www.alkacon.com

Manoj Kumar Konakalla wrote:
> Hi,
>  
> I am trying to read the values of elements from an existing document in 
> sites folder. Actual file path is 
> "/sites/default/BlackRock/Modules/Emp_001.html"
>  
> I want to read it like this
>  
>  CmsObject cmsObject = cms.getCmsObject();
>  String employees= "/sites/default/BlackRock/Modules/Emp_001.html";
>  CmsDefaultResourceCollector collector = new CmsDefaultResourceCollector();
>  List allEmployees= collector.getResults(cmsObject, "allInFolder", 
> employees);
>  
> But it is not identifying the path. Is there any way to pass the 
> filepath here?
>  
> I tried this way also,
>  
>  String employees= "Emp_${number}.html|204";
>  
> But it is of no use.
>  
> Any kind of help will be appreciated.
>  
> Thanks
> Manoj
>  
>  
> 
> 
> ------------------------------------------------------------------------
> 
> 
> 
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list