1 2 Previous Next 18 Replies Latest reply on Feb 16, 2006 9:21 AM by noicangi

    deploy a PDF

    glodo

      Hi everyone! i need deploy a file pdf in a portlet.. or like since the html editor link to a pdf one line.. for example:
      Articule of something... link to articule.pdf
      and the same thing with a zip file.. how a can configurate to can download a zip file?
      I try to link like default/articule.pdf but not work..
      Can someone there help me or give me a example of how i can do this?
      so thanks.
      glodo

        • 1. Re: deploy a PDF
          noicangi

          hi i was trying for the same.....i copied the link to the localhost:8080/portal/content/mydir/my.file but didn't worked, then i copied the link from the (portlet (there the html signs the file) )

          like this:


          http://localhost:8080/portal/auth/index.html?ctrl:cmd=action&ctrl:window=HelloPortal.default.myCMSwindow&path=%2Fvianauta%2Facuerdo.html

          • 2. Re: deploy a PDF
            glodo

            in the user guide say:
            Prefix: This is the context path prefix that will trigger the portal to render content. By default, navigating to a URL such as http://localhost:8080/[portal_context]/content/Test.PDF will trigger the portal to display the PDF isolated from the portal pages. The path following the Prefix has to be absolute when fetching content.
            What mean this?
            I have to create a directory in the CMS manager with the name "content" and on this load the pdf files and then when i want to link to pdf file do i default/content/file.pdf ?
            so thanks
            glodo

            • 3. Re: deploy a PDF
              noicangi

              no you dont need to create content folder look at
              localhost:8080/portal/content/default/images/jboss_logo.gif

              content is the root folder of the cms....


              what i dont understand is how to open it....and how to open a html file of the cms without the portal


              :)

              • 4. Re: deploy a PDF
                glodo

                Now its works.. just i have a problem with the languaje..for example i put the languaje spanish in my profile.. and if i create a page with the languaje spanish the portlet not deploy the html that i reference like spanish.. the same thing happen if i define a html like spanish in the portlet.xml
                how i can resolve this? i need the portal in spanish and need to use written accent which don't work too..
                so thanks

                • 5. Re: deploy a PDF
                  glodo

                  still i need to resolve how download a zip file..
                  if someone there knows.. please let me know..
                  so thanks

                  • 6. Re: deploy a PDF
                    ivanlatysh

                    If I understood your problem correctly you can't get to CMS Manager.
                    Otherwise you would find `upload` and `edit` actions there.

                    I will assume that you have already downloaded and installed JBoss portal 2.2. and you didn't change deployment descriptors. If you don't please download the fresh version (Bundled JBoss Portal) just for this exercise.

                    1. Start JBoss portal
                    2. Login using username:admin and password:admin (default admin user)
                    3. `CMS Manager` page will apper as soon you logged in, click on it
                    4. Use `CMS Admin` to modify and upload content.

                    • 7. Re: deploy a PDF
                      noicangi

                      no that's not the problem, i know that, the thing is how to download a zip file or a pdf from the portal...

                      ie: i create a cms pointing to the cms content at myfile/myindex.html, here i added a link to a pdf i already upload to the cms.. now how can i link to doanload the file or to open it on a new window?

                      • 8. Re: deploy a PDF
                        glodo

                        yes noicangi! that is my trouble.. i have file like .pdf .zip in my cms... what i need to do is download the file.zip and open in a new window a file.pdf..
                        open the file.pdf its works now.. but when i try to download the file.pdf don't down at file.pdf..down like index.html_ctrl_cmd...file.pdf
                        how i can download a zip file that i have in the portal?
                        so thanks!

                        • 9. Re: deploy a PDF
                          noicangi

                          glodo if you can copy the link ref of an example to open a pdf on a new window or a html file please post it....about how to download it....i don't know

                          • 10. Re: deploy a PDF
                            glodo

                            ok.. i create a directory "content" in the cms on default\
                            in there i load all the pdf that i need.. in a html for example use the editor html and put a link to default/content/articule.pdf
                            that's all..

                            what a shame! i hope someone can help us.. please if someone let us know how download a zip file..
                            so thanks...
                            glodo

                            • 11. Re: deploy a PDF
                              noicangi

                              thanks glodo for your fast answer ;) i will try what you say

                              • 12. Re: deploy a PDF
                                noicangi

                                i confirm the pdf work _self and _blank but i upload a .zip and don't apears the firefox or IE windows with the posibility to download...the only way is right clik and save link as...

                                • 13. Re: deploy a PDF
                                  glodo

                                  thanks noicangi.. good point.. i didn't thy that..
                                  now i try like you say..
                                  if someone know how to download a zip file please let us know..
                                  so thanks
                                  glogo

                                  • 14. Re: deploy a PDF
                                    glodo

                                    Hi noicangi! how you do to download a zip file?
                                    can you give me the steps?
                                    i try to do.. but doesn't work for me.
                                    so thanks!
                                    glodo

                                    1 2 Previous Next