I have been creating a few static pages that include a link list of related pages. By default it includes the date of each entry and the title. What I would like to do is include with each entry the meta description to make the list more interesting, informative, and provide more content for SEO purposes.
The link list is created through the staticpages-entries-listing.tpl file that is part of the Static Pages plugin. Can I use the value created by the Meta Tags plugin for the description on that page and what is that variable called and how do I use it?
Meta Tags, Variables & Static Pages
On a related note, it would appear that the number of entries listed is governed by the same settings as what controls the number of listings displayed on the homepage and categories.
Is there anyway to change things so that on a static page with a related category it could list all of the related entries?
Is there anyway to change things so that on a static page with a related category it could list all of the related entries?
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
You should be able to do that within the loop in the staticpage-entries-listing.tpl file by using smarty variables:
so you'd have something like:
you need to adapt this to:
So you raise the "limit" parameter to something really high.
Regards,
Garvin
You should be able to do that within the loop in the staticpage-entries-listing.tpl file by using smarty variables:
Code: Select all
{$entry.properties.ep_meta_description}
{$entry.properties.ep_meta_head_title}
{$entry.properties.ep_meta_keywords}
Code: Select all
<a href="{$entry.link}">{$entry.title|@default:$entry.id}</a><br />
Meta-Title: {$entry.properties.ep_meta_head_title}
Somewhere on your plugin_staticpage_related_category.tpl file (or whatever you use as a custom template) you should currently have a code like:Is there anyway to change things so that on a static page with a related category it could list all of the related entries?
Code: Select all
{serendipity_fetchPrintEntries category=$staticpage_related_category_id template="staticpage-entries-listing.tpl" limit=5 noSticky="true"}
Code: Select all
{serendipity_fetchPrintEntries category=$staticpage_related_category_id template="staticpage-entries-listing.tpl" limit=5000 noSticky="true"}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/