58 Posts
rasch-dmd
7 years ago
6
Topic

Hello Community,

how can I render the Menu item in a List & Search Menu.

To clarify that: 

When I make a menu with joomla, it is possible to render a image within the menu item. See Attachment.

But what I have to to, to render it in a List & Search Menu.

Thanx for your help

RaSchDMD

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
0
Level 1

Are you talking about Manu Items App or where you would need those? 

Probably you would need to add a madia field for it with the right storage like JSON - Menu-params[menu_image]

58 Posts
rasch-dmd
7 years ago
0
Level 1

Hi Klas,

first I wanna say thanx for you great work for Seblod.

It is not about the app. It is about the ability to render images in menu items like my project 

http://kirchenkreis-hanau.de/

This is build with selbod. There I render the categories with joomla blog. And there comes the image with the menu item. I push that in the back container with jquery. So I have a indivdual image for every menu item.

How can I get that, when I call a Seblod List & Search menu. You see that I have the option to insert a image (see attachment). How can I render that image?

Thanx for your help

RaSchDMD

58 Posts
rasch-dmd
7 years ago
3
Level 1

The solution is to put this in components > com_cck > views > list > tmpl > default.php:


echo '<img src="' . $this->params->get( 'menu_image' ) . '">';

Thanx Klas

4229 Posts
Kadministrator
7 years ago
2
Level 2

I suggest you rather use template override than to change core files as changes get overwritten by upgrades.

58 Posts
rasch-dmd
7 years ago
1
Level 3

Hey Klas,

Thanx for the answere. How I have to override the default.php?

Is it this: templates/name_of_template/html/com_cck/tmp/default.php

Thanx in advance.

RaSchDMD

58 Posts
rasch-dmd
7 years ago
0
Level 4

Oh, I got it.

Solution: templates/name_of_template/html/com_cck/list/default.php

Thanx

Get a VIP membership