I have many files (images etc.) in different libraries and I'm not sure which of them I am using / are linked within my Sharepoint site.
Like for example I imagine something like this:
example.jpg - used in: /SitePages/page1.html, /SitePages/page2.html
example.docx - used in: /MyList/
example2.jpg - used in: -
example3.jpg - used in: -
I know that for example hyperlinks change automatically when renaming a page. So there seems to be information about the links within the site...
Is there something similar to see if an item is linked/used on the site like in the example above?
Thanks.
There isn't anything in the api that will automatically tell you where a file is being referenced. Something like that would require code that checks for the item that you're looking for which would be easier in a list but a challenge if it appears in the markup or a content editor webpart.
Related
This page: /my-account/view-order/132616/
... is associated with the view-order.php template file under the my account section. I am able to edit this by going directly into the woocommerce plugin dir, but copying the file into /my-child-theme/woocommerce/myaccount/view-order.php does not have any effect. I am able to edit the orders.php template in this manner, but not this one. I haven't been able to find any answers online to this one: why some of these template files can be copied / overwritten and some cannot be? Also, there appears to be limited scope on applying a hook to manipulate the content on this page. What I want to do, is turn the product names listed here into links back to the products in the store. Thanks for any help!
turns out this doesn't satisfy my need since the content I'm trying to manipulate is in the woocommerce_view_order do_action. Now I'm on the hunt for a filter hook.
Using Diagrams.net (draw.io), I would like to link specific elements to web pages. This is easily accomplished currently by creating a link for the element (say a rectangle).
However, I would like to navigate directly to a specific id bookmark in the HTML page. I cannot seem to get that to work.
For example, if I try to use this syntax (which works in the browser location bar):
https://en.wikipedia.org/wiki/Canada#Geography
I will be taken to the main page:
https://en.wikipedia.org/wiki/Canada
However, the goal is to go to the "Geography" section of this page.
I have also tried the json syntax without any success:
data:action/json,{"actions":[{"open":"https://en.wikipedia.org/wiki/Canada#Geography"}]}
I have also played with different action syntax such as:
data:action/json,{"actions":[{"open":"https://en.wikipedia.org/wiki/Canada"},{"scroll":{"tags":["Geography"]}}]}
Note: I'm using the diagrams.net desktop version 14.1.8.
Thank you for taking the time to read this question.
Paul
On Windows this only seems to work if the browser isn't already open. There is not much we can do to fix this as we're passing the link to the OS.
I'm using DDX to add headers, footers, and pagination to PDF documents. If possible I would like the header for the first page of each file to be blank, but then to have headers for the remaining pages.
I've looked through the documentation and can't find a way to do this. It seems like a commonly used feature so I'm guessing there must be some way to implement it.
(From the comments)
You might be able to achieve this effect by using multiple <PDF> tags: one for the first page and another for pages 2-N, with a nested <Header> tag.
ie :
<PDF pages="1" src="c:/path/someFile.pdf">
...
</PDF>
<PDF pages="2-last" src="c:/path/someFile.pdf">
<Header...>
</PDF>
Some mediawikis are using a template or something like that to create twitter links in articles without the external link icon.
For instance in http://www.minecraftwiki.net/wiki/Mojang_AB each employee has a twitter link, this is not just an external link to twitter.com, but like [twitter:notch|#notch] in the source.
Does anyone know how I can add this feature to my mediawiki?
If you just want to remove the external link icon, you can wrap the link in <span class="plainlinks">, like this:
<span class="plainlinks">http://stackoverflow.com/</span>
or even
<span class="plainlinks">[http://stackoverflow.com Stack Overflow]</span>
A template for creating links to Twitter user pages might look something like this:
<includeonly><span class="plainlinks twitterlink">[https://twitter.com/{{{1}}} #{{{1}}}]</span></includeonly>
or, with the extension StringFunctions installed (to allow for input both with and without the # sign):
<includeonly><span class="plainlinks twitterlink">[https://twitter.com/{{#replace:{{{1}}}|#|}} #{{#replace:{{{1}}}|#|}}]</span></includeonly>
Those links are called Interwiki links and you can add them to your wiki by inserting into the interwiki table.
You might find these sites interesting:
http://www.mediawiki.org/wiki/Extension:Twitter4wiki
http://www.mediawiki.org/wiki/Extension:TwitterFeed
I know the Confluence wiki pretty well, and I like much the natural hierarchy of pages you get there. I have to use now a Trac wiki (which is not that bad, same root as MoinMoin), and am searching the feature here. What I want to reach:
Edit the page "MyPage" and enter there the link to a page you want to be a subpage, eg. MySubPage.
The link should be similar to /MySubPage or [/MySubPage]. The character "/" denotes that the resulting page should be a subpage of the current one.
Follow the link, create the new page with some content.
You should now see, that "MySubPage" is a subpage of "MyPage". You could reach the subpage from anywhere by the link MyPage/MySubPage.
The MoinMoin wiki has that feature at least from version 1.5.x, and I have used that regularily. Is there something similar in Trac? Do I have to install then a plugin?
Thank you a lot
Markus
Well, not the best thing to answer the own question, but just something I found out.
* SubpageFirst
* SubpageSecond
* SubpageThird
* SubpageFourth
leads to (of course) four pages, but when you have a look at them in Title Index, you will see:
* Subpage
* First
* Second
* Third
* Fourth
Not what I have searched for, but comes near.
The only way I have found to do something like this is to specify the full path to the page. For your example this would be [[MyPage/MySubPage]]. You then get a hierarchy in TitleIndex, but it leaves much to be desired in terms of presenting a Parent/Child relationship.
I think, as retracile mentioned, that MyPage/MySubPage does not create a true hierarchy, but rather just a page containing a forward slash in the name, and in TitleIndex the pages are presented such that they appear to be in a hierarchy (but often do not display the way you would like; as I mentioned it leaves much to be desired).
Parent-child wiki pages aren't directly modeled in Trac. Essentially, "/" is allowed as part of a wiki page name.
You should be able to create a macro that does something like what you want; essentially:
[[sub(MySubPage)]]