Jump to:

23550 Posts in 19339 Topics by 2890 members

General Questions

SilverStripe Forums » General Questions » How to show pdf

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1 2
Go to End
Author Topic: 3309 Views
  • Platypus
    Avatar
    Community Member
    43 Posts

    Re: How to show pdf Link to this post

    This worked for me regarding the embedding of iframe-code: http://www.silverstripe.org/general-questions/show/255938?start=0#post257773

    Thx again to banal for this solution

  • kaloschke
    Avatar
    Community Member
    8 Posts

    Re: How to show pdf Link to this post

    Hi Platypus,
    thank you very much. That is exactly what I need. But I can't get it running! So I'm new to Silverstripe I like to explain, what I have done:
    - Under mysite/code I created a new file 'embedpage.php' and include there the code from your link
    - In templates/layout/page.ss I include $embedcode as described in the link
    - I start localhost/myproject/dev/build?flush=1 to rebuild the database

    At this point, I think I should see under 'Creating database records' my new typ 'embedpage' or am I wrong?

    Anyway, when I create a new page there is no embedpage in the list.
    Do you or anyone else has an idea, what is wrong?

    Greetings Kaloschke

  • kaloschke
    Avatar
    Community Member
    8 Posts

    Re: How to show pdf Link to this post

    OK. it works.
    Solution is simple (now ). I run silverstripe on a windows system. First I used IIS, then XAMPP. I simply forgot to stop the IIS, so I did not see the project that I expected to see. Very stupid, I know.
    But now everything works fine and I have learnd a lot.

    Thank you everybody for your help.
    Kaloschke

    3309 Views
Page: 1 2
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.