| Author |
Message |
stephen
Junior Member
 
Posts: 5
Group: Registered
Joined: Jul 2008
Status:
Offline
Reputation: 0
|
Variables
Looking to setup a standard category template and wish for the category title to be displayed at the top of the category template page. So as to keep this a standard page and not reproduce multiple category pages, I need to drop in the php variable for the category name. Any ideas on what this is or should I be going about it a different way with PHPCOW?
Regards,
Steve
|
|
| 07-12-2008 08:50 AM |
|
 |
Kaos
Administrator
      
Posts: 315
Group: Administrators
Joined: Apr 2008
Status:
Offline
Reputation: 0
|
RE: Variables
Well, to setup a category page in phpcow you will open the news-default template in your template manager, then go to the bottom of the editor where it says "Attach to a category" and a spot for you to type in a template name. You then click 'create page template and then you can use that to make your category page.
Is that what you meant?
Syracuse News | Syracuse Web Design
|
|
| 07-12-2008 10:40 AM |
|
 |
stephen
Junior Member
 
Posts: 5
Group: Registered
Joined: Jul 2008
Status:
Offline
Reputation: 0
|
RE: Variables
Not exactly. I already know how to do this but if I wanted the category name to appear at the top of that template, the title of the page in H1 tags, dynamically named so that I can reuse the same template, what would be the variable I require.
i.e. in PHP you would have a page title variable of $PageTitle and within a template you would echo “$PageTitle”; therefore you can use the same template with dynamic title and content.
|
|
| 07-12-2008 01:29 PM |
|
 |
stephen
Junior Member
 
Posts: 5
Group: Registered
Joined: Jul 2008
Status:
Offline
Reputation: 0
|
RE: Variables
Also, how are the meta tag variable also controlled at category page template levels.
<meta name="Title" content=" " />
<meta name="Description" content=" " />
<meta name="Keywords" content=" " />
|
|
| 07-12-2008 02:12 PM |
|
 |
Kaos
Administrator
      
Posts: 315
Group: Administrators
Joined: Apr 2008
Status:
Offline
Reputation: 0
|
RE: Variables
Well, you can create custom meta tags by creating a custom function...the cow describes it here: https://support.phpcow.com/index.php?_m=...32&nav=0,4
As for the first category question I don't know what to tell you, you could obviously ad h2 tags to each page individual, but not sure how you could do so automatically. You may want to ask phpcow directly if they have a solution for this.
Syracuse News | Syracuse Web Design
|
|
| 07-13-2008 10:59 AM |
|
 |
robbinhood
Junior Member
 
Posts: 3
Group: Registered
Joined: Jun 2010
Status:
Offline
Reputation: 0
|
RE: Variables
In computer programming, a variable is a facility for storing data. In contemporary programming languages, even non-identical identifiers can refer to the same variable.
1.ariable (mathematics), a letter that represents a value in an algebraic expression.
2.Variable (programming), a symbolic name associated with a value and whose associated value may be changed.
3.Variable star, a type of star (as in astronomical object)
social bookmarking
|
|
| 06-19-2010 12:22 AM |
|
 |
krishriaz
Junior Member
 
Posts: 6
Group: Registered
Joined: Jul 2010
Status:
Offline
Reputation: 0
|
RE: Variables
A variable is any measured characteristic or attribute that differs for different subjects. Variables can be quantitative or qualitative. Quantitative variables are measured on an ordinal, interval, or ratio scale while qualitative variables are measured on a nominal scale.
cabbage soup diet
|
|
| 07-25-2010 03:12 AM |
|
 |