Skip to content

Commit 29f2e12

Browse files
committed
Fixed error links and links with 301 redirections
1 parent 9e6dfcf commit 29f2e12

17 files changed

+70
-70
lines changed

pages/advanced-topics/custom-limited-access-pages.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ First of all, let's create a new file in the 'hooks' folder inside your AppGini-
3535
include("$hooks_dir/../lib.php");
3636
```
3737

38-
The above code allows you to use the functions provided by AppGini in your custom page, including the function [getMemberInfo()](/appgini/help/working-with-generated-web-database-application/hooks/memberInfo) which you can use for checking permissions. Let's see how to implement each of the above access methods.
38+
The above code allows you to use the functions provided by AppGini in your custom page, including the function [getMemberInfo()](/appgini/help/advanced-topics/hooks/memberInfo-array/) which you can use for checking permissions. Let's see how to implement each of the above access methods.
3939

4040
#### Grant access to one or more groups
4141

@@ -129,7 +129,7 @@ After controlling access to your custom page, the next step is to customize its
129129

130130
#### Link to the page from other pages
131131

132-
Finally, you want users to be able to easily reach your page. AppGini makes it easy to add links to the homepage and/or to the navigation menu. To do so, all you need to do is [add a few lines to the "hooks/links-home.php" and/or "hooks/links-navmenu.php" files](/appgini/help/advanced-topics/hooks/folder-contents).
132+
Finally, you want users to be able to easily reach your page. AppGini makes it easy to add links to the homepage and/or to the navigation menu. To do so, all you need to do is [add a few lines to the "hooks/links-home.php" and/or "hooks/links-navmenu.php" files](/appgini/help/advanced-topics/hooks/folder-contents/).
133133

134134
> **Tip!** If you plan to add many custom pages to your application, it might not be very practical to place links to all of them directly into the navigation menu or the homepage. A more organized approach in this case is to create a page listing the custom links and add a link to that page rather than to each custom page.
135135

pages/advanced-topics/hooks/DataList-object.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ keywords: DataList object, tablename_init, hook function, table, appearance, beh
1010

1111
The `DataList` object exposes many options that you can control to affect the behavior and appearance of each of the AppGini-generated table pages that users see.
1212

13-
`DataList` object is passed to the [`tablename_init`](/appgini/help/advanced-topics/hooks/table-specific-hooks#tablename_init) hook function. This hook function is called before displaying data to users. So, you can control the various appearance and behavior options by modifying this object inside that hook function.
13+
`DataList` object is passed to the [`tablename_init`](/appgini/help/advanced-topics/hooks/table-specific-hooks/#tablename_init) hook function. This hook function is called before displaying data to users. So, you can control the various appearance and behavior options by modifying this object inside that hook function.
1414

1515
## Here is a list of the editable properties of the `DataList` object
1616

pages/advanced-topics/hooks/WindowMessages-class.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ is redirected to another page. In that case, if you'd like to display
5050
some message to the user, you can use the `WindowMessages` class
5151
to do so, and the message will be displayed on the redirected page. See
5252
the example in [`tablename_after_insert()` hook
53-
documentation](/appgini/help/advanced-topics/hooks/table-specific-hooks#tablename_after_insert)
53+
documentation](/appgini/help/advanced-topics/hooks/table-specific-hooks/#tablename_after_insert)
5454
.
5555

5656
This is also useful for use in `tablename_after_update()` and
@@ -86,7 +86,7 @@ echo WindowMessages::includeWindowId();
8686

8787
Your AppGini application already includes the code to display the
8888
messages, so you don't need to do anything special. In case of [custom
89-
pages](/appgini/help/advanced-topics/custom-limited-access-pages)
89+
pages](/appgini/help/advanced-topics/custom-limited-access-pages/)
9090
however, you need to include the following code in your page where you
9191
want the messages to be displayed:
9292

pages/advanced-topics/hooks/folder-contents.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ The hooks folder is where all your custom-defined code should be placed. AppGini
1414

1515
## This folder contains the following files:
1616

17-
* **\_\_global.php**: This file contains hook functions that get called when a new member signs up, when a member signs in successfully and when a member fails to sign in. [_More info ..._](/appgini/help/advanced-topics/hooks/global-hooks)
17+
* **\_\_global.php**: This file contains hook functions that get called when a new member signs up, when a member signs in successfully and when a member fails to sign in. [_More info ..._](/appgini/help/advanced-topics/hooks/global-hooks/)
1818

1919

20-
* **_tablename_.php**: For each table in your project, a hook file named the same as the table name is created. This file contains hook functions that get called when a new record is added, when a record is edited, when a record is deleted, … etc. These hooks are table-specific. That's why each table in your project has its own hook file. [_More info ..._](/appgini/help/advanced-topics/hooks/table-specific-hooks)
20+
* **_tablename_.php**: For each table in your project, a hook file named the same as the table name is created. This file contains hook functions that get called when a new record is added, when a record is edited, when a record is deleted, … etc. These hooks are table-specific. That's why each table in your project has its own hook file. [_More info ..._](/appgini/help/advanced-topics/hooks/table-specific-hooks/)
2121

2222

2323
* **index.html**: This file should not be edited. It just redirects visitors who try to access the hooks folder to the main page.

pages/advanced-topics/hooks/global-hooks.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function login_ok($memberInfo, &$args) {
3131

3232
### Parameters:
3333

34-
* `$memberInfo` is an array containing details of the member who signed in. Please refer to [`memberInfo`](/appgini/help/advanced-topics/hooks/memberInfo-array) for more details.
34+
* `$memberInfo` is an array containing details of the member who signed in. Please refer to [`memberInfo`](/appgini/help/advanced-topics/hooks/memberInfo-array/) for more details.
3535
* `$args` is currently not implemented but is reserved for future use.
3636

3737

@@ -133,7 +133,7 @@ function member_activity($memberInfo, $activity, &$args){
133133

134134
### Parameters:
135135

136-
* `$memberInfo` is an associative array containing details of the member who signed up. Please refer to [`memberInfo`](/appgini/help/advanced-topics/hooks/memberInfo-array) for more details.
136+
* `$memberInfo` is an associative array containing details of the member who signed up. Please refer to [`memberInfo`](/appgini/help/advanced-topics/hooks/memberInfo-array/) for more details.
137137
* `$activity` is a string indicating the type of activity. It can be one of the following values:
138138
* `pending`: the member signed up but his account is pending approval by the admin.
139139
* `automatic`: the member signed up and his account is automatically approved.
@@ -212,7 +212,7 @@ None.
212212
## `child_records_config()`
213213

214214
This hook function was added in AppGini 22.14, and can be used to modify the default configuration of
215-
the [child records section in the detail view](/appgini/help/working-with-projects/understanding-lookup-fields#parent-children-settings).
215+
the [child records section in the detail view](/appgini/help/working-with-projects/understanding-lookup-fields/#parent-children-settings).
216216

217217
If you open the generated `hooks/__global.php` file in a text editor, you can see this function defined as follows:
218218

pages/advanced-topics/hooks/magic-files.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Line 1 in the code above makes sure this code won't be executed until the page c
3434

3535
If you create a file in the hooks folder and name it `tablename-tv.js` (where *`tablename`* is the name of a table in your application), AppGini will automatically load that file and execute it as a JavaScript file in the browser whenever the specified table is displayed. This is very useful to modify the page content/layout or add custom behavior.
3636

37-
For an example of how this can be used to add new batch actions, please see the [`batch_actions()` hook documentation](/appgini/help/advanced-topics/hooks/multiple-record-batch-actions).
37+
For an example of how this can be used to add new batch actions, please see the [`batch_actions()` hook documentation](/appgini/help/advanced-topics/hooks/multiple-record-batch-actions/).
3838

3939
Please note that despite the `-tv` suffix, this file is always loaded when the specific table is being viewed, whether the table view is being displayed or not. If you want to execute code *only if* the table view is visible, you can perform this check in the `tablename-tv.js` file:
4040

pages/advanced-topics/hooks/memberInfo-array.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ keywords: memberInfo, array, logged member, username, groupID, group, admin, ema
1818
* `IP`: the IP address from where the member is currently logged.
1919
* `custom`: a numeric array containing the values of custom fields for the member. Custom fields can be defined via the admin settings page in the admin area of your AppGini application. Currently up to 4 custom fields are supported. So, to access the value of the first custom field for the member, you can use `$memberInfo['custom'][0]`.
2020

21-
The `$memberInfo` array is passed to many hook functions, both [global](/appgini/help/advanced-topics/hooks/global-hooks) and [table-specific](/appgini/help/advanced-topics/hooks/table-specific-hooks). For example, you can access the username of the currently logged member in a hook function by using `$memberInfo['username']`.
21+
The `$memberInfo` array is passed to many hook functions, both [global](/appgini/help/advanced-topics/hooks/global-hooks/) and [table-specific](/appgini/help/advanced-topics/hooks/table-specific-hooks/). For example, you can access the username of the currently logged member in a hook function by using `$memberInfo['username']`.
2222

2323
> **Tip:** You can retrieve this array in your own code by calling the function `getMemberInfo()`, which returns this array.
2424

pages/advanced-topics/hooks/table-specific-hooks.md

+16-16
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ table in your project has its own hook file.
2727
- [`tablename_init()`](#tablename_init)
2828
- [`tablename_header()`](#tablename_header)
2929
- [`tablename_footer()`](#tablename_footer)
30-
- [`tablename_batch_actions()`](/appgini/help/advanced-topics/hooks/multiple-record-batch-actions)
30+
- [`tablename_batch_actions()`](/appgini/help/advanced-topics/hooks/multiple-record-batch-actions/)
3131

3232

3333

@@ -54,11 +54,11 @@ function tablename_init(&$options, $memberInfo, &$args) {
5454
- `$options` (passed by reference so that it can be modified
5555
inside this hook function) a DataList object that sets options for
5656
rendering the page. Please refer to
57-
[DataList](/appgini/help/advanced-topics/hooks/DataList-object) for more
57+
[DataList](/appgini/help/advanced-topics/hooks/DataList-object/) for more
5858
details.
5959
- `$memberInfo` is an array containing details of the member
6060
who signed in. Please refer to
61-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
61+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
6262
for more details.
6363
- `$args` is currently not used but is reserved for future
6464
uses.
@@ -150,7 +150,7 @@ function tablename_header($contentType, $memberInfo, &$args) {
150150
`print-detailview` or `filters`.
151151
- `$memberInfo` is an array containing details of the member
152152
who signed in. Please refer to
153-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
153+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
154154
for more details.
155155
- `$args` is currently not used but is reserved for future
156156
uses.
@@ -163,7 +163,7 @@ String containing the HTML header code. If empty, the default
163163
besides your customized header, include the `<%%HEADER%%>` placeholder
164164
in the returned string. Note: If you have a customized header-extras.php
165165
file (see [the contents of the hooks
166-
folder](/appgini/help/advanced-topics/hooks/folder-contents) for more
166+
folder](/appgini/help/advanced-topics/hooks/folder-contents/) for more
167167
info), it won't be included in the page if you don't include the
168168
`<%%HEADER%%>` placeholder in the return string.
169169

@@ -264,7 +264,7 @@ function tablename_footer($contentType, $memberInfo, &$args) {
264264
`print-detailview` or `filters`.
265265
- `$memberInfo` is an array containing details of the member
266266
who signed in. Please refer to
267-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
267+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
268268
for more details.
269269
- `$args` is currently not used but is reserved for future
270270
uses.
@@ -277,7 +277,7 @@ String containing the HTML footer code. If empty, the default
277277
besides your customized footer, include the `<%%FOOTER%%>` placeholder
278278
in the returned string. Note: If you have a customized footer-extras.php
279279
file (see [the contents of the hooks
280-
folder](/appgini/help/advanced-topics/hooks/folder-contents) for more
280+
folder](/appgini/help/advanced-topics/hooks/folder-contents/) for more
281281
info), it won't be included in the page if you don't include the
282282
`<%%FOOTER%%>` placeholder in the return string.
283283

@@ -311,7 +311,7 @@ function tablename_before_insert(&$data, $memberInfo, &$args) {
311311
it apply to the insert query.
312312
- `$memberInfo` is an array containing details of the member
313313
who signed in. Please refer to
314-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
314+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
315315
for more details.
316316
- `$args` was not in use prior to AppGini 5.90. As of AppGini
317317
5.90, it's used for exchanging further data as follows:
@@ -345,7 +345,7 @@ function tablename_before_insert(&$data, $memberInfo, &$args) {
345345
}
346346
```
347347

348-
**See also:** [Using lookup fields in calculations](/appgini/help/advanced-topics/hooks/using-lookup-fields-in-calculations).
348+
**See also:** [Using lookup fields in calculations](/appgini/help/advanced-topics/hooks/using-lookup-fields-in-calculations/).
349349

350350

351351
### Example 2 (AppGini 5.90+)
@@ -394,7 +394,7 @@ function tablename_after_insert($data, $memberInfo, &$args) {
394394
for the new record.
395395
- `$memberInfo` is an array containing details of the member
396396
who signed in. Please refer to
397-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
397+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
398398
for more details.
399399
- `$args` is currently not used but is reserved for future
400400
uses.
@@ -479,7 +479,7 @@ function tablename_before_update(&$data, $memberInfo, &$args) {
479479
for the record to be updated.
480480
- `$memberInfo` is an array containing details of the member
481481
who signed in. Please refer to
482-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
482+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
483483
for more details.
484484
- `$args` was not in use prior to AppGini 5.90. As of AppGini
485485
5.90, it's used for exchanging further data as follows:
@@ -576,7 +576,7 @@ function tablename_after_update($data, $memberInfo, &$args) {
576576
for the new record.
577577
- `$memberInfo` is an array containing details of the member
578578
who signed in. Please refer to
579-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
579+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
580580
for more details.
581581
- `$args` was not in use prior to AppGini 5.90. As of AppGini
582582
5.90, it's used for exchanging further data as follows:
@@ -627,7 +627,7 @@ function tablename_before_delete($selectedID, &$skipChecks, $memberInfo, &$args)
627627
check will be performed.
628628
- `$memberInfo` is an array containing details of the member
629629
who signed in. Please refer to
630-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
630+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
631631
for more details.
632632
- `$args` is currently not used but is reserved for future
633633
uses.
@@ -694,7 +694,7 @@ function tablename_after_delete($selectedID, $memberInfo, &$args) {
694694
record.
695695
- `$memberInfo` is an array containing details of the member
696696
who signed in. Please refer to
697-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
697+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
698698
for more details.
699699
- `$args` is currently not used but is reserved for future
700700
uses.
@@ -750,7 +750,7 @@ function tablename_dv($selectedID, $memberInfo, &$html, &$args) {
750750
detail view will be displayed to enter a new record).
751751
- `$memberInfo` is an array containing details of the member
752752
who signed in. Please refer to
753-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
753+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
754754
for more details.
755755
- `$html` (passed by reference so that it can be modified
756756
inside this hook function) the HTML code of the form ready to be
@@ -817,7 +817,7 @@ function tablename_csv($query, $memberInfo, $args) {
817817
the data in the CSV file.
818818
- `$memberInfo` is an array containing details of the member
819819
who signed in. Please refer to
820-
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array)
820+
[memberInfo](/appgini/help/advanced-topics/hooks/memberInfo-array/)
821821
for more details.
822822
- `$args` is currently not used but is reserved for future
823823
uses.

pages/advanced-topics/hooks/using-lookup-fields-in-calculations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ slug: help/advanced-topics/hooks/using-lookup-fields-in-calculations
88

99
When customizing the [`before_insert`, `after_insert`, `before_update` or
1010
`after_update`
11-
hooks](/appgini/help/advanced-topics/hooks/table-specific-hooks) to make
11+
hooks](/appgini/help/advanced-topics/hooks/table-specific-hooks/) to make
1212
a calculation, you might encounter a case where one or more fields in
1313
the formula you're calculating is a [lookup field (foreign
14-
key)](/appgini/help/working-with-projects/understanding-lookup-fields) .
14+
key)](/appgini/help/working-with-projects/understanding-lookup-fields/) .
1515
In this case, the value of `$data['fieldname']` (where `fieldname`
1616
is the name of the concerned lookup field) is probably NOT the value
1717
you'd like to use for your calculation.

0 commit comments

Comments
 (0)