Define different bullet image

e107 CMS » Forums » e107 Themes » Theme Developer Discussion << Previous thread | Next thread >>
fizi
Mar 19 2012, 02:23PM
Registered Member #5852
Joined: Jan 26 2004, 04:43AM
Location: Hungary
Posts: 245
I make the right menus.
I want the all menu with different bullet.
Example: 1. menu blue bullet - 2. menu red bullet - 3. menu green bullet ...etc.
Default bullet:
define('BULLET', "bullet.png");

in theme.php

...but I want with different bullets in different menu.
How define the bullet that appears the different bullets in different menus - in the theme.php

Thanks Help!

Thaks
Go to top
Website
Tgtje
Mar 20 2012, 04:27AM
  • e107 Support Team
Registered Member #30653
Joined: Sep 18 2006, 01:25AM
Location: Born, The Netherlands
Posts: 2466
Just a comment, as i did not experiment with those features.
Maybe it helps or others can share more into this.

Before such things (read somewhere) were done using setstyle.
However that was for menu areas in theme.
As far as i understand that feature was overhauled with linkstyle.
In linkstyle you are able to define a bullet per menu, although this (in my understanding)apllies to an area also.
Looking in wiki this comes closest: [-link-]
Go to top
Website
fizi
Mar 20 2012, 09:54AM
Registered Member #5852
Joined: Jan 26 2004, 04:43AM
Location: Hungary
Posts: 245
You don'"t understud right.
My theme has a right menuarea. The menus (not links - plugin and menus appears on the right menuarea) example: new forum posts, comments, online menu ...etc. The all menus have the default bullet image (bullet.png or bullet2.gif).
I want that the one menu has blue bullet, other green bullet ...etc. Each menu has different bullet image. Not only one bullet image.
I hope the problem clear.
Go to top
Website
Tgtje
Mar 21 2012, 07:31AM
  • e107 Support Team
Registered Member #30653
Joined: Sep 18 2006, 01:25AM
Location: Born, The Netherlands
Posts: 2466
Could be i do not understand, sorry.
i give a try

as for the display of bullets inside each separate menu
this would need templating for each menu.
login menu has such thing, were bullet is different than sitelinks (tree).

It would need developer point of view if an entire override of the use of bullet
can be created, but imo it comes back to individual templating.

do you in any case refer to an image (like bullet or so)used on topbar/caption of each menu, that is done before. (theme info available).

If this is not what you need, let's hope any other posters will bring in some ideas.



Go to top
Website
fizi
Mar 21 2012, 12:38PM
Registered Member #5852
Joined: Jan 26 2004, 04:43AM
Location: Hungary
Posts: 245
Not sitelinks!
The menuarea has some menus. The menu has title and body. Some menu use bullet.png or bullet2.gif. If bullet defined can use defined bullet (example: bullet.png - defined in the theme.php).
So I want the 1. menu (plugin) use blue bullet - 2. menu (plugin) use green bullet ...etc.
Usually the bullet defined in the files of the plugin (menu).
I want define the bullet that the bullet not only one bullet on the all menus on the menuarea.
$bullet


I hope this is clear.
[ Edited Mar 21 2012, 12:38PM ]
Go to top
Website
Moc
Mar 21 2012, 12:57PM
Registered Member #44563
Joined: Apr 12 2008, 03:01AM
Location: The Netherlands
Posts: 4278
I understand what you want, but I just have no clue on to how to do it (and if its even possible). Unfortunately I only have limited knowledge and experience with theming... Hope someone else can answer this for you.
Go to top
Tgtje
Mar 22 2012, 02:23AM
  • e107 Support Team
Registered Member #30653
Joined: Sep 18 2006, 01:25AM
Location: Born, The Netherlands
Posts: 2466
Understood. The normal approach would be individual per menu/plugin templating.

Idea use of SC ? [-link-]
[ Edited Mar 22 2012, 02:24AM ]
Go to top
Website
TobStar
Mar 28 2012, 12:22AM
Registered Member #63040
Joined: Oct 21 2011, 07:05AM
Posts: 23
You can separate this by looking for the Menu Caption per PHP. You can save this captions in an array and if the caption has changed you can set another bullet.

in_array will be your friend
[ Edited Mar 28 2012, 12:22AM ]
Go to top
fizi
Mar 28 2012, 09:53AM
Registered Member #5852
Joined: Jan 26 2004, 04:43AM
Location: Hungary
Posts: 245
Give me an example, please.
Thanks!
Go to top
Website
Moc
Apr 28 2012, 03:55PM
Registered Member #44563
Joined: Apr 12 2008, 03:01AM
Location: The Netherlands
Posts: 4278
Just thought of this, it might work but it is untested.

In your theme.php you define the tablestyle, using an if/else find the different modes for each menu.

For each menu/mode you can define which bullet to use by simply inserting

define("BULLET", "green-bullet.png"); 
for one menu and
define("BULLET", "red-bullet.png"); 
for another menu.

Hope this helps.
Go to top
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System