Lunes, 01 Septiembre 2014 18:31
beggarly

Plain (not a link) title in html map

Suggest/Comment/Post new extensions for Xmap!

Plain (not a link) title in html map

Postby bojanpopic » Tue Jul 27, 2010 3:20 pm

Hi!

I'm currently developing my first plugin for Xmap and I have some questions.

I managed to get categories and items that I wanted, but they all are printed in one unordered list just below name of the menu. I have structure in HTML map like this:
Code: Select all
MAIN MENU
Menu item 1
- category1
- category2
- category3
- item1
- item2
- item3
- item4
- item5
Menu item 2
Menu item 3


What I want to archive is that I get this structure in HTML without affecting XML map

Code: Select all
MAIN MENU
Menu item 1
Categories
    - category1
    - category2
    - category3
Items
    - item1
    - item2
    - item3
    - item4
    - item5
Menu item 2
Menu item 3


So basically, I need command from plugin to tell xmap to print title that is not link, an that it's not needed to be included in XML map.
I need this because HTML map is for humans and should be well formated.

I know I can archive this with core hack, but I want to know if it's possible right now, since I really want to avoid core hack.

Thank you for your help.
bojanpopic
Fresh Boarder
Fresh Boarder
 
Posts: 19
Joined: Wed Jul 21, 2010 12:04 am

Re: Plain (not a link) title in html map

Postby bojanpopic » Fri Jul 30, 2010 4:21 pm

Code: Select all
If ($xmap->view == 'html') {
  echo ("title");
}
bojanpopic
Fresh Boarder
Fresh Boarder
 
Posts: 19
Joined: Wed Jul 21, 2010 12:04 am


Return to Plugins



Who is online

Users browsing this forum: No registered users and 2 guests

cron