|
In this section I will describe a demonstration of StorePapers. Below are a series of tables, each of these tables represents information stored in the component. The information displayed is fictitious. StorePapers consists of three tables.
Publications
With information already stored in the database is to explain the code that interprets the plugin to display the information on our website. The system is similar to that used with the "mosimage". To indicate that publications want to get the query using the values of the identifiers of each of the three preceding tables. To show all posts from one category, we use the necessary code and include the ID of the category. With the examples is better understood. The following articles are examples of content for each code of the plugin. In the following examples of content items for each code of the plugin.
Code 1 - Author, CategoryDisplaying publications of the category "Articles" written by Francisco Ruiz. {storepapers author category:ID AUTHOR:ID CATEGORY} {storepapers author category:4:1} If you copy the previous line and remove the two blank spaces in the query result is as follows:
Code 2 - Author, Category, PriorityDisplaying publications of the category "Articles" written by Francisco Ruiz with a priority. {storepapers author category priority:ID AUTHOR:ID CATEGORY:PRIORITY} {storepapers author category priority:4:1:1} The above code shows those publications Francisco Ruiz who are in the category "Artículos" and have a priority of 1.
{storepapers author category priority:4:1:2} The above code shows those publications Francisco Ruiz who are in the category "Artículos" and have a priority of 2.
You can see the author can choose the priority with which stores a publication that is useful when an author wants to have two or more separate lists of publications. Code 3 - CategoryDisplaying all publications from category "Artículos." {storepapers category:ID CATEGORY} {storepapers category:1} If you copy the previous line and remove the white space of the query result is as follows:
Code 4 - Year, CategoryDisplaying publications of the category "Artículos" in 2009. {storepapers year category:ID YEAR:ID CATEGORY} {storepapers year category:2009:1} If you copy the previous line and remove the two blank spaces in the query result is as follows:
Code 5 - PublicationShowing a publication as its identifier. {storepapers publication:ID PUBLICATION} {storepapers publication:5} If you copy the previous line and remove the white space of the query result is as follows:
Code 6 - Author, PublicationsShowing all publications written by Francisco Ruiz. {storepapers author publications:ID AUTHOR} {storepapers author publications:4} If you copy the previous line and remove the two blank spaces in the query result is as follows:
Code 7 - Author, Publications, PriorityDisplaying all publications written by Francisco Ruiz with a priority. {storepapers author publications priority:ID AUTHOR:PRIORITY} {storepapers author publications priority:4:1} The above code shows those publications Francisco Ruiz having a priority of 1.
{storepapers author publicationspriority:4:2} The above code shows those publications Francisco Ruiz having a priority of 2.
You can see how the author can choose the priority with which stores a publication, this is useful when an author wants to have two or more different lists of publications. Code 8 - PublicationsShowing all publications are available in the database. {storepapers publications:} {storepapers publication:} If you copy the previous line and remove the white space of the query result is as follows:
Optionally you can include an option at the end of each code.
Opción 1 - LISTThe "LIST" provides three different ways to show the query on the page. The "LIST" works with any of the codes seen before. There are three possibilities, 1st "NONE", 2nd "NUMBER", 3rd "DEFAULT" or not to put anything. Field "LIST" with the "NONE". {storepapers year category:ID YEAR:ID CATEGORY:LIST:NONE} {storepapers year category:2009:1:LIST:NONE} If you copy the previous line and remove the two blank spaces in the query result is as follows:
Field "LIST" with the "NUMBER". {storepapers year category:ID YEAR:ID CATEGORY:LIST:NUMBER} {storepapers year category:2009:1:LIST:NUMBER} If you copy the previous line and remove the two blank spaces in the query result is as follows:
The option "LIST" is available since version 1.2 of the plugin StorePapers. Opción 2 - ORDERBYDATEThe "ORDERBYDATE" provides two different ways to show the query by date of publication. The "ASC" returns publications in ascending order, first oldest depending on the year and month. The "DESC" returns the earliest publication first, according to year but the month following the first order of January and late December. The "ORDERBYDATE" works with any of the codes seen before. There are two possibilities, 1st "ASC", 2nd "DESC", or not to put anything. Field "ORDERBYDATE" with the "ASC". {storepapers category:ID CATEGORY:ORDERBYDATE:ASC} {storepapers category:1:ORDERBYDATE:ASC} If you copy the previous line and remove the two blank spaces in the query result is as follows:
Field "ORDERBYDATE" with the "DESC". {storepapers category:ID CATEGORY:ORDERBYDATE:DESC} {storepapers category:1:ORDERBYDATE:DESC} If you copy the previous line and remove the two blank spaces in the query result is as follows:
The option "ORDERBYDATE" is available since version 1.22 of the plugin StorePapers. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||