Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 19

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 > Mambo 4.5.1 > Mambo 4.5.1 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 07.03.2005, 22:48   #1 (permalink)
zak
Junior Mamber
 
Join Date: Jul 2004
Posts: 26
zak is on a distinguished road
Exclamation overide default template ? -- urgent help needed by experts please !

I need to overide the main default template because I'm using 6 very different templates.
My problem is that when I'm, say, in the orange template and I click on a link within the body to a static page, the page reloads with my blue default template and the orange template does not stay.
This is because the typed content page I'm linking to is not attached to a menu.
As of yet I can see no way for mambo to assign templates to typed content pages.

After looking hard around, I haven't found a solution.

Then I thought I had a cunning plan.
I was thinking that if I added the old template switch system by Lazarus
Different frontpage template
I could fool my orange template into thinking it was default.
So;
I made my orange template index2.php and
I created index.php and put this in it.

<?php
defined( '_VALID_MOS' ) or die( 'Oops... Sorry, wrong page.' );

switch ($option) {
case 'com_typedcontent': //show my orange template
include_once ('index2.php');
break;

default: // DEFAULT FOR ALL
include_once ('index2.php'); //show my orange template !
break;
}
?>


This seemed to work but this worked too well---when i click on a menu item it's not changing the template according to how i assigned things in the admin.

I really need each of my templates to have custom defaults.
each of my templates(or main areas) has 40 or more typed content pages each ! they cant just all pull up the main default.
zak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 07.03.2005, 23:00   #2 (permalink)
Expert Mamber
 
anadantra's Avatar
 
Join Date: Nov 2004
Posts: 328
anadantra will become famous soon enough
Default Re: overide default template ? -- urgent help needed by experts please !

Can you post the website to have a look?

S.
anadantra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.03.2005, 23:23   #3 (permalink)
zak
Junior Mamber
 
Join Date: Jul 2004
Posts: 26
zak is on a distinguished road
Default Re: overide default template ? -- urgent help neede please !

thanks anadantra

http://premiere.imhosted.com/~flad/

here is a good example

http://premiere.imhosted.com/~flad/content/view/22/57/

you'll need to see it in explorer to get an idea of how the templates work--there are jacvascript problems in forefox at the moment
zak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.03.2005, 23:50   #4 (permalink)
Expert Mamber
 
anadantra's Avatar
 
Join Date: Nov 2004
Posts: 328
anadantra will become famous soon enough
Default Re: overide default template ? -- urgent help neede please !

It looks like you have only one template working, is that the problem?
anadantra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 07.03.2005, 23:58   #5 (permalink)
zak
Junior Mamber
 
Join Date: Jul 2004
Posts: 26
zak is on a distinguished road
Default Re: overide default template ? -- urgent help neede please !

No, there are 6---1 for each photo + default
if you view with IE-explorer you'll see that 1 photo stays switched on when you are in that area/template.
I set this x-tra template up so you can see what I meant.
Please follow the link below.
Now when you click on the links--"how to apply"--these go to static typed content pages that are not linked to a menu...and the template is overtaken by the default.

http://premiere.imhosted.com/~flad/i...d=22&Itemid=57
zak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.03.2005, 00:27   #6 (permalink)
Expert Mamber
 
anadantra's Avatar
 
Join Date: Nov 2004
Posts: 328
anadantra will become famous soon enough
Default Re: overide default template ? -- urgent help neede please !

I see what you mean...

Ok, I'm not a coder. So what I would do is to create a new menu, put all my static content there and never publish it (or publish it in user25...). With that you will have the chance to link your template to the static content too.

Did you hardcoded all the java behaviors in the template? The site looks very nice.

S.

Last edited by anadantra; 08.03.2005 at 01:42.
anadantra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.03.2005, 13:40   #7 (permalink)
zak
Junior Mamber
 
Join Date: Jul 2004
Posts: 26
zak is on a distinguished road
Default Re: overide default template ? -- urgent help neede please !

Thanks for the help and the kind words,
but damn, i was really hoping that that wasn't going to be the solution !
I have approx 80 odd typed pages and they are dispersed throughout the site.
I cannot imagine the admin coping with all of this fuss.
I think a good hack for 'assigning' templates to typed content would be to have a dropdown selector in the parameters similar to the 'attach to menu' system that currently exists.
The dropdown selector could simply be to attach it to 'an invisible menu' if that was the easiest to code around...

Can anyone out there do this, see that it's worth it perhaps?!

Of course this is already possible, I'll have to create new menus now, call them after the templates, and tell the admin to attach any typed page he/she creates to the correct 'menu'.
But this is going to confuse the admins---they need ' assign to template_____'

This current template system is over complex and yet way too simple, I can't believe this situation with typed content pages has not been addessed yet.

Not every page in a site should need to be attached to a menu.
With Mambo it currently does if you want any chance at all of it following your templates/design...and it gets worse, try making one of this typed pages a pop-up....
zak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 08.03.2005, 15:31   #8 (permalink)
Expert Mamber
 
anadantra's Avatar
 
Join Date: Nov 2004
Posts: 328
anadantra will become famous soon enough
Default Re: overide default template ? -- urgent help neede please !

Well, there might be other way... but you have gone so far with the template thing that I edited my message and took it out. You can try transforming your pictures in modules. Then when you call the static content be sure you are adding the id of the module too.

There is a post of a couple of days a go trying to assign modules to pages that are not in menues, and he solved it using the way Mambo calls the pages.

But anyway, I don't really know if that solution will be easier.

Good luck,
S.

How did you do the scrolling content?
anadantra is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.03.2005, 16:51   #9 (permalink)
zak
Junior Mamber
 
Join Date: Jul 2004
Posts: 26
zak is on a distinguished road
Default Re: overide default template ? -- urgent help neede please !

there is lots of interesting stuff over at http://www.dynamicdrive.com/
I have to find new solution for the scroller though it's no good in firefox
zak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 09.03.2005, 17:19   #10 (permalink)
Expert Mamber
 
anadantra's Avatar
 
Join Date: Nov 2004
Posts: 328
anadantra will become famous soon enough
Default Re: overide default template ? -- urgent help neede please !

Thanks!!
anadantra 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
problema nell'area amministratore wiko85 Problematiche generali 13 15.01.2008 18:54
pollXT enjoy777 Komponenty i moduly 7 07.12.2004 00:03
registrazione utente nel sito theprincy Componenti 6 12.11.2004 22:16
MOSHost Pitufo Component 'How Do I' Questions 1 26.10.2004 04:21
Fehler beim Installieren verschiedener komponenten twotwenty6 Komponenten 2 21.07.2004 22:57


All times are GMT +2. The time now is 23:40.

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.