We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37909
    • 153 Posts
    Hi!

    I try to be clear. When you create or modify a ressource and you save it, you have a page with all informations about the ressource (pagetitle, summary, alias…). I want to know if I can add an information inside this page? And how?

    Thanks a lot.

    This question has been answered by neoziox. See the first response.

      • 17301
      • 932 Posts
      If I understand you correctly what you want is to have a look at the classextender extra and take a good read of this article.
      https://bobsguides.com/classextender-class.html

        ■ email: [email protected] | ■ website: https://alienbuild.uk

        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.
        • 37909
        • 153 Posts
        I don’t know if it’s the solution because I think it’s maybe too much for just that.

        [ed. note: neoziox last edited this post 6 years, 4 months ago.]
        • discuss.answer
          • 37909
          • 153 Posts
          I found a solution. Maybe not very clean, but very efficient.

          I modified the file /manager/actions/document_data.static.php adding this (line 383):

          <?php if($content['template'] == 11 && $content['published'] == 1) { ?>
          <tr>
          	<td colspan="2"> </td>
          </tr>
          <tr>
          	<td colspan="2"><i class="fa fa-facebook-official fa-2x" aria-hidden="true"></i></td>
          </tr>
          <tr>
          	<td>Facebook Publication:</td>
          	<td><a href="/my-page.html?id=<?= $_REQUEST['id'] ?>" target="_blank">Publish</a></td>
          </tr>
          <?php } ?>
          [ed. note: neoziox last edited this post 6 years, 4 months ago.]
            • 30585
            • 833 Posts
            Quote from: neoziox at Dec 13, 2017, 04:16 PM
            I found a solution. Maybe not very clean, but very efficient.

            I modified the file /manager/actions/document_data.static.php adding this (line 383):

            <!--?php if($content['template'] == 11) { ?-->
            
            	 
            
            
            	<i class="fa fa-facebook-official fa-2x" aria-hidden="true"></i>
            
            
            	Facebook Publication:
            	<a href="#" target="_blank">Publish</a>
            
            <!--?php } ?-->

            This will not survive upgrades. You should never modify those files like that.

            I'm not sure I understand your question correctly. Do you mind elaborating? You can say it in French (Si ça te va mieux smiley)
              A MODx Fanatic
              • 37909
              • 153 Posts
              C'est vrai que ce n'est pas très propre et je sais que ça ne résistera pas aux mise à jour, mais étant donné que c'est une toute petite modification, je pouvais bien le modifier à chaque mise à jour (qui ne sont pas très fréquentes).

              Ceci étant, si tu as une meilleure solution, je suis preneur.

              Je souhaite simplement ajouter un lien sur la page de résumé d'une ressource. Tu peux regarder le code que je viens de modifier (dans dernier post). C'est tout ce que je souhaite. Rien de plus, rien de moins.

              ----------

              It's true. It's not very clean and, I know, that it will not resist each update, but it's just a small modification and thought that I could change it at each update (which doesn't have a high frequency).

              But, if you have a better solution, I'm interested.

              I just want to add a link to the summary page of a resource. You can look at the code, I just modified it (in my last post). That's all I want. Nothing more, nothing less.
                • 30585
                • 833 Posts
                Désolé -- je viens de remarquer que c'est EVO. Malheureusement il y a plus de 10 ans que je ne l'ai pas utilisé. Pour quelque chose d'aussi mineure, peut être que ta solution n'est pas si mal.
                  A MODx Fanatic
                  • 37909
                  • 153 Posts
                  Oui on est sur le forum Evo lol
                  Les dernières mise-à-jour ont grandement améliorées Evo. Sa réactivité est nettement supérieure à Revo. Bref, on est hors-sujet.