[xwiki-devs] [Proposal] Title compatibility flag
Hi, Following our discussion on the new title behavior we need to define the title compat flag value. I'm proposing: #-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0 + we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki: isTitleInCompatibilityMode() WDYT? Thanks -Vincent
On Wed, Sep 16, 2009 at 14:38, Vincent Massol <[email protected]> wrote:
Hi,
Following our discussion on the new title behavior we need to define the title compat flag value.
I'm proposing:
#-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0
+ we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki:
isTitleInCompatibilityMode()
WDYT?
+1 for both
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
+1 for both Beware of the typo: "should be using the compatyiblity mode " -> compatibility not compatyibility Guillaume On Wed, Sep 16, 2009 at 2:51 PM, Thomas Mortagne <[email protected]>wrote:
On Wed, Sep 16, 2009 at 14:38, Vincent Massol <[email protected]> wrote:
Hi,
Following our discussion on the new title behavior we need to define the title compat flag value.
I'm proposing:
#-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0
+ we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki:
isTitleInCompatibilityMode()
WDYT?
+1 for both
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Guillaume Lerouge Product Manager - XWiki Skype: wikibc Twitter: glerouge http://guillaumelerouge.com/
+1 for both. JV. On Wed, Sep 16, 2009 at 2:38 PM, Vincent Massol <[email protected]> wrote:
Hi,
Following our discussion on the new title behavior we need to define the title compat flag value.
I'm proposing:
#-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0
+ we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki:
isTitleInCompatibilityMode()
WDYT?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
Vincent Massol wrote:
Hi,
Following our discussion on the new title behavior we need to define the title compat flag value.
I'm proposing:
#-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0
+1
+ we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki:
isTitleInCompatibilityMode()
+0, shouldn't we have a generic way of accessing configuration parameters in velocity? Thanks, Marius
WDYT?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
On Sep 16, 2009, at 3:34 PM, Marius Dumitru Florea wrote:
Vincent Massol wrote:
Hi,
Following our discussion on the new title behavior we need to define the title compat flag value.
I'm proposing:
#-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0
+1
+ we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki:
isTitleInCompatibilityMode()
+0, shouldn't we have a generic way of accessing configuration parameters in velocity?
yes I agree. I'd like to have the services proposal implemented before we do this though. Thanks -Vincent
On Wed, Sep 16, 2009 at 15:34, Marius Dumitru Florea <[email protected]> wrote:
Vincent Massol wrote:
Hi,
Following our discussion on the new title behavior we need to define the title compat flag value.
I'm proposing:
#-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0
+1
+ we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki:
isTitleInCompatibilityMode()
+0, shouldn't we have a generic way of accessing configuration parameters in velocity?
If it's totally generic then it would need programming right since we don't want anyone to access what is stored in xwiki.cfg
Thanks, Marius
WDYT?
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
-- Thomas Mortagne
Hi On Wed, Sep 16, 2009 at 6:08 PM, Vincent Massol <[email protected]> wrote:
Hi,
Following our discussion on the new title behavior we need to define the title compat flag value.
I'm proposing:
#-# Defines whether title handling should be using the compatyiblity mode or not. When the compatibility #-# mode is active, if the document's content first header (level 1 or level 2) matches the document's title #-# the first header is stripped. xwiki.title.compatibility=0
+ we need a way to access this property from contentview.vm so I'm proposing to also add a method to api.XWiki:
isTitleInCompatibilityMode()
WDYT?
+1 - Asiri
Thanks -Vincent
_______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (6)
-
Asiri Rathnayake -
Guillaume Lerouge -
Jean-Vincent Drean -
Marius Dumitru Florea -
Thomas Mortagne -
Vincent Massol