SlideShare una empresa de Scribd logo
1 de 16
Content Management – Base
         Content




         www.prodigyview.com
Overview
Objective

Learn the basics of the content management system in
ProdigyView and how to manipulate base content.

Requirements

 Installed version of ProdigyView with a database
Estimated Time

8 minutes



                     www.prodigyview.com
Follow Along With Code
                 Example
1. Download a copy of the example code at
  www.prodigyview.com/source.

2. Install the system in an environment you feel comfortable
  testing in.

3. Proceed to examples/content/BasicContentExample.php




                         www.prodigyview.com
What is Content Management?
One of the features that ProdigyView offers is a built-in cms that
supports all kinds of content including audio, video, file, event
and ecommerce.

                         Important!
The content management is meant to be a way of quickly
building sites and presenting a proof of concept or
prototypes to stakeholders and decisions makers such as the
CEO, Managers, and Investors.
The cms contains many extra fields that do not make suitable
for a scaled production. If you are going to use the cms in
production, remember to optimize your database.

                         www.prodigyview.com
Base Content
 Base content is the parent content for all the other content
 types. Whenever you are creating a different content
 type, you will be using base content.

                      Base Content




Audio        Video           Event           E-commerce   File



                       www.prodigyview.com
Creating Base Content
 Creating base content is relatively easy. It only requires
 defining fields and passing them into
 PVContent::createContent method.

1. Set the content
arguments in an
array


2. Pass the
arguments into the
createContent
method



3. Return the id of
the content
Database Check
The content should look something like this in your
database.




                     www.prodigyview.com
Base Content Fields
 In our last example, we only used three fields for creating
 content. When using base content, you have access to a variety
 of fields that can help you differentiate your content and set
 data. Below is a larger data set of fields that can be used.



content_id                 date_active           content_language
content_title              date_inactive         translate_content
content_description        date_created          content_approved
parent_content             date_modified         content_parameters
app_id                     is_searchable         sym_link
owner_id                   allow_comments        content_order
content_meta_tags          allow_rating          content_access_level
content_meta_description   content_active
content_thumbnail          content_promoted
content_alias              content_permissions
Unique Alias
   One of the features we skipped over before was the ability
   to create a unique content alias. The content alias is a
   unique human readable string identifier that can be given
   to any content type.


   1. Create the unique alias based upon the based text content




2. Set the content alias                 3. Create the content
in the args array
Searching For Content
Searching for content create is relatively easy. The PV Standard
Search Query is used with PVContent::getContentList() method. This
will return an array of arrays.


        1. Search based on the passed arguments




                                           2. Pass args into getContentList() method
 3. Returns an array of arrays that
 contains the list of content
                                 www.prodigyview.com
Iterate Through Array
After we have retrieved out list of data, we can iterate
through it. Each row will be the data associated with a
different content id.

1. Iterate through the list of arrays




                               2. Get the information associated with each row

                               www.prodigyview.com
Retrieving Content
Next we are going to retrieve content with a variable.
Remember the id of the content that was returned before? We
can use that for retrieving data associated with that id in the
form of an array.

                         1. The ID of the content




                   2. The content returned in an array
Updating The Content
When the array is returned, is contains all the data
associated with that content id from the database. If we want
to update the content, we change an index in the array and
pass the content back.
                                         1. getContentIDByAlias return the
                                         id of content with the alias
          2. Use the id and retrieve
          the data associated with
          that id




3. Change a value in the content array       4. Pass the array in updateContent
Deleting Content
The final action when dealing with content is deleting. To
delete the content, pass in the id of the content you want
to delete into PVContent::deleteContent().




                      www.prodigyview.com
Review
1. Create base content by passing an array of arguments
   into PVContent::createContent()
2. PVContent::createContent() will return the id of the
   newly generated content
3. Search for content by using the syntax from PV
   Standard Search Query and passing those
   arguments into PVContent::getContentList()
4. Update content by passing an array of accepted fields
   in PVContent::updateContent(). The content_id
   must be present for this method to work.
5. Delete content by passing the content_id into
   PVContent::deleteContent().

                     www.prodigyview.com
API Reference
For a better understanding of base content, visit the api
by clicking on the link below.

PVContent




                 More Tutorials
For more tutorials, please visit:

http://www.prodigyview.com/tutorials


                       www.prodigyview.com

Más contenido relacionado

Más de ProdigyView

Video Content Management
Video Content ManagementVideo Content Management
Video Content ManagementProdigyView
 
File Content Management
File Content ManagementFile Content Management
File Content ManagementProdigyView
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialProdigyView
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms TutorialProdigyView
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags TutorialProdigyView
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHPProdigyView
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHPProdigyView
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyViewProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHPProdigyView
 
Basic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHPBasic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHPProdigyView
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web CacheProdigyView
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS LibrariesProdigyView
 
SQL Prepared Statements Tutorial
SQL Prepared Statements TutorialSQL Prepared Statements Tutorial
SQL Prepared Statements TutorialProdigyView
 
Implementing the Adapter Design Pattern
Implementing the Adapter Design PatternImplementing the Adapter Design Pattern
Implementing the Adapter Design PatternProdigyView
 
Intercepting Filters Design Pattern
Intercepting Filters Design PatternIntercepting Filters Design Pattern
Intercepting Filters Design PatternProdigyView
 
Creating Dynamic Objects PHP
Creating Dynamic Objects PHPCreating Dynamic Objects PHP
Creating Dynamic Objects PHPProdigyView
 
PV Standard Search Query
PV Standard Search QueryPV Standard Search Query
PV Standard Search QueryProdigyView
 
Prodigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyView
 

Más de ProdigyView (20)

Video Content Management
Video Content ManagementVideo Content Management
Video Content Management
 
File Content Management
File Content ManagementFile Content Management
File Content Management
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags Tutorial
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHP
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHP
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Basic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHPBasic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHP
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS Libraries
 
PHP Libraries
PHP LibrariesPHP Libraries
PHP Libraries
 
SQL Prepared Statements Tutorial
SQL Prepared Statements TutorialSQL Prepared Statements Tutorial
SQL Prepared Statements Tutorial
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 
Implementing the Adapter Design Pattern
Implementing the Adapter Design PatternImplementing the Adapter Design Pattern
Implementing the Adapter Design Pattern
 
Intercepting Filters Design Pattern
Intercepting Filters Design PatternIntercepting Filters Design Pattern
Intercepting Filters Design Pattern
 
Creating Dynamic Objects PHP
Creating Dynamic Objects PHPCreating Dynamic Objects PHP
Creating Dynamic Objects PHP
 
PV Standard Search Query
PV Standard Search QueryPV Standard Search Query
PV Standard Search Query
 
Prodigyview XML COnfiguration File
Prodigyview XML COnfiguration FileProdigyview XML COnfiguration File
Prodigyview XML COnfiguration File
 

Último

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsJoaquim Jorge
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?Antenna Manufacturer Coco
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...apidays
 

Último (20)

A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 

Content Management - Base Content

  • 1. Content Management – Base Content www.prodigyview.com
  • 2. Overview Objective Learn the basics of the content management system in ProdigyView and how to manipulate base content. Requirements  Installed version of ProdigyView with a database Estimated Time 8 minutes www.prodigyview.com
  • 3. Follow Along With Code Example 1. Download a copy of the example code at www.prodigyview.com/source. 2. Install the system in an environment you feel comfortable testing in. 3. Proceed to examples/content/BasicContentExample.php www.prodigyview.com
  • 4. What is Content Management? One of the features that ProdigyView offers is a built-in cms that supports all kinds of content including audio, video, file, event and ecommerce. Important! The content management is meant to be a way of quickly building sites and presenting a proof of concept or prototypes to stakeholders and decisions makers such as the CEO, Managers, and Investors. The cms contains many extra fields that do not make suitable for a scaled production. If you are going to use the cms in production, remember to optimize your database. www.prodigyview.com
  • 5. Base Content Base content is the parent content for all the other content types. Whenever you are creating a different content type, you will be using base content. Base Content Audio Video Event E-commerce File www.prodigyview.com
  • 6. Creating Base Content Creating base content is relatively easy. It only requires defining fields and passing them into PVContent::createContent method. 1. Set the content arguments in an array 2. Pass the arguments into the createContent method 3. Return the id of the content
  • 7. Database Check The content should look something like this in your database. www.prodigyview.com
  • 8. Base Content Fields In our last example, we only used three fields for creating content. When using base content, you have access to a variety of fields that can help you differentiate your content and set data. Below is a larger data set of fields that can be used. content_id date_active content_language content_title date_inactive translate_content content_description date_created content_approved parent_content date_modified content_parameters app_id is_searchable sym_link owner_id allow_comments content_order content_meta_tags allow_rating content_access_level content_meta_description content_active content_thumbnail content_promoted content_alias content_permissions
  • 9. Unique Alias One of the features we skipped over before was the ability to create a unique content alias. The content alias is a unique human readable string identifier that can be given to any content type. 1. Create the unique alias based upon the based text content 2. Set the content alias 3. Create the content in the args array
  • 10. Searching For Content Searching for content create is relatively easy. The PV Standard Search Query is used with PVContent::getContentList() method. This will return an array of arrays. 1. Search based on the passed arguments 2. Pass args into getContentList() method 3. Returns an array of arrays that contains the list of content www.prodigyview.com
  • 11. Iterate Through Array After we have retrieved out list of data, we can iterate through it. Each row will be the data associated with a different content id. 1. Iterate through the list of arrays 2. Get the information associated with each row www.prodigyview.com
  • 12. Retrieving Content Next we are going to retrieve content with a variable. Remember the id of the content that was returned before? We can use that for retrieving data associated with that id in the form of an array. 1. The ID of the content 2. The content returned in an array
  • 13. Updating The Content When the array is returned, is contains all the data associated with that content id from the database. If we want to update the content, we change an index in the array and pass the content back. 1. getContentIDByAlias return the id of content with the alias 2. Use the id and retrieve the data associated with that id 3. Change a value in the content array 4. Pass the array in updateContent
  • 14. Deleting Content The final action when dealing with content is deleting. To delete the content, pass in the id of the content you want to delete into PVContent::deleteContent(). www.prodigyview.com
  • 15. Review 1. Create base content by passing an array of arguments into PVContent::createContent() 2. PVContent::createContent() will return the id of the newly generated content 3. Search for content by using the syntax from PV Standard Search Query and passing those arguments into PVContent::getContentList() 4. Update content by passing an array of accepted fields in PVContent::updateContent(). The content_id must be present for this method to work. 5. Delete content by passing the content_id into PVContent::deleteContent(). www.prodigyview.com
  • 16. API Reference For a better understanding of base content, visit the api by clicking on the link below. PVContent More Tutorials For more tutorials, please visit: http://www.prodigyview.com/tutorials www.prodigyview.com