SlideShare ist ein Scribd-Unternehmen logo
1 von 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

Weitere ähnliche Inhalte

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
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
 
[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
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 

Kürzlich hochgeladen (20)

Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
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
 
[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
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
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
 
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
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 

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