cortex-snippets-client 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/lib/cortex/snippets/version.rb +1 -1
- data/lib/cortex/snippets/webpage.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21cc1c21df311748b99a9d3330de7849fa630a6
|
4
|
+
data.tar.gz: a8c9a4a9ecfa5c037e5dcf079fb9733555fc9f26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4ede2022f4e70e63897cfc46f07fd983ef7b22227b1189f94e6c49487596d6921bd7b98cb8dd896ec2eb51bb7251a99a34775121aa783a2f36f23529fbd3648
|
7
|
+
data.tar.gz: 7e05f2d6ab2dc558c41ec971a5c4e811f7fef6ad625193feb46f92cf5ef9ad8f7ff089be994f556ff903c1372e59cb1e6699833b9b310f91b777a052b788051b
|
data/README.md
CHANGED
@@ -17,7 +17,7 @@ Or if you're installing from a Gemfile include it as
|
|
17
17
|
gem 'cortex-snippets-client`, '~> 1.0.4'
|
18
18
|
```
|
19
19
|
|
20
|
-
And then run
|
20
|
+
And then run
|
21
21
|
|
22
22
|
```ruby
|
23
23
|
bundle install
|
@@ -51,7 +51,7 @@ Use of this gem is generally split into two categories: Snippets and Webpages
|
|
51
51
|
|
52
52
|
**Snippets** refers to blocks of markup that are editable in Cortex IPE and, through the use of this gem, persist into the tenant application. This allows the copy changes made in IPE to replace default blocks on the page and your changes to be shown.
|
53
53
|
|
54
|
-
**Webpages** refer to the created webpages themselves, which have several bits of relevant metadata including, but not limited to: title, keywords, and indexing information.
|
54
|
+
**Webpages** refer to the created webpages themselves, which have several bits of relevant metadata including, but not limited to: title, keywords, and indexing information.
|
55
55
|
|
56
56
|
### Snippets
|
57
57
|
|
@@ -125,9 +125,10 @@ This will give you a webpage object from your current Cortex Tenant with all of
|
|
125
125
|
|noarchive| The noarchive information for the Webpage. Included in `seo_robots`|
|
126
126
|
|noimageindex| The noimageindex information for the Webpage. Included in `seo_robots`|
|
127
127
|
|dynamic_yield| A hash of Dynamic Yield information from the current Webpage.|
|
128
|
+
|tables_widget_data| A hash containing Tables Widget configuration data.|
|
129
|
+
|tables_widget_data_for| An array (usually) containing table data for a single section.|
|
128
130
|
|snippets|An array of the associated snippets with the current Webpage.|
|
129
131
|
|
130
|
-
|
131
132
|
1:<br>
|
132
133
|
The resulting array from `seo_keywords` can be entered into a single keyword meta tag like so:
|
133
134
|
|
@@ -59,12 +59,12 @@ module Cortex
|
|
59
59
|
}
|
60
60
|
end
|
61
61
|
|
62
|
-
def
|
62
|
+
def tables_widget_data
|
63
63
|
JSON.parse(@webpage[:tables_widget_json] || 'null', quirks_mode: true)
|
64
64
|
end
|
65
65
|
|
66
|
-
def
|
67
|
-
|
66
|
+
def tables_widget_data_for(section_name)
|
67
|
+
tables_widget_data&.[](section_name) || []
|
68
68
|
end
|
69
69
|
|
70
70
|
def snippets
|