Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • General
  • Design & Templates
  •  
  • modify wayfinder#

  • 38537
    25

    zapzarap Reply #1, 3 months, 2 weeks ago

    Reply
    • Link to this post#1
    hey there,

    i have a navigation in this form:

    page
    + site 1
    + + site 4
    + + site 5
    + + site 6
    + site 2
    + + site 7
    + + site 8
    + + site 9
    + site 3
    + + site 10
    + + site 11
    + + site 12

    for example. when i'm on site 5. i became the subnavigation from site 1. thats ok so.
    the link is in this form:
    <li><a href="" title="">site x</a></li>


    but i need in the a-tag a class, with numbers from 0 to ...

    so the subnavigation should became a numbering..

    hmh, u know what i mean?

    i need a link in this form:
    <li><a href="" title="site 4" class="slide1">site 4</a></li>
    <li><a href="" title="site 5" class="slide2">site 5</a></li>
    <li><a href="" title="site 6" class="slide3">site 6</a></li>


  • 1778
    604

    anso Reply #2, 3 months, 2 weeks ago

    Reply
    • Link to this post#2
    Hi,
    Have a look at http://www.gregorysmart.com/2009/05/02/modx-wayfinder-snippet-e-book/

    and especially to the "The Almost Complete Guide to Creating Menus in MODx using Wayfinder" pdf file...

    I think it will be very helpful...
    Cheers


  • 4172
    1,626
    xdbedit - create your own CMP to edit custom-tables with TV-input-types
    MIGX (multiItemsGridTV, sortable multirecord-TV)
    formit2db with autocreate schema&classes
    formit2resource
    custom-tv-input-type for revo:imagelistTV
    quickCMP - CMP for creating simple backend-'modules' per snippets
    bloX/Xedit - Ressource-Listing and frontend-sorting/editing....

    Bruno17 Reply #3, 3 months, 2 weeks ago

    Reply
    • Link to this post#3
    I'm not sure, if wayfinder has a counter for its items, I think not.
    But you can try to use getResources for your subResources and its
    [[+idx]]
    placeholder


  • 1778
    604

    anso Reply #4, 3 months, 2 weeks ago

    Reply
    • Link to this post#4
    @bruno, yes I think it has one (from the guide)
    The [+wf.id+] placeholder
    The unique id created by Wayfinder using the &rowIdPrefix will be inserted where the [+wf.id+] placeholder appears in you Wayfinder template. Hence, you need to be careful where you place this placeholder for your menu items’ ids to be placed in the correct position. You also need to place it in the correct Wayfinder template. For instance, you probably do not want to have it in the &outerTpl since this template is not used to create menu row level items. It is also not very helpful to place it in a template that will only be used in certain cases and not others, for instance within the &hereTpl. You therefore want to probably use this placeholder in your &rowTpl or &innerRowTpl.

    Cheers


  • 4172
    1,626
    xdbedit - create your own CMP to edit custom-tables with TV-input-types
    MIGX (multiItemsGridTV, sortable multirecord-TV)
    formit2db with autocreate schema&classes
    formit2resource
    custom-tv-input-type for revo:imagelistTV
    quickCMP - CMP for creating simple backend-'modules' per snippets
    bloX/Xedit - Ressource-Listing and frontend-sorting/editing....

    Bruno17 Reply #5, 3 months, 2 weeks ago

    Reply
    • Link to this post#5
    [[+wf.id]] 


    will show the resource-id, but not a counter-like value, which begins at 1 at every parent.
    another idea may be to use the menuindex-placeholder.





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
Bruno17, anso, zapzarap

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy