How to create a shared entity

Avatar

Avatar
Validate 1
Level 2
Leo_do_Mangue
Level 2

Likes

10 likes

Total Posts

46 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
Leo_do_Mangue
Level 2

Likes

10 likes

Total Posts

46 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Leo_do_Mangue
Level 2

04-12-2015

Hello,

I've been looking for some way to use js and css files in my DPS projects. I need to use the same js file to many articles and I found a solution: shared contents.

The problem is that the docs page isn't clear about how to create the shared entity and how to call these files inside the articles.

I've downloaded a zip file from Digital Publishing Solution Help | Content Producer Service SDK for PHP and read Digital Publishing Solution Help | Work with shared content using the Content Producer Service API .

Can anybody help me on how to create the shared entity and call the shred files inside the articles?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 50
Employee
Neil_Enns_-_Ado
Employee

Likes

81 likes

Total Posts

654 posts

Correct reply

252 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile

Avatar
Boost 50
Employee
Neil_Enns_-_Ado
Employee

Likes

81 likes

Total Posts

654 posts

Correct reply

252 solutions
Top badges earned
Boost 50
Boost 5
Boost 3
Boost 25
Boost 10
View profile
Neil_Enns_-_Ado
Employee

04-12-2015

Hi Leo,

We don't have UI for doing this currently, the only method is to write code using the information from the pages you found. Honestly I would just put your CSS and JS into each article for now. We will have some UI for doing this hopefully in the first quarter of next year.

Neil

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 2
Leo_do_Mangue
Level 2

Likes

10 likes

Total Posts

46 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 2
Leo_do_Mangue
Level 2

Likes

10 likes

Total Posts

46 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Leo_do_Mangue
Level 2

17-12-2015

Neil, thank you very much.