(no subject)

Hi everyone!

First of all i World like to show my first huge page made on Radiant:

http://www.connaxis.com/

Any tip, critic or comment will be very welcome.

And last, but not least, I would like to ask about navigation tag, is
there
any way to make sub menu navigation?

What I mean is illustrated in the following mock ups:

Case1 (Main Menu 1)

  • Main Menu 1 (ul li) <- Here (blue)
    • Sub Menu 1 (ul li ul li) (gray)
    • Sub Menu 2 (ul li ul li) (gray)
    • Sub Menu 3 (ul li ul li) (gray)
  • Main Menu 2 (ul li) (gray)
  • Main Menu 3 (ul li) (gray)
  • Main Menu 4 (ul li) (gray)

Case2 (Sub Menu 1)

  • Main Menu 1 (ul li) (blue)
    • Sub Menu 1 (ul li ul li) <- Here (blue)
    • Sub Menu 2 (ul li ul li) (gray)
    • Sub Menu 3 (ul li ul li) (gray)
  • Main Menu 2 (ul li) (gray)
  • Main Menu 3 (ul li) (gray)
  • Main Menu 4 (ul li) (gray)

Case3 (Sub Menu 2)

  • Main Menu 1 (ul li) (blue)
    • Sub Menu 1 (ul li ul li) (gray)
    • Sub Menu 2 (ul li ul li) <- Here (blue)
    • Sub Menu 3 (ul li ul li) (gray)
  • Main Menu 2 (ul li) (gray)
  • Main Menu 3 (ul li) (gray)
  • Main Menu 4 (ul li) (gray)

Case3 (Main Menu 2)

  • Main Menu 1 (ul li) (gray)
  • Main Menu 2 (ul li) <- Here (blue)
  • Main Menu 3 (ul li) (gray)
  • Main Menu 4 (ul li) (gray)

I don’t know if something like that is possible to do using standard
tags.
I was reading previous posts, and I have a stupid question (where is
page
page_context.rb)

Greetings,

MQ

Matias,

Congratulations on your site!

The easiest way to do that navigation would be to roll your own. There
are many tags available that can be put together to do what you like.
Also, Radius tags are fairly straightforward to write if you’re into
that.

Sean

Dear Sean,

Thank you very much. Is very kind of you, I know I’m not well enough on
Radiant, but is something that I would like to know.

I am using the gem version of Radiant 0.6.3 and I looked for
page_context.rb, to see if I could edit some tags, but I didn’t find the
file on my installation folder.

May be I used a installation option that hides that files?

Could anybody helpme on that?

Best Regards,

MQ

As Sean said, the tags are defined in the gem. Modifying them there is
utterly ugly. The way to go is to define an extension where you can
override the standard tags or (better) define your own.

You can use the backdoor extension to define new tags easily inside

Radiant without resorting to a custom extension. Look for backdoor’s
<r:tag/> tag.

/AITOR

Matias,

It’s in the gem, but you’ll find tag definitions in standard_tags.rb, no
longer in page_context.rb.

Sean

Thank you very much Sean and Aitor.

I will try to make it that way.

MQ

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs