Joomla! Discussion Forums



It is currently Wed Nov 25, 2009 12:29 pm (All times are UTC )

 





Post new topic Reply to topic  [ 8 posts ] 
Author Message
Posted: Mon Jan 26, 2009 4:32 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 8:57 am
Posts: 1247
Location: Shrewsbury, Shropshire, United Kingdom
I must be doing something stupid, because I'm sure this used to work....

Install 1.5.9 with sample data.
Extensions -> Template Manager
Click a non-default template, say JA_Purity.
Under Menu Assignment, click Select from List and select a menu from the list, say "Extensions".
Click Save.

Now on the front-end, click "Extensions" and ......

Hmm. I was expecting to see this item with the JA_Purity template, but it still shows with the default template.

Am I doing something wrong, or is this a bug?

Regards,
Chris.

_________________
Joomla Leadership Team - Production Working Group
Joomla Documentation Coordinator

Davenport Technology Services (http://davenporttechnology.com)


Last edited by Chris Davenport on Wed Jan 28, 2009 9:25 pm, edited 1 time in total.

Top
  E-mail  
 
Posted: Wed Jan 28, 2009 12:18 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 8:57 am
Posts: 1247
Location: Shrewsbury, Shropshire, United Kingdom
This has been bugging me, so I looked into it a bit further....

The problem appears to be that in the getTemplate() method in /includes/application.php line 290 onwards:
Code:
      // Get the id of the active menu item
      $menu =& JSite::getMenu();
      $item = $menu->getActive();

      $id = 0;
      if(is_object($item)) { // valid item retrieved
         $id = $item->id;
      }

the $menu->getActive() call is not returning the active menu object, so $id is always set to 0 and you only ever get the default template.

Can anyone else replicate this?

Chris.

_________________
Joomla Leadership Team - Production Working Group
Joomla Documentation Coordinator

Davenport Technology Services (http://davenporttechnology.com)


Top
  E-mail  
 
Posted: Wed Jan 28, 2009 6:01 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 01, 2007 7:35 pm
Posts: 37
I'm having the same issue with 1.5.8. All I get is the default template on all the pages, even though I have assigned my other templates to specific pages (menu assignments)

_________________
There's so much yet I don't know


Top
  E-mail  
 
Posted: Wed Jan 28, 2009 6:45 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Thu Aug 18, 2005 10:41 am
Posts: 15089
Hi Chris,

I got a sample install 1.5.9. as well and briefly tested, but I am able to assign and see ja-purity when I assign this to the extension menu item.

This menu item has an Itemid = 40 and when I echo that $id it does return 40.

Here is my sys info:

Quote:
PHP Built on: Windows NT ROBIN-LAPTOP 6.0 build 6001
Database Version: 5.0.51b-community-nt
Database Collation: utf8_general_ci
PHP Version: 5.2.6
Web Server: Apache/2.2.8 (Win32) PHP/5.2.6
Web Server to PHP interface: apache2handler
Joomla! Version: Joomla! 1.5.9 Production/Stable [ Vatani ] 9-January-2009 23:00 GMT
User Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5


You do not have anything installed, or configured after the install of J!?

_________________
Regards Robin


Top
   
 
Posted: Wed Jan 28, 2009 7:47 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Mar 01, 2007 7:35 pm
Posts: 37
It appears my issue was connected to the TCdropdown extension I had installed, which when I deactivated it my menu assignments worked as they should. So I guess I will have to try another dropdown menu extension which hopefully will not interfere with Joomla! 1.5.8. ( :( Shame --- because I liked how the extension functioned and looked and it was supposed to work with 1.5)

_________________
There's so much yet I don't know


Top
  E-mail  
 
Posted: Wed Jan 28, 2009 9:22 pm 
User avatar
Joomla! Ace
Joomla! Ace
Offline

Joined: Thu Aug 18, 2005 8:57 am
Posts: 1247
Location: Shrewsbury, Shropshire, United Kingdom
Okay, I've found the problem and it was my fault. :-[

I was using a checked out version of 1.5.9, but I had a file in the SVN directory where I was hacking some code ages ago. I completely forgot about it. When I exported a test copy it included the bad file.

All working as expected now. Thanks for checking it out Robin. Sorry to have troubled you.

Regards,
Chris.

_________________
Joomla Leadership Team - Production Working Group
Joomla Documentation Coordinator

Davenport Technology Services (http://davenporttechnology.com)


Top
  E-mail  
 
Posted: Fri Jan 30, 2009 4:52 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Nov 16, 2006 8:08 pm
Posts: 42
I'm having a very similar problem with 1.5.9, although I'm not sure which build I'm using or how to check.

Basically I had switched up the default template a couple times and reverted back to my target template and now get no template on all but the homepage. I even switched off my target template reset menu assignments to all and then reactivated as defualt but I'm still getting this:
http://biosreviva.com/index.php/phyto-news

Any help or feedback would be appreciated.


Top
  E-mail  
 
Posted: Fri Jan 30, 2009 6:20 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Thu Nov 16, 2006 8:08 pm
Posts: 42
I figured out SEF settings caused this. With htaccess activated and the necessary configs set I'm back in business: The following posts helped:
http://forum.joomla.org/viewtopic.php?f=544&t=364097&p=1561628&hilit=seo+settings+htaccess#p1561628
http://forum.joomla.org/viewtopic.php?f=428&t=365212&p=1561800&hilit=seo+settings+htaccess#p1561800
http://forum.joomla.org/viewtopic.php?f=544&t=364097&p=1562047&hilit=seo+settings+htaccess#p1562047


Top
  E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

Quick reply

 



Who is online

Users browsing this forum: No registered users and 2 guests


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 post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group