Members: 16,996
Threads: 38,831
Posts: 159,349
Online: 31

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Templates > Template Discussions

Reply
 
LinkBack Thread Tools Display Modes
Old 08.04.2005, 04:38   #1 (permalink)
Junior Mamber
 
Join Date: May 2004
Posts: 25
demito is on a distinguished road
Question Problems with multiple template features

Hi all, i've a little problems with multiple template use ... since the multiple template features come with the latest mambo development, i've little bit disturbing problems like this ...

Im using the multiple template features in my web development. So i make the two different template, One for my Front page (Let say it Template A), one for content page (Template B). So, in the template manager, i set the Template B for the default template, and template A assign to the Home.
And i hope if the user visit my web, they will see the template A for the first, and if they click the items on the front page they will be see template B.

Then, I'm place modules at front page, that containing last items, for example, in this case im use the LatestPhpshop products module.

When i click the last item from this module, i want the site template changing to the template B, but what happen?! My template A never not change to Template B and The details of LatestPhpShop Product appears at mosMainBody section at my Template A and it breaks my template layout

I've the same case with zoom module..
Any body can help me with this little bit confusing problems?...
demito is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 08.04.2005, 09:00   #2 (permalink)
Baby Mamber
 
rabencor's Avatar
 
Join Date: Aug 2004
Posts: 16
rabencor is on a distinguished road
Default Re: Problems with multiple template features

Hello demito,

Well, I can tell you what I know, perhaps other member here would have more information.

It's a great feature what Mambo implements here, a system to tweak our Mambo site with whole templates.
As far as I know you can assign different templates to your content by linkinig the template with the "menu item" that is linking to the content you what to tweak.

Perhaps the problem is that as the items fo that modules aren't a Mambo menu item, the template change couldn't be done. You will need to find another way.

Don't know if I explained well

Anyway, everybody is welcome to discuss this issue.

Thanks.
rabencor is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.04.2005, 03:49   #3 (permalink)
Junior Mamber
 
Join Date: May 2004
Posts: 25
demito is on a distinguished road
Default Re: Problems with multiple template features

yeah rabencor, i think the same thing but i dont have any supposed to do..
So any body experienced with the problems?
demito is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.04.2005, 09:06   #4 (permalink)
Baby Mamber
 
Join Date: Nov 2004
Posts: 6
vindsnel is on a distinguished road
Default Re: Problems with multiple template features

I designed a site www.vindsnel.nl with 20 different templates is this what you mean by changing templates when using a different button?

If this is your problem i will inform on this form how I did this (with help from other forum members)

regard,


Wil
vindsnel is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10.04.2005, 17:55   #5 (permalink)
Expert Mamber
 
quiquedcode's Avatar
 
Join Date: Jun 2004
Location: San Juan, Argentina
Posts: 306
quiquedcode will become famous soon enough
Send a message via ICQ to quiquedcode Send a message via MSN to quiquedcode Send a message via Yahoo to quiquedcode
Default Re: Problems with multiple template features

well...
i have the same problem with multiple templates assignment in mambo.
I create a new menu item... then i go site templates, and assign 2nd template to this menu item, but then, nothing happens when i click that menu item in homepage.

i use 4.5.1a coz it is the only one which has spanish backend, so i think this is the cause of my problem... am i wrong ?

=)
__________________
Enrique Becerra
MSN: qbecerra @ hotmail.com
ICQ: 18048153
www.beza.com.ar

"If you pay peanuts, you will get monkeys!" - ChicoMendez
quiquedcode is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.04.2005, 04:34   #6 (permalink)
Junior Mamber
 
Join Date: May 2004
Posts: 25
demito is on a distinguished road
Smile Re: Problems with multiple template features

Quote:
Originally Posted by vindsnel
I designed a site www.vindsnel.nl with 20 different templates is this what you mean by changing templates when using a different button?
No. The different button is working when the link of the button is one of main menu item.
I mean some items module like latest product at phpshop module. Theres an linking thumnail image (with link address : http://www.mysite.com/index.php?page...pshop&Itemid=1) on that module, and iwant the template change when this thumnail cliked. But the template not change, and the detail of my latest product showed at the previous template. So if i place a little space for my mosmainbody area at my frontpage template, the details of product will break my template. Im use the frontpage template for latest items for my web, and another template with larger mosmainbody area for detail of all my clicked item.

actually, i've solve the problem with a little hack with index.php.
hope it help with another mambers :

just add this 2 lines of codes at line number 99
PHP Code:
if ($Itemid && ($option == "com_phpshop")) {
    
$Itemid 2;

after

PHP Code:
/** do we have a valid Itemid yet?? */
if ( $Itemid === null ) {
    
/** Nope, just use the homepage then. */
    
$query "SELECT id"
    
"\n FROM #__menu"
    
"\n WHERE menutype='mainmenu'"
    
"\n AND published='1'"
    
"\n ORDER BY parent, ordering"
    
"\n LIMIT 1"
    
;
    
$database->setQuery$query );
    
$Itemid $database->loadResult();


dont forget to replce the com_phpshop with your component as you wish

btw, thx for all
demito is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.12.2005, 13:55   #7 (permalink)
Baby Mamber
 
Join Date: Dec 2005
Posts: 1
sydoux is on a distinguished road
Default Re: Problems with multiple template features

I'm using Joomla. But as you know, it's the same as mambo. I think if you want to use different template for the pages, you can do so and you can use and many template as you want !! what you have to do is simply this :

- In admin panel, go to Template Manager
- Select the template you want to use for a page and click on Assign at the top right of the Admin panel
- Then you will see all content that can be shown and if you want to use the same template for all you pages, just select all the content except Mainmenu | Home

With tihs, you can use as many template as you want. just select the template and assign the page or content you want to display in.

Try this and tell me if it's ok for you.

PS : Sorry for my english but I'm french so try to understand if it's a little bad.

Thanks
---------------------------------------------
edhenrico@hotmail.com
sydoux is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with the silver template raggoz Template Discussions 3 14.04.2005 22:45
Problems adding Mambo code to custom template Malfunction Template Discussions 3 25.02.2005 16:56
Template problems Jelte Mambo 4.5.1 'How Do I' Questions 9 25.01.2005 08:48
Template Manager Problems in 4.5.1 - The Fix. unity Mambo 4.5.1 Bugs 2 27.08.2004 02:53
Greysignal template problems Kumagoro Template Discussions 13 05.06.2004 17:19


All times are GMT +2. The time now is 01:37.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.