summaryrefslogtreecommitdiffstats
path: root/doc/src/02010-linking.md
blob: ba62ec0ca481a7e22aefad806faeae467e0cdd1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Linking from an store entry {#sec:thestore:linking}

As described in @sec:intro:problem the purpose of imag is to _link_ content
together. The following section describes, from a technical view, how this is
done in imag.

There are two ways of linking in imag. You can either link internally or
externally. The following sections describe the differences.

### Linking to internal content {#sec:thestore:linking:internal}

Internal links are links between store entries themselfes. This means that one
store entry can link to another. Actually, links are not pointers but rather
tries between entries, meaning that an link is not directed, but always a
two-way pointer.

How linking works from the user interface is described in @sec:modules:link.

### Linking to external content {#sec:thestore:linking:external}

Linking to external content means linking to files or directories which do not
live inside the store itself but outside of it.

Each store entry can store _one link to external content at most_.

External linking should not be used from the user interface but rather the
`ref` feature (@sec:modules:ref) should be used.
@sec:modules:ref describes why that is.