[opencms-dev] jsp publishing problem in OCMS7

Michael Emmerich m.emmerich at alkacon.com
Thu Jul 21 14:37:30 CEST 2011


Hello Rajneesh


>    I instslled openCms7, database -oracle10g ,server - tomcat 6.0,it is
> working.
>    I logged in with Admin(default) user and created a folder in
> /sites/default with
>    name as com,created one index.jsp.also.I created another folder in
> /sites/default
>    with name intg.
>      i created a  sibling of com/index.jsp in intg folder , it
> automatically made the index.jsp in intg
>    folder.This is the expected behavior.But when I publish
> intg/index.jsp without checking the checkbox
> "publish all sibling", it reflects in com/index.jsp while it should only
> be changed
>    in intg/index.jsp , as per my understsnding,Is there some type of
> setting
>    in openCms which i may be missing.
>    I tried with another user but still i am facing the same problem.


You must understand how siblings in OpenCms work:

If yo have two siblings in OpenCms, com/index.jsp and  intg/index.jsp, 
both share the same content entry in the Database. Better said, both 
files have the identical content, this content is "just" listed on two 
different location in the virtual file system.

This means, if you change the content of one of those files, the content 
of the other file is changes, as it is the identical content item. If 
you publish a sibling, the content changes are of course published for 
all siblings, as all siblings share the same content.

So what is the check box in the publish dialog for?
Siblings can have different properties. For example, you can give both 
of your siblings a different title. If you now publish a sibling and do 
not select the check box, only the properties of the current file are 
published, those of the other sibling stay the same.

Hope this makes it a bit clearer.

-- 
Kind Regards,
Michael.

-------------------
Michael Emmerich

Alkacon Software GmbH  - The OpenCms Experts
http://www.alkacon.com - http://www.opencms.org



More information about the opencms-dev mailing list