Hi I've two problems with my Blog ( www.andisheha.info ), i hope you can help me.
1. if you click at a category (First at the sidebar) it should show the articles from the Category but it shows only "STATIC PAGE"
2. at the firstpage it should show the first 5 artilces from each category.
It's solved with Newsboxs. The header (that thing with the green background) should link to category but i don't know what should i add in the newsbox.tpl
1. if you click at a category (First at the sidebar) it should show the articles from the Category but it shows only "STATIC PAGE"
You seem to have created some file where this "Staticpage!!!" is inserted, it does not come from serendipity itself. Where did you create this, do you remember?
It might also be a problem of your permalinks. You changed those from the default to something else, how does your permalink config look like?
2. at the firstpage it should show the first 5 artilces from each category.
It's solved with Newsboxs. The header (that thing with the green background) should link to category but i don't know what should i add in the newsbox.tpl
# 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/
You seem to have created some file where this "Staticpage!!!" is inserted, it does not come from serendipity itself. Where did you create this, do you remember?
You are right! I've changed the entries.tpl to hide the entries at the first page.
With this code:
You are right! I've changed the entries.tpl to hide the entries at the first page.
With this code:
What did you want to achieve with this code? The code should never reach this portion of entries.tpl when a staticpage is displayed - entries.tpl is not fully evaluated when a static page is displayed...
Because s9y can't parse the UTF8 code and add a "unknown" instead of %title% or %name%
Could you try to use %id%/%day%/%month% or so instead? Using path seperators instead of "-". Because it might be that this "-" is causing some other strange lookup pattern.
s9y can parse UTF8 code, but UTF8 is not allowed in HTML, so it needs to replace all UTF8 codes to native ISO88591 ones. Some languages, like russian, support a global array that instructs s9y how to replace variables ($i18n_from and $i18n_to)
Now it shows "Array"
Maybe $newsbox_data.cats.0? Don't know which format the variable is in, I myself sadly don't know much about the newsbox plugin.
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/
Hm, I believe this is a specific problem caused by the staticpage being shown as the startpage. I think when you call the staticpage by its permalink, the navigation will nto show up, right?
Another reason might be the parsing of the newsbox plugin, because that one enables the display of pagination elements...
This might be quite tricky. I figure the easiest way would be to patch up your entries.tpl file and insert
{if $staticpage_pagetitle != 'pagetitle_of_startpage'}
.... the pagination div-stuff here ...
{/if}
Replace 'pagetitle_of_startpage' with the real pagetitle of your static startpage. This will then not show the pagination when that page is being displayed.
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/
# 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/