2012-04-28, 08:57:45
Cerulean Wrote:Does every special page have to have a parent?
The interface says:
Quote:If you leave the parent page empty, it must be selected when creating a page
So does this mean you can't have a special page as a top level page? For instance, can you have the website home page be a special page?
if i needed to do that, i would make a component to render the search results of an i18n search, and filter it to just the page needed using a special tag; like if you were to add a tag '_homepage' to the tags of that particular special page, and then in your search string on the page that is the index/homepage you would put this:
(% searchresults tags:_homepage component=homepage HEADER: %)
the component 'homepage' would look something like this
Code:
<h1><?php echo htmlspecialchars($item->title, ENT_NOQUOTES); ?></a></h1>
<?php echo $item->getExcerpt($item->content, 300); ?>
and you would use this same format to access your other fields in the special page:
Code:
<?php echo htmlspecialchars($item->fieldname, ENT_NOQUOTES); ?>
-marc