PHPCow Help

Full Version: Variables
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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?
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.
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=" " />
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.
Reference URL's