MDN

Go Back   Mambo - Forums Closed for posting > Mambo 4.5.5 - Stable > General Questions

Reply
 
Thread Tools Search this Thread Display Modes
Old November 8th, 2004, 08:59   #1
bingster
 
bingster's Avatar
 
Join Date: Nov 2003
Location: Denmark
Posts: 309
bingster is on a distinguished road
Default a bug maybe ? Assigning templates

hi

I am trying to assign a template to a link item ( not component ) but it dosent allow that. The menu dosent even appear in the assign window. Assigning to components works fine.

Any suggestions
Mike
__________________
Webdesign / templater / pixelpusher
bingster is offline   Reply With Quote
Old November 8th, 2004, 12:03   #2
bdanielsson
 
Join Date: Aug 2004
Posts: 99
bdanielsson is on a distinguished road
Default

I'm also having this problem assigning templates:

http://forum.mamboserver.com/showthr...098#post107098

:sad:
bdanielsson is offline   Reply With Quote
Old November 13th, 2004, 13:15   #3
bdanielsson
 
Join Date: Aug 2004
Posts: 99
bdanielsson is on a distinguished road
Default

No one?
bdanielsson is offline   Reply With Quote
Old November 16th, 2004, 06:14   #4
bingster
 
bingster's Avatar
 
Join Date: Nov 2003
Location: Denmark
Posts: 309
bingster is on a distinguished road
Default

could anyone from developer team confirm this or not........kinda important
__________________
Webdesign / templater / pixelpusher
bingster is offline   Reply With Quote
Old November 16th, 2004, 07:31   #5
walb
 
walb's Avatar
 
Join Date: Aug 2004
Location: Hack City, Earth.
Posts: 1,062
walb is on a distinguished road
Default

From CP (4.5.1a)
Site-->Template Manager-->Site Templates
You should see all your installed templates.
Tick one for assignment and hit the Assign button.
You should see a list of your menu items and make a link to that.

If this is not displayed on your screen, than there is maybe a problem with your Mambo distribution.

Regards.
walb is offline   Reply With Quote
Old November 16th, 2004, 07:34   #6
bingster
 
bingster's Avatar
 
Join Date: Nov 2003
Location: Denmark
Posts: 309
bingster is on a distinguished road
Default

yes iknow walb...but thats not the problem ;O)....components work fine but not with links....the same as my other installations.
__________________
Webdesign / templater / pixelpusher
bingster is offline   Reply With Quote
Old November 16th, 2004, 07:48   #7
walb
 
walb's Avatar
 
Join Date: Aug 2004
Location: Hack City, Earth.
Posts: 1,062
walb is on a distinguished road
Default

Maybe I don't understand your problem.
Could you be somewhat more explicit?
walb is offline   Reply With Quote
Old November 16th, 2004, 08:50   #8
jomaco1
 
jomaco1's Avatar
 
Join Date: Oct 2003
Location: Muskegon, MI
Posts: 1,913
jomaco1 is on a distinguished road
Default

Now I'm not a coder, but from what I can gather, the problem is that a url link does not have either an itemid or a sectionid because it is not published as content. Therefore, it won't show up in the module editor pages list either.

Maybe someday we will be able to assign a menu item to a section the same way we can assign it to a parent item, so it will pick up the formatting for whatevever section we want. In the meantime, url menu items will use the default template.
__________________
Mark M. Joyce
http://forum.mambo-foundation.org
jomaco1 is offline   Reply With Quote
Old November 16th, 2004, 11:40   #9
Saka
 
Saka's Avatar
 
Join Date: Oct 2003
Location: Sweden
Posts: 760
Saka is on a distinguished road
Default

You can't assign a template to a link.
You can only assign a template to an item from menu that has Itemid on it's own.

The URL links usualy inherit the itemid of the item they point to. Or they just point to external site in which case there is no point in assigning a template to it.
__________________
Emir Sakic
http://www.sakic.net
Saka is offline   Reply With Quote
Old November 16th, 2004, 11:55   #10
bingster
 
bingster's Avatar
 
Join Date: Nov 2003
Location: Denmark
Posts: 309
bingster is on a distinguished road
Default

ok thanks guys....thought i was going crazy here. The reason why i would assign a template to a link is that in some components you dont assign direktly to the component itself, but for a link composed from the component.

cheers
Mike
__________________
Webdesign / templater / pixelpusher
bingster is offline   Reply With Quote
Old November 16th, 2004, 19:38   #11
absalom
 
Posts: n/a
Default

Has the template change via URL been removed in 4.5.1?

It's just you could "reskin" your sites through URL in 4.5..
  Reply With Quote
Old November 17th, 2004, 08:16   #12
stingrey
 
Join Date: Oct 2003
Location: Marikina, Manila, Philippines
Posts: 5,153
stingrey is on a distinguished road
Default

Quote:
ok thanks guys....thought i was going crazy here. The reason why i would assign a template to a link is that in some components you dont assign direktly to the component itself, but for a link composed from the component.
The ability to assign modules & templates to 'internal links' will be possible in the next release



Quote:
Has the template change via URL been removed in 4.5.1?

It's just you could "reskin" your sites through URL in 4.5..
Nope still there and it still works
__________________
All my posts are copyright © Rey Gigataras [aka stingrey] and cannot be be reproduced without permission

Former Mambo Core Team Member July 2004 - August 2005
stingrey is offline   Reply With Quote
Old November 23rd, 2004, 10:54   #13
Raptus
 
Join Date: Apr 2004
Posts: 5
Raptus is on a distinguished road
Default Simple workaround

I've found quite a simple way of assigning templates to selected categories AND sections, working around mambos bug that shows only the categories of the first section:

In your PhpMyAdmin go to the table mos_templates_menu. You'll see the templates you've assigned so far, being applied to specific itemid's. You just have to insert a row containing the name of the template in the "template" field, as well as the itemid number in the "menuid" field. You'll find the itemid by checking the link to the specific section or category you want to assign a template to.
Obs.: You still have to assign the template to the categories separately, it doesn't inherit the template of its section.

I guess (read: hope) this feature will be officially corrected in the next release.
Raptus is offline   Reply With Quote
Old April 15th, 2005, 20:37   #14
alienbee
 
alienbee's Avatar
 
Join Date: Apr 2005
Posts: 2
alienbee is on a distinguished road
Talking YEa! A clear answaer to this problem!!!

you rock Raptus!!!!

The MyPHP thing works like a charm!

it fixes 3 hours of searching to fix the no template for "Link Url" Thingo
wheew..

nice !
very Nice!
alienbee is offline   Reply With Quote
Old April 19th, 2005, 07:27   #15
ghys
 
Join Date: Mar 2005
Location: Sherbrooke, Qc, Canada
Posts: 8
ghys is on a distinguished road
Default different template to sub-menu item

I am still wondering how to select a different template for a sub menu item.
ie:
mainmenu item = cars
sub menu 1= toyota
sub menu 2= honda
sub menu 3=ford

main menu would be like a seperator or pointer
sub1 = would change color template to green
sub2 = would change color template to red
sub3 = would change color template to blue

is this possible.

i remember in old Mambo versions we could select in the"link" the template assigned to it.. is it still working and how?

thanks for all information
ghys is offline   Reply With Quote
Old April 19th, 2005, 16:52   #16
taylorutah
 
Join Date: Jan 2005
Posts: 99
taylorutah is on a distinguished road
Default

Bump

same question as above!
__________________
taylorutah

inyourgrill
taylorutah is offline   Reply With Quote
Old May 1st, 2005, 09:21   #17
imsleepy
 
Join Date: Jul 2004
Posts: 354
imsleepy is on a distinguished road
Default

I am using phpShop on a site and only the main component is listed when assigning templates. I have created my own menu for phpShop rather than using the shop menu module. I thought this might allow me to assign a different template to different areas of the store, but the option to assign templates to URL link is not available. I am using the latest version of Mambo. I have assigned a template for the main shop component, but really need the ability to assign a different template to other areas via the URL link. Is there any way to do this?
imsleepy is offline   Reply With Quote
Old June 7th, 2005, 14:52   #18
imsleepy
 
Join Date: Jul 2004
Posts: 354
imsleepy is on a distinguished road
Default

Still wondering... anyone?
imsleepy is offline   Reply With Quote
Old June 8th, 2005, 00:04   #19
spoco2
 
Join Date: May 2004
Posts: 26
spoco2 is on a distinguished road
Default

I'm having the exact same issue...

I have a number of menu items, most of which are links to components, however two of them are links to components with parameters passed to display certain things (using gallery if you wanted to know!). As such these two menu items are just URL Links, and when trying to Assign a template to those menu items they don't show up, only the link to the main gallery (which is purely a component link).

I'm thinking this would be problematic at the best of times at present, due to the way the templates are chosen? Or is there a way to do this?
spoco2 is offline   Reply With Quote
Old June 8th, 2005, 04:38   #20
stingrey
 
Join Date: Oct 2003
Location: Marikina, Manila, Philippines
Posts: 5,153
stingrey is on a distinguished road
Default

The matter is due to the Itemid system of Mambo.

When you create a Link - URL mambo does not assign it a uniquie Itemid.
And a uniquie Itemid is needed to power everything from template assigment, to module assigment, access control the pathway etc.

Mambo does not assign it an Itemid because it does not know in what cases it should.
For example if you are using Mambo for an external link, you obviously dont want it assigned an Itemid.
Example:
www.mamboserver.com
cant be
www.mamboserver.com&Itemid=24

Lets say you linking to an internal Mambo link which already has an itemid
Example:
index.php?option=com_content&task=view&id=5&Itemid =6
cant be
index.php?option=com_content&task=view&id=5&Itemid =6&Itemid=24

So the problem is to find an easy way to tell mambo that this particular Link - Url should be assigned an Itemid. At the moment the most likelyworkable solution is via a param for the menu item
__________________
All my posts are copyright © Rey Gigataras [aka stingrey] and cannot be be reproduced without permission

Former Mambo Core Team Member July 2004 - August 2005
stingrey is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -7. The time now is 09:20.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.