-
☆ A M B ☆
- 3,112 Posts
Quote from: poiuyt at Apr 20, 2016, 11:34 AMHi,
I'm not sure how to use Lingua with wayfinder, can you please help with the following example, if I show the code as follows
[[Wayfinder? &startId=`0` &level=`1` &includeDocs=`315,189,232,812,164,7,6` &outerClass=`nav nav-pills shortcuts`&rowTpl=`tplMainNavItem` ]]
and the tplMainNavItem has the following value:
<li id="m[[+id]]" class="[[+classes]]"><a href="[[~[[+id]]]]" title="[[+pagetitle]]">
[[lingua.getValue? &id=`[[+id]]` &field=`pagetitle`]]</a></li>
how do I get Lingua display the translated names of the pages?
Thanks
Try to uncache the snippets
[[
!Wayfinder? ...
[[
!lingua.getValue? ...
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
-
☆ A M B ☆
- 3,112 Posts
Quote from: aaantz at May 24, 2016, 07:44 AMQuote from: wintertribe at May 24, 2016, 07:22 AM
2. Is it possible to hide some resources in lang version? So that the structure of site will differ from Main language.
Yes, this is possible: https://github.com/Bruno17/linguaPdoTools
Hmm... I missed this extra!
Rico
Genius is one percent inspiration and ninety-nine percent perspiration.
Thomas A. Edison
MODx is great, but knowing how to use it well makes it perfect!
www.virtudraft.com
Security, security, security! |
Indonesian MODx Forum |
MODx Revo's cheatsheets |
MODx Evo's cheatsheets
Author of
Easy 2 Gallery 1.4.x,
PHPTidy,
spieFeed,
FileDownload R,
Upload To Users CMP,
Inherit Template TV,
LexRating,
ExerPlan,
Lingua,
virtuNewsletter,
Grid Class Key,
SmartTag,
prevNext
Maintainter/contributor of
Babel
Because it's hard to follow all topics on the forum, PING ME ON TWITTER
@_goldsky if you need my help.
You should check it out, works great! You can build a site that behaves pretty much like it does with babel on the frontend.
Hi,
Where can i get linguaPdoTools transport package? Don't find it in package management or MODX Extras.
[ed. note: wintertribe last edited this post 10 years, 3 months ago.]
Hi again,
I followed installation instructions, but get error after i change pdoTools system setting pdoFetch.class to 'pdotools.linguafetch'
"Could not load class: linguafetch from pdotools.linguafetch."
This really is a fantastic component! I've just about got my whole site adjusted to work with Lingua, including MIGX and some fairly complex templates.
We will eventually have the site translated into 5 or 6 languages, so the next big step is getting it to integrate with the site search. I'm struggling to get it working with either SimpleSearch or AdvSearch, both of which supposedly work with custom tables. Has anyone managed to achieve this?