Giving Menu Proxies Titles

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
ArdisRamey
Propeller Head
Posts: 54
Joined: Wed Sep 05, 2018 9:04 am

Giving Menu Proxies Titles

Post by ArdisRamey »

I've got a menu proxy set up in my master page, and I've found a way to give them titles BUT I'm really displeased by the result I've got so far.

Is there a way to give menu proxies titles?

Right now, I have the menu proxy set up in its own column along the right-hand side of my screen. I've set it to remain in place as the page scrolls, and for the most part it's formatted to my liking. HOWEVER, the impact is ruined by the title, because (as you can see) it doesn't belong to the menu proxy.

Code: Select all

<div>
      <MadCap:bodyProxy />
</div>
<div>
       <hmenu>In this guide</hmenu>
       <MadCap:menuProxy/>
</div>
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Giving Menu Proxies Titles

Post by NorthEast »

ArdisRamey wrote:HOWEVER, the impact is ruined by the title, because (as you can see) it doesn't belong to the menu proxy.
What is actually wrong with your title, and what do you want instead?

Also, what is a <hmenu> tag? Doesn't look like valid HTML.

Code: Select all

       <hmenu>In this guide</hmenu>
ArdisRamey
Propeller Head
Posts: 54
Joined: Wed Sep 05, 2018 9:04 am

Re: Giving Menu Proxies Titles

Post by ArdisRamey »

hmenu is a header style defined in my css specifically for these menu proxies. (Header Menu)

Let it suffice to say that the behavior that I've been able to achieve isn't what I want, and I'd like to know whether there's a way to define a title within (or attached to) the menu proxy itself.

Dave, do you know of a way to give menu proxies titles?
Psider
Propellus Maximus
Posts: 811
Joined: Wed Jul 06, 2011 1:32 am

Re: Giving Menu Proxies Titles

Post by Psider »

If your output is web-based, you could try using the :before pseudo-element.

You'll have to inspect the output to find out what your menu is and make sure you target only the ones you want. It'd be something like :
ul.menu:before {
content: "In this guide";
color: pink;
font-size: 24pt;
font-weight: bold;
}

(this e.g. would affect all menu proxies I believe)

However, I don't know if it would translate to PDF, if that is what you're generating.
NorthEast
Master Propellus Maximus
Posts: 6359
Joined: Mon Mar 05, 2007 8:33 am

Re: Giving Menu Proxies Titles

Post by NorthEast »

ArdisRamey wrote:hmenu is a header style defined in my css specifically for these menu proxies. (Header Menu)
Yeah - my point is that it's not a recognised HTML tag, it's something you've made up yourself. I'd suggest using a valid HTML tag with a class.
ArdisRamey
Propeller Head
Posts: 54
Joined: Wed Sep 05, 2018 9:04 am

Re: Giving Menu Proxies Titles

Post by ArdisRamey »

Thanks, Psider! That looks to be quite helpful and I'll give it a try!
Post Reply