AnsweredAssumed Answered

Aikau dev - encoding -when i try to use the AlfDocumentList widget, I have accent issue i don't have with  the PathTree widget

Question asked by jugom on Feb 8, 2018

Hello,

 

If I tried to use the AlfDocumentList widget on a javascript page with french folder names, I have some accent issues.

How to solve these issues ? Is there a way to configure encoding ?

I manage to use other widget without accent issues.

 

For example, my page defines a vertical layout with two widgets: one pathTree and the other AlfDocumentList, and the AlfDocumentList have the accent issue as shown on the attached file.

 

var pathTree = {
    name : "alfresco/navigation/PathTree",
    children : "true",
    config : {
        showRoot : true,
        rootLabel : "Repository",
        rootNode : "/app:company_home",
        children : "true",
        publishTopic : "ALF_ITEM_SELECTED"
    }
};

 

var docs = {
    name : "alfresco/documentlibrary/AlfDocumentList",
    config : {
        rootNode : "/app:company_home",
        useHash: true,
        widgets : [ {
            name : "alfresco/documentlibrary/views/AlfSimpleView"
        } ]
    }
}

 

model.jsonModel = {
        services: [
            "alfresco/services/NavigationService",
            "alfresco/services/LogoutService",
            "alfresco/services/DocumentService",
            "alfresco/services/ActionService",
            "alfresco/services/UploadService" ],
    widgets : [ {
        name : "alfresco/layout/VerticalWidgets",
        config : {
            widgets : [ surfLogo, pathTree, docs

 

            ]
        }
    } ]
};

And my template page is just:

 

<@processJsonModel group="share"/>

Attachments

Outcomes