Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[word] internal bookmarks/anchors #303

Closed
jonnsn opened this issue Jul 3, 2014 · 4 comments
Closed

[word] internal bookmarks/anchors #303

jonnsn opened this issue Jul 3, 2014 · 4 comments

Comments

@jonnsn
Copy link
Contributor

jonnsn commented Jul 3, 2014

Hi,

Rather a Question than an issue...

I am trying to implement the possibility to add internal bookmarks (like the ones for titles) and hyperlinks to these (of course I am going to fork phpword with my changes as soon as it is working properly).
It seems that I need to add an attribute w:rsidRPr to the hyperlinks. The corresponding ID (e.g. 008F5BDE) should go to settings.xml <w:rsids>. Could anyone give me a hint whats the right way to generate such an ID and how to write it to settings.xml?

@jonnsn
Copy link
Contributor Author

jonnsn commented Jul 4, 2014

Update: Got it working - Seems that the w:rsidRPr is not needed. I had to adjust bookmarking of titles as they were in a different collection than my bookmarks and therefore had the same/duplicate Ids.

@jonnsn jonnsn closed this as completed Jul 4, 2014
@Progi1984 Progi1984 added this to the 0.12.0 milestone Jul 4, 2014
@florinsecal
Copy link

@jonnsn Hi,

Can you please post a sample code or give me some direction on how to use this feature (internal bookmarks).
I didn't found anything in the documentation.

Best regards,
Florin

@jonnsn
Copy link
Contributor Author

jonnsn commented Sep 1, 2014

@florinsecal
Hi,

Sorry for the late response - i was on vacation.
The corresponding Pull Request is this one:
#305
In Section "Files changed" you can see a sample in samples/Sample_35_InternalLink.php
and the documentation in docs/elements.rst
I think the changes are not yet in master, so you also have to adjust the other files or switch to dev-Branch.

hth.
Regards
Jonnsn

@florinsecal
Copy link

@jonnsn,
Hi,

Works like a charm. Many thanks.

Best regards,
Florin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants