I am using staticpages plugin
I have changed the default page to show one of the static pages and not recent posts
In order to show the previous default page I can call it via: index.php/frontpage
this all works
What I would like is to have custom "permalink" for that URL
so I entered in menu: /posts/html and I added :
Code: Select all
#frontpage rule
RewriteRule ^posts\.html /index.php?frontpage
this also works
the problem is that link at the bottom of frontpage which links to second page of posts instead of:
http://blog.robi-bobi.net/archives/P2.html
has been automatically changed to:
http://blog.robi-bobi.net/posts/P2.html
which is no good
(it may be that some other links have that behaviour)
Is this expected ?
And how can I have custom permalink for frontend
thank you
P.S.
is there a list of all available functions and variables (I have not found such at tech doc links at the left sidebar of s9y.org site)
I am about to create custom homepage and I would like to have a view of what is already there, so I could reuse existing functions
what I might need:
get_latest_entries(5);
get_most_commented_entries(3);
etc
P.P.S
i found this page:
http://www.s9y.org/78.html
so this is how I managed to fetch what I needed:
Code: Select all
LATEST ENTRIES:
{serendipity_fetchPrintEntries limit="3"}
<br/>
Most commented entries:
{serendipity_fetchPrintEntries limit="3" orderby="comments DESC"}
Code: Select all
template:
(string)
Name of the template file to print entries with
P.P.P.S. (rofl)
consider creating some similar pages:
http://www.scottklarr.com/topic/100/php-cheat-sheets/