Textpattern Forum

You are not logged in. Register | Login | Help

#1011 2008-10-17 18:27:43

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,390
Website

Re: MLP - The Multi-Lingual Publishing Pack

Two more questions, if they have been answered before, please just say so and I’ll search once again… (+1 from me for a Textbook page!)

  1. Newly created articles don’t show up in the MLP > articles tab, only the (one) article that already existed when MLP was installed is displayed there (v0.8.7, local install).
  2. Is there a way to enter snippets in javascript code? I’d like to localize the text in this line: closeTip : "Click to close", but if I replace ‘Click to close’ with ‘##closetip##’, that’s exactly what it displays. (The js code is in the head section of my page.)

<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#1012 2008-10-18 01:12:11

net-carver
Admin
From: UK
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

Els

Re…

1) Is that site on the internet? If so, could you allow me to login and track this down.

2) If you’re JS not in an external file but in a page/form then you should be able to do it (I think.)


Steve
Textile | My plugins on GitHub | @netcarver

Offline

#1013 2008-10-18 10:46:29

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,390
Website

Re: MLP - The Multi-Lingual Publishing Pack

Steve, thanks for replying.

  1. No, unfortunately not, I’m rebuilding an existing site (that has to remain live until my rebuild is finished) and I can’t develop the new site in a subdomain because MLP doesn’t work in subdomains (I think that is still the case? I didn’t actually try it). So I’m developing it locally. I’ll try if I can reproduce it on a live install, if so I’ll report back.
  2. It doesn’t work if the snippet is put directly in the javascript (doesn’t matter if it’s on a page or in a form), the snippet also doesn’t show up in the Snippets > Pages/Forms tab. But I’ve found a way :) I put the snippet in a form and have this in the script (in the head section of the page): closeTip : "<txp:output_form form="js_flyout" />", …and that works!

Edit: re #1: I copied the site to a subdomain, it appears to work exactly like the local install. I will send you a login.

Last edited by Els (2008-10-18 13:33:40)


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#1014 2008-10-20 05:42:15

net-carver
Admin
From: UK
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

All

Els’ problem is with a very new dev4 version of Txp. Wet has already pointed out one change in the code that affects the MLP Pack but the recent addition of labels for the title and body fields on the write tab broke the insertion point for MLP’s language and group variables in Els’ setup leading to the postings above. This is tentatively fixed in my development version and I hope to post it (along with a few other updates) soon.


Steve
Textile | My plugins on GitHub | @netcarver

Offline

#1015 2008-10-20 05:45:57

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,116
Website

Re: MLP - The Multi-Lingual Publishing Pack

Could we provide any hooks in the markup to prevent such havoc in the future?

Offline

#1016 2008-10-20 05:58:25

net-carver
Admin
From: UK
Registered: 2006-03-08
Posts: 1,648

Re: MLP - The Multi-Lingual Publishing Pack

Robert

Hi, that was a fast reply! :)

As this is not really an MLP-only thing but potentially a more generic plugin issue, perhaps either a new thread or the plugin dev mailing list would be a good place to bat this around? I think other plugin authors might be able to contribute to such a discussion.


Steve
Textile | My plugins on GitHub | @netcarver

Offline

#1017 2008-10-20 10:45:04

wet
Developer
From: Lenzing, Austria
Registered: 2005-06-06
Posts: 3,116
Website

Re: MLP - The Multi-Lingual Publishing Pack

Offline

#1018 2008-10-20 19:09:20

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: MLP - The Multi-Lingual Publishing Pack

Got the Dutch and English site nearly finished, this plug-in is soooo cool!!! But can’t solve a small URL problem.

Example:
I have a section called “What” in English and “Wat” in Dutch, but the URL that is output in English is "mysite.com/en/wat" and I am trying to get "mysite.com/en/what"

I did my homework and found thread back on page 27 that suggested the use of <txp:section_list sections="wat" /> but this still outputs the dutch section name.

The section has the correct English translation?

What am i missing?

Last edited by Timid&friendly (2008-10-20 19:21:51)


I think, therefore I AM, … … er … I think :-?

Offline

#1019 2008-10-20 19:23:56

Els
Admin
From: The Netherlands
Registered: 2004-06-06
Posts: 7,390
Website

Re: MLP - The Multi-Lingual Publishing Pack

Timid&friendly wrote:

What am i missing?

#009 perhaps? ;)

On the site I’m currently working on I worked around it by using the /title permlink mode.

Last edited by Els (2008-10-20 19:25:14)


<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields

Offline

#1020 2008-10-20 21:07:25

Timid&friendly
Member
From: The Netherlands
Registered: 2006-05-28
Posts: 252
Website

Re: MLP - The Multi-Lingual Publishing Pack

sorry but could you elaborate with an example,

<li id="wat"><a href="<txp:site_url />##page_wat##" title="##page_wat_title##">##page_wat_title##<span></span></a></li>
<li id="wat"><txp:section_list sections="wat" /><span></span></li> -->
<li id="wat"><span><txp:section_list sections="wat" title="1" link="1" /></span></li>
<li id="wat"><span><txp:section name="wat" title="1" link="1" /></span></li>

tried this tooo00

<li id="wat"><span><txp:permlink><txp:section name="wat" title="1" /></txp:permlink></span></li>
…but apparently the context is wrong for the Permlink even though this is in an article form?

Last edited by Timid&friendly (2008-10-20 21:12:05)


I think, therefore I AM, … … er … I think :-?

Offline

Board footer

Powered by FluxBB