Giving Menu Proxies Titles

This forum is for all Flare issues related to styles, stylesheets and XML.

Giving Menu Proxies Titles

Postby ArdisRamey on Fri Nov 30, 2018 9:36 am

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>
ArdisRamey
Propeller Head
 
Posts: 49
Joined: Wed Sep 05, 2018 9:04 am

Re: Giving Menu Proxies Titles

Postby Dave Lee on Mon Dec 03, 2018 1:00 am

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>
Dave Lee
Master Propellus Maximus
 
Posts: 5400
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Giving Menu Proxies Titles

Postby ArdisRamey on Mon Dec 03, 2018 9:01 am

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?
ArdisRamey
Propeller Head
 
Posts: 49
Joined: Wed Sep 05, 2018 9:04 am

Re: Giving Menu Proxies Titles

Postby Psider on Mon Dec 03, 2018 7:06 pm

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.
Psider
Sr. Propeller Head
 
Posts: 480
Joined: Wed Jul 06, 2011 1:32 am

Re: Giving Menu Proxies Titles

Postby Dave Lee on Tue Dec 04, 2018 3:11 am

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.
Dave Lee
Master Propellus Maximus
 
Posts: 5400
Joined: Mon Mar 05, 2007 8:33 am
Location: UK

Re: Giving Menu Proxies Titles

Postby ArdisRamey on Tue Dec 04, 2018 8:30 am

Thanks, Psider! That looks to be quite helpful and I'll give it a try!
ArdisRamey
Propeller Head
 
Posts: 49
Joined: Wed Sep 05, 2018 9:04 am


Return to Styles, Stylesheets and XML

Who is online

Users browsing this forum: No registered users and 10 guests

cron