README.md 2.1 KB
Newer Older
geocalleo's avatar
geocalleo committed
1
# Publishing options module
2

geocalleo's avatar
geocalleo committed
3
## CONTENTS OF THIS FILE
4
5
6
 * Introduction
 * Requirements
 * Installation
7
 * Configuration and usage
8
9
 * Maintainers

geocalleo's avatar
geocalleo committed
10
## INTRODUCTION
11
The publishing options module allows you to create your own custom promotion options.
geocalleo's avatar
geocalleo committed
12

13
14
## REQUIREMENTS
This module requires no modules outside of Drupal core.
geocalleo's avatar
geocalleo committed
15

16
## INSTALLATION
17
18
Install the Publishing options module as you would normally install a contributed Drupal
module. Visit https://www.drupal.org/node/1897420 for further information.
geocalleo's avatar
geocalleo committed
19

20
## CONFIGURATION AND USAGE
21
22
23
To administer publishing options, go to _Configuration > Content authoring > Publishing options_
(`/admin/config/content/publishing-options`). Here you can create, update, or remove publishing options. Click on the
`Add publishing option` button. The link will take you to the add/edit publishing options form.
geocalleo's avatar
geocalleo committed
24
\
geocalleo's avatar
geocalleo committed
25
\
geocalleo's avatar
geocalleo committed
26
![Publishing options administration](assets/images/PO_admin.png)
geocalleo's avatar
geocalleo committed
27

28
29
To add/edit a publishing option. Type the name of the publishing option and associate the content types for this
publishing option with. Then save the publishing option.
geocalleo's avatar
geocalleo committed
30
31
\
\
32
![Create/Edit publishing options](assets/images/PO_add_pub_options.png)
33

34
35
36
37
38
> **_NOTE:_** You can also associate publishing options to a content type within the content type's add/edit
> page in the `Publishing options` section.
> \
> \
> **_Example link:_** Basic page, `admin/structure/types/manage/page`
geocalleo's avatar
geocalleo committed
39
> \
geocalleo's avatar
geocalleo committed
40
> \
41
> ![Publishing options inside content types](assets/images/PO_pub_options_content_types.png)
42

43
44
45
### Nodes
To associate a node to a publishing option, add/edit a node (`node/add` or `/node/%/edit`). Go to the `Promotion options`
section and select the publishing options to associate to the node.
geocalleo's avatar
geocalleo committed
46
\
geocalleo's avatar
geocalleo committed
47
\
48
49
50
![Associate publishing options to nodes](assets/images/PO_pub_options_nodes.png)

### Views
51
52
53
54
55
To use publishing options with views. Create a view with _view settings show_ option set to **content**.
You can then add a publishing options fields, filters and contextual filters to the view.
\
\
![Publishing options inside a view](assets/images/PO_views_pub_options.png)
geocalleo's avatar
geocalleo committed
56

57
---
58
59
60

###### Author/Maintainers
 - Jorge Calderon - https://www.drupal.org/u/geocalleo