0
Welcome Guest! Login
0 items Join Now

Afterburner with RokNavMenu and menu subtext

    • Revive's Avatar
    • Revive
    • Sr. Rocketeer
    • Posts: 172
    • Thanks: 0

    Afterburner with RokNavMenu and menu subtext

    Posted 15 years 3 months ago
    • I have searched both this and the RokNavMenu forums but cannot find anything relating to using the RokNavMenu's subtext feature on the Afterburner template. We have already made some customizations to the template to allow for multiple module positions within the showcase, etc.. but cannot find info on how to enable or configure the subtext for the RokNavMenu. All plugins for the menu are installed and enabled.. and no parameters in the menu admin show for adding subtext..

      any thoughts? Is this possible?
      Thanks!
    • maxkash's Avatar
    • maxkash
    • Newbie
    • Posts: 3
    • Thanks: 0

    Re: Afterburner with RokNavMenu and menu subtext

    Posted 15 years 3 months ago
    • I would love to see a response to this. This is the main reason I paid for module subscription and would like to see the response
    • maxkash's Avatar
    • maxkash
    • Newbie
    • Posts: 3
    • Thanks: 0

    Re: Afterburner with RokNavMenu and menu subtext

    Posted 15 years 3 months ago
    • Not wanting to wait for a response from the moderators, I've found one solution for this.

      This is based on a joomla.org forum post: forum.joomla.org/viewtopic.php?f=431&p=1990059

      in the layout.php for your theme, modify this line:
      <span><?php echo $item->title;?></span>

      Replace with this:
      <?php $split = explode('||', $item->title, 2);
      $title= $split[0]."<em>".$split[1]."</em>"; ?>
      <span><?php echo $title; ?></span>

      Then, in the menu item title, just add a double pipe ('||') between the title and subtitle.

      Obviously, you'd need to style for that contained <em> within the stylesheet.
    • Revive's Avatar
    • Revive
    • Sr. Rocketeer
    • Posts: 172
    • Thanks: 0

    Re: Afterburner with RokNavMenu and menu subtext

    Posted 15 years 3 months ago
    • Nice.. good find, and thanks for coming back here to post it for us all !
      I'd since moved away from the Afterburner theme for this particular project,. but now that I know it's a possibility,.. I'll use it, with this mod, for another project :D

      Thanks!
    • Kat05's Avatar
    • Kat05
    • Preeminent Rocketeer
    • Posts: 25898
    • Thanks: 334

    Re: Afterburner with RokNavMenu and menu subtext

    Posted 15 years 3 months ago
    • thanks for the link maxcash! :D
    • Kat05 / QA Lead & Support / Germany
    • maxkash's Avatar
    • maxkash
    • Newbie
    • Posts: 3
    • Thanks: 0

    Re: Afterburner with RokNavMenu and menu subtext

    Posted 15 years 3 months ago
    • So you know, this isn't an exact replication of what other RT templates do. They will have a subtitle field in the menu item and add the class "subtitle" to the container li. Replicating the look you see on these other themes will take a fair bit of CSS work.
    • Revive's Avatar
    • Revive
    • Sr. Rocketeer
    • Posts: 172
    • Thanks: 0

    Re: Afterburner with RokNavMenu and menu subtext

    Posted 15 years 3 months ago
    • Is close enough for government work ;) (eg. if it works, and this is the best solution at hand, roll with it)
  • Re: Afterburner with RokNavMenu and menu subtext

    Posted 15 years 2 months ago
    • maxkash wrote:
      Not wanting to wait for a response from the moderators, I've found one solution for this.

      This is based on a joomla.org forum post: forum.joomla.org/viewtopic.php?f=431&p=1990059

      in the layout.php for your theme, modify this line:
      <span><?php echo $item->title;?></span>

      Replace with this:
      <?php $split = explode('||', $item->title, 2);
      $title= $split[0]."<em>".$split[1]."</em>"; ?>
      <span><?php echo $title; ?></span>

      Then, in the menu item title, just add a double pipe ('||') between the title and subtitle.

      Obviously, you'd need to style for that contained <em> within the stylesheet.
      Hey, just had a quick question about this. Where exactly is this 'layout.php' file? Thanks a lot!

Time to create page: 0.075 seconds