 |
 |
 |
 |
 |
| Author |
Message |
VladDrakul
Joined: 10 Apr 2006 Posts: 44
|
|
how to have several index pages? |
|
I have a website with 3 columns, the left and right columns show static content and the middle one show the full articles.
I would like to have on my menu the links pointing for different index pages with different layouts.
The problem is that when I click to show a full article it loads the principal index and its static content instead of mainting the used index for that specific page.
Not sure if I'm explaining myself properly so here goes:
index.php when clicking on active news show index.php/id=x
index_new.php when clicking on active news show index_new.php/id=x
on the moment when clicking on active new on index_new.php it shows index.php
Is there any easy colution for this?
|
|
| Tue Feb 19, 2008 2:46 pm |
|
 |
Guest
|
|
|
Please login to hide the ads.
|
|
|
|
 |
FI-DD
Admin

Joined: 22 Sep 2005 Posts: 2668 Location: Germany |
|
|
| Tue Feb 19, 2008 8:24 pm |
|
 |
VladDrakul
Joined: 10 Apr 2006 Posts: 44
|
|
|
|
using the topic you showed can I have for instance 5 different index with different left and right static contents?
On 1. shall I maintain the [home] tag also?
what about if I have index_news.php, index_articles.php, index_stories.php and so on.
I need to add
[index_news]
[index_articles]
[index_stories]
on top of user friendly urls ??
3. since the {link=newpage/post} will be on template this means I cannot use the same news in different index? Since the full story path will be linked to a particular index.
Or I need to create one template for each index file?
This would be easier if instead of [home] on user friendly urls we had something like [file] where the full page story used the current index file instead of using the [home].php file.
 |  |
1. Add this to Options -> User Friendly Urls:
[newpage]
post = "{year}/{month}/{day}/{title}.html"
2. Create a file newpage.php (must be the same name as in step 1) in your main Cutenews directory and put an include code in it.
3. In your template use {link=newpage/post} instead of {link=home/post} to link to the full story.
Edit:
If you replace newpage for example with ../newpage you can put newpage.php outside your main Cutenews directory. | [/quote]
|
|
| Tue Feb 19, 2008 10:34 pm |
|
 |
VladDrakul
Joined: 10 Apr 2006 Posts: 44
|
|
|
|
Okay I have now several index.php running!
But I have one problem!
For instance as I told I have 3 columns, the left and right columns for static content and the middle to view the news.
How can I mix static content from several index opening the full story in the actual index instead of the template link?
What is happening now is that according to the template link with the code {link=newpage/post} or {link=home/post} the static content with the full story links opens different indexes instead of the actual one.
So the static content on the full story will differ from index to index.
is there a way to solve this?
Or I can only have different static content from index to index ?
I just need this for the menu.
I have a top menu with words like: NEWS | ARTICLES | FOTOS and so on.
When clicking on those links it would open a left menu with the sub-categories (like news of sports, politic, art) and opening static content more related to those words.
|
|
| Thu Feb 21, 2008 4:01 pm |
|
 |
scottdallas

Joined: 04 May 2006 Posts: 1802 Location: US |
|
|
|
I'm kinda confused.. does this help at all?
You can display any templates on any php file. You can create {full-story} links that go to any http://www.page.com/in.php?the-world.php although your question of how you'd like to display yours confused me. What kind of full story URL's are showing up on your page?
Perhaps for related content you could use static URL's that used the 'search.php' file.. you can rename that to anything.php then use news like this in anypage.php:
 |  | <?php
$number = "10";
include("admin/search.php");
?> |
The template is programmed in search.php so open that, CTRL+F for 'Default' then write in the name of the template you want to use.
The static URL you'd write in your top menu would be something like:
http://www.yoursite.com/category.php?do=search&search=whatever
 |  | What is happening now is that according to the template link with the code {link=newpage/post} or {link=home/post} the static content with the full story links opens different indexes instead of the actual one.
So the static content on the full story will differ from index to index.
is there a way to solve this? |
I'm not convinced you have this set up correctly.. can you paste whats in the top of your urls.ini?
 |  | Or I can only have different static content from index to index ? |
You can put anything anywhere. I don't know what you mean index to index 
_________________ www.scottdizzle.com uses cnr
last update: 07-22-08: 8:30 pm |
|
| Sat Feb 23, 2008 12:34 pm |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|
 |
 |
 |
|