| | LinkBack | Article Tools | Display Modes |
| ||||
| Pagename Variables
Reserved for future media.
__________________ Need a Pligg Host? Get 3 free months when you buy a year of hosting. Use the coupon PLIGG at either... MidPhase hosting starting at $7.95/month. ANhosting hosting starting as low as $4.95/month. Last edited by Yankidank; 08-13-2008 at 04:16 AM.. |
|
#2
Page Variables | ||||
What are Page Variables?Page variables are used to define what page a user is on. Variables are used in Pligg templates to determine whether or not you should display content by using {if} tags, this method is similar to many programming languages such as PHP. Pagename variables are defined in .php files to determine what page you are currently viewing. If you open up index.php, for example, you will find the code below which assigns the pagename variable "published" to the Pligg homepage. PHP Code: Code: {if $pagename eq "story"}
Content to show if it IS a story page
{/if}
Code: {if $pagename neq "story"}
Content to show if it's NOT a story page
{/if}
Pligg Page Variable ListBelow is a list of variables that can be used to define the page. Next to each variable is an equal sign ( = ) followed by a description.
| ||||
« previous article
|
next article »
| Article Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Page Title - Instant Need | plum | Suggestions | 5 | 10-17-2007 01:57 PM |
| Voting works on page 1, not page 2 | jrothra | General Help | 3 | 08-02-2007 12:45 AM |
| Suggestion: Friendlier urls for user page | revolver | General Help | 0 | 07-06-2007 12:44 PM |
| Add page nav number to top of page | kanedaguy | General Help | 1 | 02-03-2007 11:31 AM |
| tags take me to error page? | lithman | General Help | 2 | 05-14-2006 09:05 AM |




Linear Mode

