Text Content Management
OverviewObjectiveLearn how to manipulate text content of ProdigyView’sbuilt-in content management system.Requirements Ins...
Follow Along With Code                 Example1. Download a copy of the example code at  www.prodigyview.com/source.2. Ins...
What Is Text Content?Text content is content whose make up primarily consist oftext information. Examples of text informat...
Extends Base ContentLike the other content types, text content extends basecontent. This means it has all the fields that ...
Create Text Content  Text content is relatively easy to create. In an array, passed defined  fields into PVContent::create...
Database ViewRemember that the text content utilizes both the basecontent and text content fields. This is accomplished by...
Text Content FieldsThe previous slide only showed a few fields that can be setwhen defining product content. The complete ...
Search for Text Content Using the syntax from the PV Standard Search Query, we can search for content related to text on t...
Iterate Through The ListNext we can iterate through the list of text content to seethe data we just added.1. Iterate throu...
Retrieving Text ContentText content can also be retrieved directly using thecontent id. The data associated with that even...
Updating Text ContentThat array that contains the information for updating an textcontent. Simply change a value at an ind...
Deleting Text ContentThe last action to take place is deleting the text content.To delete content, we pass the content id ...
Review1. Create text content by passing an array of arguments into   PVContent::createTextContent()2. PVContent::createTex...
API ReferenceFor a better understanding of base content, visit the apiby clicking on the link below.PVContent             ...
Upcoming SlideShare
Loading in...5
×

Text Content Management

668

Published on

Learn how use text content of the content management system in ProdigyView.

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
668
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
3
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Text Content Management

  1. 1. Text Content Management
  2. 2. OverviewObjectiveLearn how to manipulate text content of ProdigyView’sbuilt-in content management system.Requirements Installed version of ProdigyView with a database Understanding of base contentEstimated Time10 minutes www.prodigyview.com
  3. 3. Follow Along With Code Example1. 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/TextContentExample.php
  4. 4. What Is Text Content?Text content is content whose make up primarily consist oftext information. Examples of text information is below butcan be expanded upon depending on the needs of the cmsand the developers imagination.  Books  News Websites  Manuscripts  Blogging  Documents  etc
  5. 5. Extends Base ContentLike the other content types, text content extends basecontent. This means it has all the fields that base contenthas in addition to the fields that describes a text. Text Content Fields Base Content Fields
  6. 6. Create Text Content Text content is relatively easy to create. In an array, passed defined fields into PVContent::createTextContent method. 1. Define the content that will be stored as text content3. Return content id 2. Pass tha array to PVContent::createTextContent
  7. 7. Database ViewRemember that the text content utilizes both the basecontent and text content fields. This is accomplished byjoining two tables. Your two tables in the database shouldlook something like below.
  8. 8. Text Content FieldsThe previous slide only showed a few fields that can be setwhen defining product content. The complete list of fields thatapply only to the product content type is:
  9. 9. Search for Text Content Using the syntax from the PV Standard Search Query, we can search for content related to text on the fields for both base content and text content. 1. Search based on the passed arguments 2. Pass args into getTextContentList() method3. Returns an array of arrays thatcontains the list of event content
  10. 10. Iterate Through The ListNext we can iterate through the list of text content to seethe data we just added.1. Iterate through the fields base content 2. With the automatic joining of the tables, text content fields are also returned
  11. 11. Retrieving Text ContentText content can also be retrieved directly using thecontent id. The data associated with that event id will bereturned in array. 1. Pass in the content id2. Content is returned in an array4. Get the values of the array by 3. Or get the content id through thespecifying the associated index content’s alias
  12. 12. Updating Text ContentThat array that contains the information for updating an textcontent. Simply change a value at an index in the array andpass it to PVContent::updateTextContent() method.Remember the content_id variable is required. 1. Append to the content in the text_content field 2. Pass the array back to update
  13. 13. Deleting Text ContentThe last action to take place is deleting the text content.To delete content, we pass the content id intoPVContent::deleteContent method.All the content types(audio, video, event, etc) use thePVContent::deleteContent method.
  14. 14. Review1. Create text content by passing an array of arguments into PVContent::createTextContent()2. PVContent::createTextContent() will return the id of the newly generated event content3. Search for event content by using the syntax from PV Standard Search Query and passing those arguments into PVContent::getTextContentList()4. Update content by passing an array of accepted fields in PVContent::updateTextContent(). The content_id must be present for this method to work.5. Delete event content by passing the content_id into PVContent::deleteContent(). www.prodigyview.com
  15. 15. API ReferenceFor a better understanding of base content, visit the apiby clicking on the link below.PVContent More TutorialsFor more tutorials, please visit:http://www.prodigyview.com/tutorials www.prodigyview.com
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×