categories don't link to static pages
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
categories don't link to static pages
Hi,
can't get a category-entry linking to static pages - they use a different path and maybe more things son't meet.
static pages files under ../pages/staticpage.html and the categories are searching under .../categories/6-page even though I told the static page to be a page related to a category and the category vice versa to static-page.
IS it simply adjusting the path or something completely different?
Some categories meet better with static-pages, than normal entries, because they weekly or monthly recurring.
http://kunst-raum-volksdorf.de/kunst-katen-blog/
What's wrong?
eva
can't get a category-entry linking to static pages - they use a different path and maybe more things son't meet.
static pages files under ../pages/staticpage.html and the categories are searching under .../categories/6-page even though I told the static page to be a page related to a category and the category vice versa to static-page.
IS it simply adjusting the path or something completely different?
Some categories meet better with static-pages, than normal entries, because they weekly or monthly recurring.
http://kunst-raum-volksdorf.de/kunst-katen-blog/
What's wrong?
eva
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: categories don't link to static pages
Hi!
I don't really understand the problem. Can you give more specific URLs where I can see what's wrong?
Regards,
Garvin
I don't really understand the problem. Can you give more specific URLs where I can see what's wrong?
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/
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Re: categories don't link to static pages
Hi
the click on category "Kindermalkurse"
http://kunst-raum-volksdorf.de/kunst-ka ... ermalkurse
shows an empty page. But there is an static page, the path is
http://kunst-raum-volksdorf.de/kunst-ka ... kurse.html
That are the default paths, that were made by serendipity. Its a "static page with related category" and the category is labeled as "Zugeordnete statische Seite". Maybe I missunderstood the functionality? And I don't know, where to adjust them.
eva
the click on category "Kindermalkurse"
http://kunst-raum-volksdorf.de/kunst-ka ... ermalkurse
shows an empty page. But there is an static page, the path is
http://kunst-raum-volksdorf.de/kunst-ka ... kurse.html
That are the default paths, that were made by serendipity. Its a "static page with related category" and the category is labeled as "Zugeordnete statische Seite". Maybe I missunderstood the functionality? And I don't know, where to adjust them.
eva
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: categories don't link to static pages
Hi!
Ah, I assume what is missing is the information that you also need to patch your entries.tpl template of the page you are using so that it can be activated. The staticpage plugin comes with a "readme" file for associating categories which you should read, it contains the code you need to put into your entries.tpl.
Regards,
Garvin
Ah, I assume what is missing is the information that you also need to patch your entries.tpl template of the page you are using so that it can be activated. The staticpage plugin comes with a "readme" file for associating categories which you should read, it contains the code you need to put into your entries.tpl.
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/
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Re: categories don't link to static pages
That’s what I figured. There's something else to do. I'll give it a try.
thx
Eva
thx
Eva
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Re: relate the static pages to catgoeries
Hi
but you must try, try and try; try and try .... ok, I don't get it.
to relate the static pages to catgoeries
assuming to: insert the if-part from the README_FOR_RELATED_CATEGORIES.txt into the entries.tpl.
Where?
On some position its simply doing nothing, on other it displays error-messages:
can someone tell me, where I have to insert the if-part?
Or - maybe - alternative:
a)another way to get the categorie-navigation [Category Tree Menu] and the navigation over the static pages [Static Page List] together in one place?
b) I put the content of the static pages into normal entries and try not to show the date. In that case they would look very similar to static pages for the visitors.
Hoping my words are understandable.
thx eva
but you must try, try and try; try and try .... ok, I don't get it.
to relate the static pages to catgoeries
assuming to: insert the if-part from the README_FOR_RELATED_CATEGORIES.txt into the entries.tpl.
Where?
On some position its simply doing nothing, on other it displays error-messages:
Code: Select all
Fatal error: Smarty error: [in file:/kunst-raum-volksdorf.de/kunst-katen-blog/
templates/bulletproof/entries.tpl line 405]: Or - maybe - alternative:
a)another way to get the categorie-navigation [Category Tree Menu] and the navigation over the static pages [Static Page List] together in one place?
b) I put the content of the static pages into normal entries and try not to show the date. In that case they would look very similar to static pages for the visitors.
Hoping my words are understandable.
thx eva
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: relate the static pages to catgoeries
Hi!
What exactly did you insert? Your current code is wrong, it contains an error.
Regards,
Garvin
What exactly did you insert? Your current code is wrong, it contains an error.
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/
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Re: relate the static pages to catgoeries
Hi,garvinhicking wrote:Hi!
What exactly did you insert? Your current code is wrong, it contains an error.
Regards,
Garvin
I assumed, that there was something wrong.
Just this hour I found an alternative, to solve the problem: I put the content in an normal entry, make it sticky and not to be shown in the normal view. thats fine.
Beside that I'm a little fixed on the native problem, to make the static-pages navigatable through the categories-list. Its no more pressing, but - I'd like to know.
Heres the code I inserted to entries.tpl its the piece out of the README_FOR_RELATED_CATEGORIES.txt.
Code: Select all
{if ($view == 'archives') || ($view == 'frontpage')}
<table border="0" cellpadding="2" cellspacing="2" class="staticpage_navigation">
<tr>
<td class="staticpage_navigation_left">»
<a href="{$serendipityBaseURL}">{$blogTitle}</a>
» {$CONST.ARTICLE_OVERVIEW}</td>
</tr>
</table>
{/if}
{if ($view == 'categories')}
<table border="0" cellpadding="2" cellspacing="2" class="staticpage_navigation">
<tr>
<td class="staticpage_navigation_left">»
{if $staticpage_categorypage}
<a href="{$staticpage_categorypage.permalink}">{$staticpage_categorypage.pagetitle}</a>
{else}
<a href="{$serendipityBaseURL}">{$blogTitle}</a>
{/if}
» {$CONST.ARTICLE_OVERVIEW}</td>
</tr>
</table>
{/if
Code: Select all
<!-- ENTRIES START -->
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
{foreach from=$entries item="dategroup"}
<div class="hentry serendipity_Entry_Date{if $dategroup.is_sticky} serendipity_Sticky_Entry{/if}">
{if $dategroup.is_sticky}
{if $template_option.show_sticky_entry_heading == 'true'}
<h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
{/if}
{else}
<h3 class="serendipity_date"><abbr class="published" title="{$dategroup.date|@formatTime:'%Y-%m-%dT%H:%M:%S%Z'}">
{$dategroup.date|@formatTime:$template_option.date_format}</abbr></h3>
{/if}
<!-- tried at this point to insert the 2 if-abfragen -->
{foreach from=$dategroup.entries item="entry"}
<h4 class="entry-title serendipity_title"><a href="{$entry.link}" rel="bookmark">{$entry.title}</a></h4>
.......
Code: Select all
Fatal error: Smarty error: thx for the always good and speedy support
eva
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: relate the static pages to catgoeries
Hi!
Can you please post the whole entries.tpl? Then I can see what's the trouble.
Regards,
Garvin
Can you please post the whole entries.tpl? Then I can see what's the trouble.
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/
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Re: relate the static pages to catgoeries
ok. the error is gone (lost a bracket in transit).garvinhicking wrote:Hi!
Can you please post the whole entries.tpl? Then I can see what's the trouble.
Regards,
Garvin
but the related static page still don't come up to the front page, by clicking on the category.
here is a link to the static page and the sticky entry that I'm now using instead.
http://kunst-raum-volksdorf.de/categori ... ermalkurse
http://www.kunst-raum-volksdorf.de/page ... kurse.html
I'm not here for the rest of the day, so I can answer not until tomorrow.
And here she comes - the whole entries.tpl with the inserted code from the README_FOR_RELATED_CATEGORIES.txt.
thx Eva
Code: Select all
<!-- ENTRIES START -->
{serendipity_hookPlugin hook="entries_header" addData="$entry_id"}
{foreach from=$entries item="dategroup"}
<div class="hentry serendipity_Entry_Date{if $dategroup.is_sticky} serendipity_Sticky_Entry{/if}">
{if $dategroup.is_sticky}
{if $template_option.show_sticky_entry_heading == 'true'}
<h3 class="serendipity_date">{$CONST.STICKY_POSTINGS}</h3>
{/if}
{else}
<h3 class="serendipity_date"><abbr class="published" title="{$dategroup.date|@formatTime:'%Y-%m-%dT%H:%M:%S%Z'}">{$dategroup.date|@formatTime:$template_option.date_format}</abbr></h3>
{/if}
{if ($view == 'archives') || ($view == 'frontpage')}
<table border="0" cellpadding="2" cellspacing="2" class="staticpage_navigation">
<tr>
<td class="staticpage_navigation_left">»
<a href="{$serendipityBaseURL}">{$blogTitle}</a>
» {$CONST.ARTICLE_OVERVIEW}</td>
</tr>
</table>
{/if}
{if ($view == 'categories')}
<table border="0" cellpadding="2" cellspacing="2" class="staticpage_navigation">
<tr>
<td class="staticpage_navigation_left">»
{if $staticpage_categorypage}
<a href="{$staticpage_categorypage.permalink}">{$staticpage_categorypage.pagetitle}</a>
{else}
<a href="{$serendipityBaseURL}">{$blogTitle}</a>
{/if}
» {$CONST.ARTICLE_OVERVIEW}</td>
</tr>
</table>
{/if}
{foreach from=$dategroup.entries item="entry"}
<h4 class="entry-title serendipity_title"><a href="{$entry.link}" rel="bookmark">{$entry.title}</a></h4>
<div class="serendipity_entry serendipity_entry_author_{$entry.author|@makeFilename} {if $entry.is_entry_owner}serendipity_entry_author_self{/if}">
{if (not $dategroup.is_sticky or ($dategroup.is_sticky and $template_option.show_sticky_entry_footer == 'true'))}
{if $template_option.entryfooterpos == 'belowtitle'}
<div class='serendipity_entryFooter belowtitle'>
{if $template_option.footerauthor == 'true'}
{$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
{/if}
{if $template_option.footercategories == 'true'}
{if $entry.categories}
{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
{/if}
{/if}
{if $template_option.footertimestamp == 'true'}
{if $dategroup.is_sticky}
{$CONST.ON}
{else}
{$CONST.AT}
{/if}
<a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:$template_option.date_format} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
{/if}
{if $template_option.footercomments == 'true'}
{if $entry.has_comments}
{if $use_popups}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{else}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{/if}
{/if}
{/if}
{if $template_option.footertrackbacks == 'true'}
{if $entry.has_trackbacks}
{if $use_popups}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{else}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{/if}
{/if}
{/if}
{if $entry.is_entry_owner and not $is_preview}
<div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
{/if}
{$entry.add_footer}
{if $template_option.addthiswidget == 'true'}
<div class="addthiswidget">
<script type="text/javascript">
addthis_url = '{$entry.rdf_ident|escape:url}';
addthis_title = '{$entry.title|escape:url}';
addthis_pub = '{$template_option.addthisaccount}';
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div>
{/if}
</div>
{/if}
{if $template_option.entryfooterpos == 'splitfoot'}
<div class='serendipity_entryFooter byline'>
{if $template_option.footerauthor == 'true'}
{$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
{/if}
{if $template_option.footercategories == 'true'}
{if $entry.categories}
{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
{/if}
{/if}
{if $template_option.footertimestamp == 'true'}
{if $dategroup.is_sticky}
{$CONST.ON}
{else}
{$CONST.AT}
{/if}
<a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:$template_option.date_format} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
{/if}
</div>
{/if}
{/if}
{if $entry.categories}
<span class="serendipity_entryIcon">
{foreach from=$entry.categories item="entry_category"}
{if $entry_category.category_icon}
<a href="{$entry_category.category_link}"><img class="serendipity_entryIcon" title="{$entry_category.category_name|@escape}{$entry_category.category_description|@emptyPrefix}" alt="{$entry_category.category_name|@escape}" src="{$entry_category.category_icon}" /></a>
{/if}
{/foreach}
</span>
{/if}
<div class="entry-content serendipity_entry_body">
{$entry.body}
{if $entry.has_extended and not $is_single_entry and not $entry.is_extended}
<span class="continue_reading"><a href="{$entry.link}#extended" title='{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."}'>{$CONST.VIEW_EXTENDED_ENTRY|@sprintf:$entry.title|truncate:50:" ..."} »</a></span>
{/if}
</div>
{if $entry.is_extended}
<div class="serendipity_entry_extended"><a id="extended"></a>{$entry.extended}</div>
{/if}
{if (not $dategroup.is_sticky or ($dategroup.is_sticky and $template_option.show_sticky_entry_footer == 'true'))}
{if $template_option.entryfooterpos == 'belowentry'}
<div class='serendipity_entryFooter belowentry'>
{if $template_option.footerauthor == 'true'}
{$CONST.POSTED_BY} <address class="author"><a href="{$entry.link_author}">{$entry.author}</a></address>
{/if}
{if $template_option.footercategories == 'true'}
{if $entry.categories}
{$CONST.IN} {foreach from=$entry.categories item="entry_category" name="categories"}<a href="{$entry_category.category_link}">{$entry_category.category_name|@escape}</a>{if not $smarty.foreach.categories.last}, {/if}{/foreach}
{/if}
{/if}
{if $template_option.footertimestamp == 'true'}
{if $dategroup.is_sticky}
{$CONST.ON}
{else}
{$CONST.AT}
{/if}
<a href="{$entry.link}">{if $dategroup.is_sticky}{$entry.timestamp|@formatTime:$template_option.date_format} {/if}{$entry.timestamp|@formatTime:'%H:%M'}</a>
{/if}
{if $template_option.footercomments == 'true'}
{if $entry.has_comments}
{if $use_popups}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{else}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
| <a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{/if}
{/if}
{/if}
{if $template_option.footertrackbacks == 'true'}
{if $entry.has_trackbacks}
{if $use_popups}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{else}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{/if}
{/if}
{/if}
{if $entry.is_entry_owner and not $is_preview}
<div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
{/if}
{$entry.add_footer}
{if $template_option.addthiswidget == 'true'}
<div class="addthiswidget">
<script type="text/javascript">
addthis_url = '{$entry.rdf_ident|escape:url}';
addthis_title = '{$entry.title|escape:url}';
addthis_pub = '{$template_option.addthisaccount}';
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div>
{/if}
</div>
{/if}
{if $template_option.entryfooterpos == 'splitfoot'}
<div class='serendipity_entryFooter infofooter'>
{if $template_option.footercomments == 'true'}
{if $entry.has_comments}
{if $use_popups}
{if $template_option.altcommtrack == 'true'}
<a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
<a href="{$entry.link_popup_comments}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{else}
{if $template_option.altcommtrack == 'true'}
<a href="{$entry.link}#comments">{if $entry.comments == 0}{$CONST.NO_COMMENTS}{else}{$entry.comments} {$entry.label_comments}{/if}</a>
{else}
<a href="{$entry.link}#comments">{$entry.label_comments} ({$entry.comments})</a>
{/if}
{/if}
{/if}
{/if}
{if $template_option.footertrackbacks == 'true'}
{if $entry.has_trackbacks}
{if $use_popups}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link_popup_trackbacks}" onclick="window.open(this.href, 'comments', 'width=600,height=600,scrollbars=yes,resizable=yes'); return false;">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{else}
{if $template_option.altcommtrack == 'true'}
| <a href="{$entry.link}#trackbacks">{if $entry.trackbacks == 0}{$CONST.NO_TRACKBACKS}{else}{$entry.trackbacks} {$entry.label_trackbacks}{/if}</a>
{else}
| <a href="{$entry.link}#trackbacks">{$entry.label_trackbacks} ({$entry.trackbacks})</a>
{/if}
{/if}
{/if}
{/if}
{if $entry.is_entry_owner and not $is_preview}
<div class="editentrylink"><a href="{$entry.link_edit}">{$CONST.EDIT_ENTRY}</a></div>
{/if}
{$entry.add_footer}
{if $template_option.addthiswidget == 'true'}
<div class="addthiswidget">
<script type="text/javascript">
addthis_url = '{$entry.rdf_ident|escape:url}';
addthis_title = '{$entry.title|escape:url}';
addthis_pub = '{$template_option.addthisaccount}';
</script>
<script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div>
{/if}
</div>
{/if}
{/if}
</div>
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<rdf:Description
rdf:about="{$entry.link_rdf}"
trackback:ping="{$entry.link_trackback}"
dc:title="{$entry.title_rdf|@default:$entry.title}"
dc:identifier="{$entry.rdf_ident}" />
</rdf:RDF>
-->
{$entry.plugin_display_dat}
{if $is_single_entry and not $use_popups and not $is_preview}
{if $CONST.DATA_UNSUBSCRIBED}
<div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_UNSUBSCRIBED|@sprintf:$CONST.UNSUBSCRIBE_OK}</div>
{/if}
{if $CONST.DATA_TRACKBACK_DELETED}
<div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_DELETED|@sprintf:$CONST.TRACKBACK_DELETED}</div>
{/if}
{if $CONST.DATA_TRACKBACK_APPROVED}
<div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_TRACKBACK_APPROVED|@sprintf:$CONST.TRACKBACK_APPROVED}</div>
{/if}
{if $CONST.DATA_COMMENT_DELETED}
<div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_DELETED|@sprintf:$CONST.COMMENT_DELETED}</div>
{/if}
{if $CONST.DATA_COMMENT_APPROVED}
<div class="serendipity_center serendipity_msg_notice">{$CONST.DATA_COMMENT_APPROVED|@sprintf:$CONST.COMMENT_APPROVED}</div>
{/if}
<div class="serendipity_comments serendipity_section_trackbacks">
<a id="trackbacks"></a>
<div class="serendipity_commentsTitle">{$CONST.TRACKBACKS}</div>
<div class="serendipity_center">
<a rel="nofollow" style="font-weight: normal" href="{$entry.link_trackback}" onclick="alert('{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape:html}'); return false;" title="{$CONST.TRACKBACK_SPECIFIC_ON_CLICK|@escape}">{$CONST.TRACKBACK_SPECIFIC}</a>
</div>
<div id="serendipity_trackbacklist">{serendipity_printTrackbacks entry=$entry.id}</div>
</div>
{/if}
{if $is_single_entry and not $is_preview}
<div class="serendipity_comments serendipity_section_comments">
<a id="comments"></a>
<div class="serendipity_commentsTitle">{$CONST.COMMENTS}</div>
<div class="serendipity_center">{$CONST.DISPLAY_COMMENTS_AS}
{if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
({$CONST.COMMENTS_VIEWMODE_LINEAR} | <a href="{$entry.link_viewmode_threaded}#comments" rel="nofollow">{$CONST.COMMENTS_VIEWMODE_THREADED}</a>)
{else}
(<a rel="nofollow" href="{$entry.link_viewmode_linear}#comments">{$CONST.COMMENTS_VIEWMODE_LINEAR}</a> | {$CONST.COMMENTS_VIEWMODE_THREADED})
{/if}
</div>
<div id="serendipity_commentlist">{serendipity_printComments entry=$entry.id mode=$entry.viewmode}</div>
{if $entry.is_entry_owner}
{if $entry.allow_comments}
<div class="serendipity_center">(<a href="{$entry.link_deny_comments}">{$CONST.COMMENTS_DISABLE}</a>)</div>
{else}
<div class="serendipity_center">(<a href="{$entry.link_allow_comments}">{$CONST.COMMENTS_ENABLE}</a>)</div>
{/if}
{/if}
<a id="feedback"></a>
{foreach from=$comments_messagestack item="message"}
<div class="serendipity_center serendipity_msg_important">{$message}</div>
{/foreach}
{if $is_comment_added}
<div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}</div>
{elseif $is_comment_moderate}
<div class="serendipity_center serendipity_msg_notice">{$CONST.COMMENT_ADDED}<br />{$CONST.THIS_COMMENT_NEEDS_REVIEW}</div>
{elseif not $entry.allow_comments}
<div class="serendipity_center serendipity_msg_important">{$CONST.COMMENTS_CLOSED}</div>
{else}
<div class="serendipity_section_commentform">
<div class="serendipity_commentsTitle">{$CONST.ADD_COMMENT}</div>
{$COMMENTFORM}
</div>
{/if}
</div>
{/if}
{$entry.backend_preview}
{/foreach}
</div>
{foreachelse}
{if not $plugin_clean_page}
<div class="serendipity_overview_noentries">
{$CONST.NO_ENTRIES_TO_PRINT}
</div>
{/if}
{/foreach}
<div class='serendipity_pageFooter' style="text-align: center">
{if $footer_prev_page}
{if $template_option.prev_next_style == 'texticon'}
{if $template_option.colorset == 'blank'}
<a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" title="{$CONST.PREVIOUS_PAGE}" src="{serendipity_getFile file="img/back.png"}" />{$CONST.PREVIOUS_PAGE}</a>
{else}
<a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" title="{$CONST.PREVIOUS_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_back.png" />{$CONST.PREVIOUS_PAGE}</a>
{/if}
{elseif $template_option.prev_next_style == 'icon'}
{if $template_option.colorset == 'blank'}
<a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" src="{serendipity_getFile file="img/back.png"}" />{$CONST.PREVIOUS_PAGE}</a>
{else}
<a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}"><img alt="{$CONST.PREVIOUS_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_back.png" /></a>
{/if}
{else}
<a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}">« {$CONST.PREVIOUS_PAGE}</a>
{/if}
{/if}
{if $footer_info}
({$footer_info})
{/if}
{if $footer_next_page}
{if $template_option.prev_next_style == 'texticon'}
{if $template_option.colorset == 'blank'}
<a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE}<img alt="{$CONST.NEXT_PAGE}" title="{$CONST.NEXT_PAGE}" src="{serendipity_getFile file="img/forward.png"}" /></a>
{else}
<a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE}<img alt="{$CONST.NEXT_PAGE}" title="{$CONST.NEXT_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_forward.png" /></a>
{/if}
{elseif $template_option.prev_next_style == 'icon'}
{if $template_option.colorset == 'blank'}
<a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}"><img alt="{$CONST.NEXT_PAGE}" src="{serendipity_getFile file="img/forward.png"}" /></a>
{else}
<a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}"><img alt="{$CONST.NEXT_PAGE}" src="{$serendipityHTTPPath}templates/{$template}/img/{$template_option.colorset}_forward.png" /></a>
{/if}
{else}
<a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">{$CONST.NEXT_PAGE} »</a>
{/if}
{/if}
{serendipity_hookPlugin hook="entries_footer"}
</div>
<!-- ENTRIES END -->
[/quote]
[/quote]-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: relate the static pages to catgoeries
Hi!
I believe the solution is, you might be editing the wrong template file.
You seem to be using the bulletproof theme, but the entires.tpl code you posted here is something different alltogether.
If you use bulletproof, the file you must edit is templates/bulletproof/entries.tpl - make sure that you insert the staticpage code there (do NOT paste the whole entries.tpl you posted earlier into bulletproof, or you will mess up the template).
Regards,
Garvin
I believe the solution is, you might be editing the wrong template file.
You seem to be using the bulletproof theme, but the entires.tpl code you posted here is something different alltogether.
If you use bulletproof, the file you must edit is templates/bulletproof/entries.tpl - make sure that you insert the staticpage code there (do NOT paste the whole entries.tpl you posted earlier into bulletproof, or you will mess up the template).
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/
-
ewehdemeyer
- Regular
- Posts: 62
- Joined: Fri Jan 19, 2007 6:59 pm
- Location: Hamburg
Re: relate the static pages to catgoeries
Hi,
so I searched trough the underground of my serendipity-installation - and there is no other entries.tpl with a comparable filesize. Beside that I'm quite sure I took the one out of the bulletproof-template-folder.
And as far as I see: yes, its operating! - there are listed actual entries from the related categorie on the static-page. hmm. Just can't get the static-page to screen with a click on the categorie-list.
(maybe my bulletproof-installation is not quite alright, the admin-page is broadening twice, when saving some entries or settings?)
hmm
regards
eva
so I searched trough the underground of my serendipity-installation - and there is no other entries.tpl with a comparable filesize. Beside that I'm quite sure I took the one out of the bulletproof-template-folder.
And as far as I see: yes, its operating! - there are listed actual entries from the related categorie on the static-page. hmm. Just can't get the static-page to screen with a click on the categorie-list.
(maybe my bulletproof-installation is not quite alright, the admin-page is broadening twice, when saving some entries or settings?)
hmm
regards
eva