Jump to:

5554 Posts in 1742 Topics by 1227 members

Customising the CMS

SilverStripe Forums » Customising the CMS » PDF Page Number

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

Page: 1
Go to End
Author Topic: 685 Views
  • DrWebGuy
    Community Member
    16 Posts

    PDF Page Number Link to this post

    I have an interesting problem that I need help with. A client wants to be able to easily specify in a link which page of the PDF the browser goes to. Adobe has built this function in to 6.0 and later - simply append "#page=13" to your link as an anchor. How could I modify the link section of the TinyMCE insert link function to give me a simple text field to enter "13" (if I want page 13) and have it append the anchor? I have looked at sapphire/forms/HtmlEditorField.php, and I feel like a new TextField could be added like "HtmlEditorField.PDFPAGE" and then have the editor append the appropriate code to the URL. It would be REALLY nice to make it work like the "Anchor on this page" field, but instead of a dropdown box appearing, a text field would appear to input a page number.

    It's pretty simple concept - just hard to explain.

    Thoughts anyone?

Page: 1
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.