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
  • International
  • Internationalization
  •  
  • [Solved] Adding cultureKey to links (Revo)#

  • 26555
    38

    sebwebdev Reply #1, 1 year, 6 months ago

    Reply
    • Link to this post#1
    I have set up multi-language site using the system variable cultureKey for switching the language (Revolution 2.0.3pl).
    The URLs are build up like this:
    http://www.example.com/de/my-page
    http://www.example.com/en/my-page

    What I want to do now is to integrate the cultureKey vaiable into the default placeholder.
    Of course in template I could do sth like this:
    <a href="/[[++cultureKey]]/[[~LINK_ID]]">here you go</a>


    But I would like to call just the link placeholder.
    And the correct URLs should be generated with Wayfinder as well.
    How can I achieve this?


  • 26555
    38

    sebwebdev Reply #2, 1 year, 6 months ago

    Reply
    • Link to this post#2
    Any thoughts on this?
    What would be the way to go here.


  • 26555
    38

    sebwebdev Reply #3, 1 year, 6 months ago

    Reply
    • Link to this post#3
    I solved this issue through manually prefixing all my URLs with .
    To /core/components/wayfinder/configs/default.inc.php I added the following line:
    <?php
    $rowTpl = '@CODE:<li[[+wf.classes]]><a href="/[[++cultureKey]]/[[+wf.link]]" title="[[+wf.title]]">[[+wf.linktext]]</a>[[+wf.wrapper]]</li>';
    ?>


  • 37330
    9

    t_carlton Reply #4, 5 months, 3 weeks ago

    Reply
    • Link to this post#4
    Thanks for posting your response sebwebdev. This helped me a lot in my own problem with chunks. I didn't realize there was a 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:
sebwebdev, t_carlton

 
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