Parent Link index.phtml not going to homepage

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
User avatar
Dan-G
Posts: 50
Joined: Fri 11. Apr 2008, 12:14

Parent Link index.phtml not going to homepage

Post by Dan-G »

I've been using NAV_LIST_UL:FP

In my web tree I have

HOME
Home Page Article
+ Cat 1
+ Cat 2
+ Cat 3

When I go to mysite.com the home page article appears fine
However when I click on the navigation HOME link I have a blank template ---> mysite.com/index.phtml
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Re: Parent Link index.phtml not going to homepage

Post by Oliver Georgi »

rename Home Alias from index to ***whatever***
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Dan-G
Posts: 50
Joined: Fri 11. Apr 2008, 12:14

Re: Parent Link index.phtml not going to homepage

Post by Dan-G »

:(

This takes me to mysite.com/whatever.phtml which is again, just a blank template

Whereas the page appears on mysite.com or mysite.com/home-1.phtml
User avatar
Oliver Georgi
Site Admin
Posts: 9940
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Re: Parent Link index.phtml not going to homepage

Post by Oliver Georgi »

would you please try for me in include/inc_front/content.func.inc.php and change around line 164 from

Code: Select all

} elseif($alias == $indexpage['acat_alias']) {

	$aktion[0] = $row[0]['acat_id'];
	$aktion[1] = $row[0]['article_id'];
	$aktion[3] = $row[0]['aktion3'];
	$aktion[4] = $row[0]['aktion4'];
	define('PHPWCMS_ALIAS', $alias);
	
}
to

Code: Select all

} elseif($alias == $indexpage['acat_alias']) {

	define('PHPWCMS_ALIAS', $alias);
	
}
Also ensure that home is public and visible!

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Dan-G
Posts: 50
Joined: Fri 11. Apr 2008, 12:14

Re: Parent Link index.phtml not going to homepage

Post by Dan-G »

works a treat!

Thanks Oliver :) :)
User avatar
Jensensen
Posts: 3000
Joined: Tue 17. Oct 2006, 21:11
Location: auf der mlauer

Re: Parent Link index.phtml not going to homepage

Post by Jensensen »

thanks. so it became r343
{so_much} | Knick-Knack. | GitHub
Umlaute im URL sind meistens immer Kacke.
Post Reply