PDA

View Full Version : Weblinks with banners


philippschreiber
04.07.2004, 20:04
Hi everyone!

I'm creating a website right now using mambo 4.5. i'm missing a feature in the weblinks component: i don't wanna have a "normal" linklist so i'm missing a feature to add graphics like banners. is this still in development? and if not are there any people who are interested in this?

cheers
philipp schreiber

philippschreiber
06.07.2004, 13:15
ok! i've just made the changes in the weblinks component. now i can add an image to each link. now i want to make an installing component an i've a problem with the install xml-file in this section:

<menu>Weblinks Advanced</menu>
<submenu>
<menu>Weblink Items</menu>
<menu option="categories">Weblink Categories</menu>

</submenu>

what i want is the normal weblins menu entries. but i don't know how.

i hope someone may help me with these entries...

philippschreiber
06.07.2004, 22:24
okay! i've installed the "normal" weblinks-component AND mine, the menu section looks in the source like this:

<snip>
['<img src="../includes/js/ThemeOffice/component.png" />','Web Links',null,null,'Manage Weblinks',
['<img src="../includes/js/ThemeOffice/edit.png" />','Weblink Items','index2.php?option=com_weblinks',null,'View existing weblinks'],
['<img src="../includes/js/ThemeOffice/categories.png" />','Weblink Categories','index2.php?option=categories&section=com_weblinks',null,'Manage weblink categories'],
],
['<img src="../includes/js/ThemeOffice/component.png" />','Weblinks Advanced','index2.php?option=com_weblinks_adv',nul l,'Weblinks Advanced',
['<img src="../includes/js/ThemeOffice/component.png" />','Weblink Items','index2.php?option=com_weblinks_adv',null,' Weblink Items'],
['<img src="../includes/js/ThemeOffice/component.png" />','Weblink Categories','index2.php?option=com_weblinks_adv',n ull,'Weblink Categories'],
],
</snip>

The lower part is mine. what have i to do that mambo creates a link to 'index2.php?option=categories&section=com_weblinks_adv' while installing the component?

Please help!

Raydian
06.07.2004, 22:37
If I understand your question?... I think you need something like this in your XML file.

<administration>
<menu>Weblinks Advanced</menu>
<submenu>
<menu act="manage">Manage Weblinks</menu>
</submenu>
<files>
<filename>....</filename>
<filename>....</filename>
</files>
</administration>

philippschreiber
07.07.2004, 07:12
i've this in my xml-file. the problem is how to give mambo 2 parameters by the menu link:

option=categories

section=com_weblinks_adv

any suggestions how to write this?

Raydian
07.07.2004, 07:33
Maybe if I new why you need this to be done manually I could be of more help.

By default, you should be able to load that component within the menu area of admin. You know...by creating a new menu item (component, url, section, etc.).

But...something like this??

http://yoursite.com/index.php?option=com_weblinks_adv&task=categories

NOTE: Mambo has an internal parameter that it looks for when you link from item to item called 'Itemid'. A Warning Message will show (if warning level is on) if not used. This represents the menu ID of that item.

philippschreiber
07.07.2004, 09:58
the problem is the menu in the backend (see attached image)...

the xml-install-file of the component creates the links in this menu. but i don't know how to create a link like in the normal weblinks-component (weblink categories)

Raydian
07.07.2004, 17:54
In the backend of Mambo you would use the act="whatever_you_put_here" to access that area.

So, if you put act="manage" in your xml, then you can access the management area by using "manage" as the parameter.

Is this closer to what you're looking for?


It may be easier to help you if I get a copy of the script, this way I can see were you are at. That's up to you.

philippschreiber
08.07.2004, 13:52
thats it! but how to write something like that:

<menu option="categories" section="com_weblinks_adv">Weblink Categories</menu>

the problem is that there are TWO parameters...

pocketom
06.10.2004, 01:30
How did you modify the weblinks component? Can you please post the modified files here?


I really would like to add images to my links too! :)