0
Welcome Guest! Login
0 items Join Now

Anchors

    • Mr Toast's Avatar
    • Mr Toast
    • Sr. Rocketeer
    • Posts: 152
    • Thanks: 0
    • Wanderer, philanderer, occasional web monkey

    Anchors

    Posted 14 years 8 months ago
    • Hey does anyone know if there a way to make menu links scroll to anchors smoothly, so that the site can be one lone page... nice for ipad users?
    • Cheers,
      Mr Toast says... keep toasting!
    • Ben Harold's Avatar
    • Ben Harold
    • Sr. Rocketeer
    • Posts: 231
    • Thanks: 1
    • Freelance Developer

    Re: Anchors

    Posted 14 years 8 months ago
    • If you're talking about making all of data from all of the menu items into one single page, that is quite beyond the scope of Joomla. Each time Joomla loads a page, it's using a component to render the content. Depending on the menu item that the user has selected, different controllers are used, calling different data through different data models and views. Components are mutually exclusive from the purview of the end-user. That being said, there is always a way to do everything. I suppose you could probably create a component that would go through your menu items, determine which component, controller, data model and view is being requested for each item, instantiate the appropriate controllers and get the appropriate data from the appropriate data model; you're talking about a hell of a lot of work...complex php programming. It sounds like a fun project though.
    • Mr Toast's Avatar
    • Mr Toast
    • Sr. Rocketeer
    • Posts: 152
    • Thanks: 0
    • Wanderer, philanderer, occasional web monkey

    Re: Anchors

    Posted 14 years 8 months ago
    • Hey Ben thanks for the detailed response!
    • Cheers,
      Mr Toast says... keep toasting!
    • E.Design's Avatar
    • E.Design
    • Rocketeer
    • Posts: 58
    • Thanks: 17

    Re: Anchors

    Posted 11 years 2 months ago
    • I am searching for this same solution, but upon finding this I feel the need to call out that response as being irrelevant. Sure, what Ben stated is true, however its VERY misleading to say that you cant have a one page website with Joomla. Being that all Rockettheme templates have a good number of sections (feature, utility, maintop, etc) you can create custom html modules for article content and create any other modules as well and assign them to the various sections. You can then link to the multiple sections using their section ids (#rt-utility, #rt-feature...) as anchors.

      The question is, how do we get it to scroll down smoothly...?
    • Last Edit: 11 years 2 months ago by E.Design.
    • The following users have thanked you: mo

    • Ben Lee's Avatar
    • Ben Lee
    • Elite Rocketeer
    • Posts: 4193
    • Thanks: 42

    Re: Anchors

    Posted 11 years 2 months ago
    • Henning's Avatar
    • Henning
    • Preeminent Rocketeer
    • Posts: 29362
    • Thanks: 954
    • Volunteer

    Re: Anchors

    Posted 11 years 2 months ago
    • E.Design's Avatar
    • E.Design
    • Rocketeer
    • Posts: 58
    • Thanks: 17

    Re: Anchors

    Posted 11 years 2 months ago
    • I already have my firstborn's first name picked out, but Henning might be a good middle name. :D Thanks!!!

      Umm... Would it be too much to ask if the menu items can also change color when you're in that section?

      Like this: aetherthemes.com/visia-joomla/index.php/home

      Thanks a million for the help!

Time to create page: 0.079 seconds