IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

EDI, CMS, Outils, Scripts et API PHP Discussion :

[eZ Publish] Relations Object with template


Sujet :

EDI, CMS, Outils, Scripts et API PHP

  1. #1
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut [eZ Publish] Relations Object with template
    Bonjour ,

    Je Cherche un solution pour le probleme suivant :

    j'ai deux classe : a et b
    et j'ai 1 template pour chacune de ces classes.

    Dans la classe a , la classe b est en relation objet !

    Mon probleme est que dans le template de la classe a , jintegre le template de la classe b ! avec un include ! mais je n'arrive pas a afficher les données de la classe b !
    Sachant que le contenu de la classe b sont des relations_objects.

    C'est a dire que si mon template b est un tableau avec toutes les données que j'ai collecté avec mes relations objects, je narrive pas apres un include a affiché le tableau ainsi que ces données ! ( il n'y a que le tableau qui apparait , mais je narrive pas a appeler les données)

    Merci,
    Cordialement

  2. #2
    Membre Expert
    Avatar de Thes32
    Homme Profil pro
    Développeur PHP, .Net, T-SQL
    Inscrit en
    Décembre 2006
    Messages
    2 379
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur PHP, .Net, T-SQL

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 379
    Par défaut
    Salut et Bienvenu,

    tu n'as pas besoin de faire l'inclusion utilises plutôt la fonction
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {content_view_gui content_object=$object view=full }
    Quant à l'objet à passer fait un
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {$la_variable_contenant_lattribut|attribute(show,2)}
    poste le résultat ici, cela permettras de t'indiquer la valeur à passer à content_view_gui.

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut template
    Bonjour, et merci de ta réponse.

    Je ne suis pas vraiment sure d'avoir compris tes directives.

    Donc voici mon template A.

    Code :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    <fieldset><legend>Titre de loeuvre</legend>
    {attribute_view_gui attribute=$node.data_map.name}</fieldset>
     
    <fieldset><legend>Lien Oeuvre personne</legend>
    {include uri='design:lien/lop.tpl'}
    Alors, j'ai fait un include sur mon deuxieme template "lop.tpl", comme on le voit ci-dessus.

    Et ci-dessous, voici mon template lop.tpl

    Code :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    <table>
    	<th>Type</th>
    	<th>Artiste</th>
    		<tr>
    			<td>
    {attribute_view_gui attribute=$node.data_map.artistlop}
                            </td>
    			<td>
    {attribute_view_gui attribute=$node.data_map.typelop}
                            </td>
    	        </tr>
    </table>

    Les attributs " artistlop " et " typelop " etant des relations objects avec 2 fiches distincts.


    Le but est donc d'avoir sur template A,
    en incluant mon template lop.tpl
    les resultats de ce dernier , soit artistlop et typelop.



    En fait cest pour un site de music.

    J'ai :
    une classe oeuvre
    une classe artiste
    une classe type de lartiste
    uen classe lien oeuvre personne


    Le but cest de pouvoir creer une fiche oeuvre, et avec un relations object, inserer tous les artistes en relation avec cette oeuvre, accompager du type de chacun des artistes.

    Pour cela j'ai creer la classe lien oeuvre personne, qui a pour relations objets : la classe artiste et la classe type de l'artiste.

    Ainsi dans ma classe oeuvre de fait un include de la classe lien oeuvre personne, afin davoir un tableau du style.


    -------------------
    Nom de l'oeuvre


    type artiste | Nom artiste en relation avec loeuvre1
    type artiste | Nom artiste idem 2
    type artiste | Nom artiste idem 3
    type artiste | Nom artiste idem 4

    -------------------


    Sinon ce que j'essaie de faire, cest
    de changer le template du datatype relationsobjects
    afin qu'il puisse me renvoyé les attibuts type et nom de lartiste ds la fiche "liens oeuvre personne", au lieu de me renvoyer le nom de la fiche.

    mais je ne sais pas quoi mettre :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {content_view_gui view=embed content_object=fetch( content, object, hash( object_id, $Relations.item.contentobject_id))}
    ceci affiche le nom de larticle.


    Merci bcp , de votre patience .

  4. #4
    Rédacteur

    Avatar de Yoteco
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Décembre 2004
    Messages
    1 099
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 38
    Localisation : Suisse

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Décembre 2004
    Messages : 1 099
    Par défaut
    Salut,

    Comme te l'as dis thes32, tu n'as pas besoin de faire d'inclusion. Il te suffit d'utiliser content_view_gui.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    <fieldset><legend>Titre de loeuvre</legend>
    {attribute_view_gui attribute=$node.data_map.name}</fieldset>
     
    <fieldset><legend>Lien Oeuvre personne</legend>
    <table>
        <tr>
            <th>Type</th>
            <th>Artiste</th>
        </tr>
        <tr>
            <td>{content_view_gui content_object=$node.data_map.artistlop.object view=full}</td>
            <td>{content_view_gui content_object=$node.data_map.typelop.object view=full}</td>
        </tr>
    </table>
    Ensuite il te suffira d'ajouter une règle dans override.ini.append.php pour spécifier quelle template utiliser pour afficher tes deux relations objects !
    Blog - Mon espace developpez -
    Oracle Certified Professional, Java SE 6 Programmer
    eZ Publish Certified developer

  5. #5
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut override
    Qu'entends tu par :

    une règle dans override.ini.append.php pour spécifier quelle template utiliser pour afficher tes deux relations objects !
    ?

    car dans mon fichier override, jai deja overrider ma classe lien oeuvre artiste et ma classe oeuvre.

    et en essayant le code que tu mas montré , j'obtient :

    Type Artiste
    Current version Current version

    Related objects Related objects
    None None

  6. #6
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut override
    Voici ce que j'ai fait :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    [full_lop]
    Source=node/view/full.tpl
    MatchFile=lien/lop.tpl
    Subdir=templates
    Match[class_identifier]=lop
     
     
    [full_oeuvre]
    Source=node/view/full.tpl
    MatchFile=full/oeuvre.tpl
    Subdir=templates
    Match[class_identifier]=oeuvre
    Match[view]=lop

  7. #7
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut re
    Bonjour, cest bien ce model doverride quil faut suivre ?

    j'ai fais un template pour la classe lien oeuvre personne (lop.tpl)
    et une template pour la classe oeuvre.

    et ds mon override, j'ai fais comme ci dessus...

  8. #8
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut attribut show
    Cela ne maffiche rien :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
     
    {content_view_gui content_object=$node.data_map.artistlop.object view=full}
    {$node.data_map.artistlop.object|attribute(show,2)}

  9. #9
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut view=full_op
    etant donné que j'ai :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    [full_oeuvre]
    Source=node/view/full.tpl
    MatchFile=full/oeuvre.tpl
    Subdir=templates
    Match[class_identifier]=oeuvre
     
    [full_lop]
    Source=node/view/full.tpl
    MatchFile=lien/lop.tpl
    Subdir=templates
    Match[class_identifier]=lop
    je devrais mettre cela : non ?

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    <td>{content_view_gui content_object=$node.data_map.artistlop.object view=full_lop}</td>
    <td>{content_view_gui content_object=$node.data_map.typelop.object view=full_lop}</td>

  10. #10
    Membre Expert
    Avatar de Thes32
    Homme Profil pro
    Développeur PHP, .Net, T-SQL
    Inscrit en
    Décembre 2006
    Messages
    2 379
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur PHP, .Net, T-SQL

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 379
    Par défaut
    tes overrides marchent-ils ?

  11. #11
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut override
    oui ils marchent a merveille

  12. #12
    Membre Expert
    Avatar de Thes32
    Homme Profil pro
    Développeur PHP, .Net, T-SQL
    Inscrit en
    Décembre 2006
    Messages
    2 379
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur PHP, .Net, T-SQL

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 379
    Par défaut
    super ! plus la peine de parler des overrides alors !

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {$node.data_map.artistlop|attribute(show,2)}
    t'affiche quoi ?

  13. #13
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut
    dans le template oeuvre il ne m'affiche rien.


    et dans le template lop , il m'affiche :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
     
    Attribute 	Type 	Value
    id 	string 	355
    contentobject_id 	string 	77
    version 	string 	9
    language_code 	string 	'fre-FR'
    language_id 	string 	2
    contentclassattribute_id 	string 	344
    attribute_original_id 	string 	0
    sort_key_int 	string 	0
    sort_key_string 	string 	''
    data_type_string 	string 	'ezobjectrelationlist'
    data_text 	string 	' '
    data_int 	NULL 	
    data_float 	string 	0
    contentclass_attribute 	object[eZContentClassAttribute] 	Object
    >id 	string 	344
    >serialized_name_list 	string 	'a:2:{s:6:"fre-FR";s:7:"Artiste";s:16:"always-available";s:6:"fre-FR";}'
    >version 	string 	0
    >contentclass_id 	string 	49
    >identifier 	string 	'artistlop'
    >placement 	string 	1
    >is_searchable 	string 	1
    >is_required 	string 	0
    >can_translate 	string 	1
    >is_information_collector 	string 	0
    >data_type_string 	string 	'ezobjectrelationlist'
    >data_int1 	string 	0
    >data_int2 	string 	0
    >data_int3 	string 	0
    >data_int4 	string 	0
    >data_float1 	string 	0
    >data_float2 	string 	0
    >data_float3 	string 	0
    >data_float4 	string 	0
    >data_text1 	string 	''
    >data_text2 	string 	''
    >data_text3 	string 	''
    >data_text4 	string 	''
    >data_text5 	string 	' '
    >content 	array 	Array(5)
    >temporary_object_attribute 	object[eZContentObjectAttribute] 	Object
    >data_type 	object[eZObjectRelationListType] 	Object
    >display_info 	array 	Array(2)
    >name 	string 	'Artiste'
    >nameList 	array 	Array(2)
    contentclass_attribute_identifier 	string 	'artistlop'
    contentclass_attribute_name 	string 	'Artiste'
    can_translate 	integer 	1
    is_information_collector 	string 	0
    is_required 	string 	0
    content 	array 	Array(1)
    >relation_list 	array 	Array(1)
    has_http_value 	boolean 	false
    value 	array 	Array(1)
    >relation_list 	array 	Array(1)
    has_content 	boolean 	true
    class_content 	array 	Array(5)
    >object_class 	string 	''
    >selection_type 	string 	'0'
    >type 	string 	'2'
    >class_constraint_list 	array 	Array(1)
    >default_placement 	boolean 	false
    object 	object[eZContentObject] 	Object
    >id 	string 	77
    >section_id 	string 	1
    >owner_id 	string 	14
    >contentclass_id 	string 	49
    >name 	string 	'Antoine Charpentier / Compositeur'
    >is_published 	string 	0
    >published 	string 	1237462570
    >modified 	string 	1238774276
    >current_version 	string 	9
    >status 	string 	1
    >remote_id 	string 	'2183503c7d1a373d24bacbb466bbd109'
    >language_mask 	string 	2
    >initial_language_id 	string 	2
    >current 	object[eZContentObjectVersion] 	Object
    >versions 	array 	Array(9)
    >author_array 	array 	Array(1)
    >class_name 	string 	'Lien oeuvre personne'
    >content_class 	object[eZContentClass] 	Object
    >contentobject_attributes 	array 	Array(2)
    >owner 	object[eZContentObject] 	Object
    >related_contentobject_array 	array 	Array(0)
    >related_contentobject_count 	string 	0
    >reverse_related_contentobject_array 	array 	Array(0)
    >reverse_related_contentobject_count 	string 	0
    >linked_contentobject_array 	array 	Array(0)
    >linked_contentobject_count 	string 	0
    >reverse_linked_contentobject_array 	array 	Array(0)
    >reverse_linked_contentobject_count 	string 	0
    >embedded_contentobject_array 	array 	Array(0)
    >embedded_contentobject_count 	string 	0
    >reverse_embedded_contentobject_array 	array 	Array(0)
    >reverse_embedded_contentobject_count 	string 	0
    >can_read 	boolean 	true
    >can_pdf 	boolean 	true
    >can_diff 	boolean 	true
    >can_create 	boolean 	true
    >can_create_class_list 	array 	Array(43)
    >can_edit 	boolean 	true
    >can_translate 	boolean 	true
    >can_remove 	boolean 	true
    >can_move 	boolean 	true
    >can_move_from 	boolean 	true
    >can_view_embed 	boolean 	true
    >data_map 	array 	Array(2)
    >main_parent_node_id 	string 	63
    >assigned_nodes 	array 	Array(1)
    >parent_nodes 	array 	Array(1)
    >main_node_id 	string 	77
    >main_node 	object[eZContentObjectTreeNode] 	Object
    >default_language 	string 	'fre-FR'
    >content_action_list 	boolean 	false
    >class_identifier 	string 	'lop'
    >class_group_id_list 	array 	Array(1)
    >match_ingroup_id_list 	boolean 	false
    >current_language 	string 	'fre-FR'
    >current_language_object 	object[eZContentLanguage] 	Object
    >initial_language 	object[eZContentLanguage] 	Object
    >initial_language_code 	string 	'fre-FR'
    >available_languages 	array 	Array(1)
    >language_codes 	array 	Array(1)
    >language_js_array 	string 	'[ { locale: 'fre-FR', name: 'Français (France)' } ]'
    >languages 	array 	Array(1)
    >all_languages 	array 	Array(1)
    >can_edit_languages 	array 	Array(1)
    >can_create_languages 	array 	Array(0)
    >always_available 	integer 	0
    >allowed_assign_section_list 	array 	Array(7)
    object_version 	object[eZContentObjectVersion] 	Object
    >id 	string 	859
    >contentobject_id 	string 	77
    >creator_id 	string 	14
    >version 	string 	9
    >status 	string 	1
    >created 	string 	1238774272
    >modified 	string 	1238774276
    >workflow_event_pos 	string 	0
    >user_id 	string 	0
    >language_mask 	string 	3
    >initial_language_id 	string 	2
    >creator 	object[eZContentObject] 	Object
    >name 	string 	'Antoine Charpentier / Compositeur'
    >version_name 	string 	'Antoine Charpentier / Compositeur'
    >main_parent_node_id 	string 	63
    >contentobject_attributes 	array 	Array(2)
    >related_contentobject_array 	array 	Array(0)
    >reverse_related_object_list 	array 	Array(0)
    >parent_nodes 	array 	Array(1)
    >can_read 	boolean 	true
    >can_remove 	boolean 	false
    >data_map 	array 	Array(2)
    >node_assignments 	array 	Array(1)
    >contentobject 	object[eZContentObject] 	Object
    >initial_language 	object[eZContentLanguage] 	Object
    >language_list 	array 	Array(1)
    >translation 	boolean 	false
    >translation_list 	array 	Array(1)
    >complete_translation_list 	array 	Array(1)
    >temp_main_node 	object[eZContentObjectTreeNode] 	Object
    view_template 	string 	'ezobjectrelationlist'
    edit_template 	string 	'ezobjectrelationlist'
    result_template 	string 	'ezobjectrelationlist'
    has_validation_error 	boolean 	false
    validation_error 	NULL 	
    validation_log 	NULL 	
    language 	object[eZContentObjectAttribute] 	Object
    >id 	string 	355
    >contentobject_id 	string 	77
    >version 	string 	9
    >language_code 	string 	'fre-FR'
    >language_id 	string 	2
    >contentclassattribute_id 	string 	344
    >attribute_original_id 	string 	0
    >sort_key_int 	string 	0
    >sort_key_string 	string 	''
    >data_type_string 	string 	'ezobjectrelationlist'
    >data_text 	string 	' '
    >data_int 	NULL 	
    >data_float 	string 	0
    >contentclass_attribute 	object[eZContentClassAttribute] 	Object
    >contentclass_attribute_identifier 	string 	'artistlop'
    >contentclass_attribute_name 	string 	'Artiste'
    >can_translate 	integer 	1
    >is_information_collector 	string 	0
    >is_required 	string 	0
    >content 	array 	Array(1)
    >has_http_value 	boolean 	false
    >value 	array 	Array(1)
    >has_content 	boolean 	true
    >class_content 	array 	Array(5)
    >object 	object[eZContentObject] 	Object
    >object_version 	object[eZContentObjectVersion] 	Object
    >view_template 	string 	'ezobjectrelationlist'
    >edit_template 	string 	'ezobjectrelationlist'
    >result_template 	string 	'ezobjectrelationlist'
    >has_validation_error 	boolean 	false
    >validation_error 	NULL 	
    >validation_log 	NULL 	
    >language 	object[eZContentObjectAttribute] 	Object
    >is_a 	string 	'ezobjectrelationlist'
    >display_info 	array 	Array(4)
    >class_display_info 	array 	Array(2)
    is_a 	string 	'ezobjectrelationlist'
    display_info 	array 	Array(4)
    >edit 	array 	Array(1)
    >view 	array 	Array(1)
    >collection 	array 	Array(1)
    >result 	array 	Array(1)
    class_display_info 	array 	Array(2)
    >edit 	array 	Array(1)
    >view 	array 	Array(0)

  14. #14
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut remarque
    j'ai remarqué cela avec firebug

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
     
     
    <!-- START: including template: design/standard/templates/content/datatype/view/ezobjectrelationlist.tpl (design:content/datatype/view/ezobjectrelationlist.tpl) -->
     
    <!-- START: including template: design/standard/templates/content/view/embed.tpl (design/standard/templates/content/view/embed.tpl) -->
        <a href="/Materiel-Documentaire/Liens-Oeuvres-Personnes/Antoine-Charpentier-Compositeur">Antoine Charpentier /  Compositeur</a>
    <!-- STOP: including template: design/standard/templates/content/view/embed.tpl (design/standard/templates/content/view/embed.tpl) -->
    <br />    
    <!-- START: including template: design/standard/templates/content/view/embed.tpl (design/standard/templates/content/view/embed.tpl) -->
        <a href="/Materiel-Documentaire/Liens-Oeuvres-Personnes/Nicolas-Bernier-Interprete">Nicolas Bernier /  Interprète</a>
    <!-- STOP: including template: design/standard/templates/content/view/embed.tpl (design/standard/templates/content/view/embed.tpl) -->
    <br />
    <!-- STOP: including template: design/standard/templates/content/datatype/view/ezobjectrelationlist.tpl (design:content/datatype/view/ezobjectrelationlist.tpl) -->
    													<table>
     
    														<tr>
    															<th>Type</th>
    															<th>Artiste</th>
    														</tr>
    														<tr>
    															<td><fieldset>
    <!-- START: including template: design/standard/templates/content/view/full.tpl (design/standard/templates/content/view/full.tpl) -->
    il ne lis pas le code du tableau....

  15. #15
    Membre Expert
    Avatar de Thes32
    Homme Profil pro
    Développeur PHP, .Net, T-SQL
    Inscrit en
    Décembre 2006
    Messages
    2 379
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur PHP, .Net, T-SQL

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 379
    Par défaut
    tente ceci
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {node_view_gui view='line' content_node=$node.data_map.artistlop.object}

  16. #16
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut line
    alors avec line ,
    comme jutilise ezflow
    il me dessine le carre noir fait par le css, qui encadre les articles.

    je pense quil met le template , mais bon, cest juste le carré noir.

  17. #17
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut erreur
    désolé, avec line , il ne fait rien.

    cest avec embed, qui me fait le carré

  18. #18
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut datatype
    sinon , je me demandais si je ne pouvais pas overrider le template du datatype ezobjectrelationslist en mode view...

    c'est a dire :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
    {section show=$attribute.content.relation_list}
    {section var=Relations loop=$attribute.content.relation_list sequence=array( bglight, bgdark )}
    {section show=$Relations.item.in_trash|not()}
        {content_view_gui view=embed content_object=fetch( content, object, hash( object_id, $Relations.item.contentobject_id ) )}<br />
    {/section}
    {/section}
    {section-else}
    {'There are no related objects.'|i18n( 'design/standard/content/datatype' )}
    {/section}
    et de modifier cette donnée :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    {content_view_gui view=embed content_object=fetch( content, object, hash( object_id, $Relations.item.contentobject_id ) )}<br />
    peut etre changer le ou mettre a la place :

    un truc du genre :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {node_view_gui view='line' content_node=$node.data_map.typelop.object}
    ????

  19. #19
    Membre Expert
    Avatar de Thes32
    Homme Profil pro
    Développeur PHP, .Net, T-SQL
    Inscrit en
    Décembre 2006
    Messages
    2 379
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur PHP, .Net, T-SQL

    Informations forums :
    Inscription : Décembre 2006
    Messages : 2 379
    Par défaut
    Citation Envoyé par thes32 Voir le message
    tente ceci
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {node_view_gui view='line' content_node=$node.data_map.artistlop.object}

  20. #20
    Membre averti
    Profil pro
    Inscrit en
    Mars 2009
    Messages
    47
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2009
    Messages : 47
    Par défaut toujours pas !
    bah la , j'ai changé mon datatype.
    Je l'ai overrider, et jai changer la ligne qui nous interessait.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
     
    {section show=$attribute.content.relation_list}
    {section var=Relations loop=$attribute.content.relation_list sequence=array( bglight, bgdark )}
    {section show=$Relations.item.in_trash|not()}
    <fieldset><legend>test</legend>
        {node_view_gui view='line' content_node=$node.data_map.artistlop.object}<br />
    </fieldset>
    {/section}
    {/section}
    {section-else}
    {'There are no related objects.'|i18n( 'design/standard/content/datatype' )}
    {/section}
    mais........

    jai essayé avec full, embed, line. et ca ne me donne toujours pas linformation.

    Si je mets full il me donne le cadre de mon template avec le lien : " conseiller a un ami".

+ Répondre à la discussion
Cette discussion est résolue.
Page 1 sur 2 12 DernièreDernière

Discussions similaires

  1. Réponses: 4
    Dernier message: 07/04/2009, 14h07
  2. Réponses: 2
    Dernier message: 27/07/2007, 09h21

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo