1o11 Wrote:is there a way to delete the standard index page an name the slug for a new page as »index« ?I'm not fully sure I understood the logic of your approach. But I see you might took the wrong path cause you didn't get the purpose of additional template files in whole theme pack.
if its not, i will define with the simplepagecontent plugin new html elements an will integrate them in a normal template, but this is more complicated to edit in the cms.
You shouldn't get outside of template files. Otherwise you won't get GS basic functions w/o creating own hooks, which needs much time to be coded. They alsoe do not guarantee you won't have to drop them and create new ones, as your project goes further.
Built-in index page is the one we start with at the beginning. This page cannot be deleted nor replaced, because it wouldn't make any sense.
Modify a bit your approach and:
1. create additional template file for landing page(f.e. indextemplate.php). Consider it as a standalone page, having all content you want to show w/o using any CMS. Set this file as index' page template in page's options. From now on this file takes up the role of index page. It doesn't even need to be connected with GS in any way - for example by calling any GS tags inside it. This might be a plain html file (with .php extension of course)
2. After you finish creating template file, prepare manage-able content to be embedded in above template file. This goes to content containers (base it on GS pages, and just load their content inside this template), slideshow, and dynamic articles list based on special pages <- point 3.
3. create a dedicated template file (if it won't be using default template.php) and set it for new page named news or articles - this will be the page on which you will show the list of articles generated by special pages plugin, not the index page.
4. call i18n search plugin in indextemplate.php, that will grab latest N articles from special pages (you didn't forget that SP plugin cooperates with i18n search?) and show them everywhere you want. Refer to both plugin settings. It isn't complicated, but you might need to create a custom component to render the list in the way you want.
This way all your website's content is manage-able from backend, and you do not need to:
- create custom rewrite rules to point to a standalone template file
- change GS core files
- create a complicated hooks
GS is really that simple as it states
Addons: blue business theme, Online Visitors, Notepad