Projet

Général

Profil

Actions

Support #4169

fermé

Restriction du nombre de portlets sur les pages d'accueil

Ajouté par LNE Exploitation il y a environ 11 ans. Mis à jour il y a environ 11 ans.

Statut:
Closed
Priorité:
Normal
Assigné à:
-
Catégorie:
Portlets
Version cible:
-
Début:
16/01/2013
Echéance:
% réalisé:

0%

Temps estimé:
Temps passé:
Navigateur:
Internet Explorer 7
Votre version de Silverpeas:
5.10.2
Système d'exploitation:
Windows XP
Livraison en TEST:
Livraison en PROD:

Description

Les pages d'accueil standard des espaces et la celle de l'espace personnel comportent un certain nombre de portlets agençables par l'utilisateur.
Est-il possible de limiter le nombre de ces portlets mis à disposition, comme par exemple supprimer (pour toutes les pages d'accueil) le message de bienvenue ?

Si oui, comment procéder ?
D'avance merci

Mis à jour par David Lesimple il y a environ 11 ans

  • Catégorie mis à Portlets
  • Statut changé de New à Feedback

Bonjour,

oui cela est possible en modifiant les 3 fichiers dans $SILVERPEAS_DATA_HOME/portlets/data/
pour les actualités, il suffit de commenter les paragraphes où le terme quickinfo apparait.
Exemple dans portlet-window-preference-registry.xml :

Mis à jour par LNE Exploitation il y a environ 11 ans

Bonjour,

Voilà ce que nous trouvons dans le dossier indiqué :

18:28 root@PDOC /opt/silverpeas/data/portlets/data# ll
total 88K
rw-r--r- 1 appsilver appsilver 2,5K 16 janv. 16:06 0-portlet-window-preference-registry.xml
rw-r--r- 1 appsilver appsilver 6,0K 21 janv. 18:23 0-portlet-window-registry.xml
rw-r--r- 1 appsilver appsilver 1,8K 13 déc. 15:26 223-portlet-window-preference-registry.xml
rw-r--r- 1 appsilver appsilver 3,7K 13 déc. 15:26 223-portlet-window-registry.xml
rw-r--r- 1 appsilver appsilver 1,8K 13 déc. 15:22 258-portlet-window-preference-registry.xml
rw-r--r- 1 appsilver appsilver 3,7K 13 déc. 15:22 258-portlet-window-registry.xml
rw-r--r- 1 appsilver appsilver 5,6K 6 sept. 13:33 29-portlet-window-registry.xml
rw-r--r- 1 appsilver appsilver 2,7K 16 janv. 16:08 425-portlet-window-preference-registry.xml
rw-r--r- 1 appsilver appsilver 5,6K 16 janv. 16:08 425-portlet-window-registry.xml
rw-r--r- 1 appsilver appsilver 13K 10 oct. 15:21 portlet-app-registry.xml
rw-r--r- 1 appsilver appsilver 3,6K 21 janv. 18:14 portlet-window-preference-registry.xml
rw-r--r- 1 appsilver appsilver 6,8K 21 janv. 18:15 portlet-window-registry.xml
rw-r--r- 1 appsilver appsilver 2,8K 6 déc. 10:18 space13-portlet-window-preference-registry.xml
rw-r--r- 1 appsilver appsilver 6,1K 6 déc. 10:18 space13-portlet-window-registry.xml

Quels sont SVP les fichiers à modifier pour :
  • ne plus avoir certaines porlets (par exemple Bienvenue) dans la page d'accueil des nouveaux espaces créés
  • ne plus avoir certaines portlets dans la liste proposée du menu "Ajouter une fenêtre"

D'avance merci

Mis à jour par Stéphanie Fariello il y a environ 11 ans

Les fichiers généraux sont :
portlet-app-registry.xml
portlet-window-preference-registry.xml
portlet-window-registry.xml
Comme expliqué par David, pour ne plus avoir un certain type de portlet, exemple les actualités, il faut, dans ces 3 fichiers, commenter les paragraphes contenant le terme quickinfo.

Les fichiers préfixés par un numéro (exemple : 223-portlet-window-preference-registry.xml et 223-portlet-window-registry.xml) sont les fichiers de configuration de l'espace personnel de l'utilisateur 223.
Ceux préfixés par une chaine de type spaceXXX (exemple : space13-portlet-window-preference-registry.xml et space13-portlet-window-registry.xml) sont les fichiers de configuration de l'espace WA13.

Mis à jour par LNE Exploitation il y a environ 11 ans

  • Statut changé de Feedback à Closed
Actions

Formats disponibles : Atom PDF