de-vraag
  • 質問
  • タグ
  • ユーザー
通知:
報酬:
登録
登録すると、質問に対する返答やコメントが通知されます。
ログイン
すでにアカウントをお持ちの方は、ログインして新しい通知を確認してください。
追加された質問、回答、コメントには報酬があります。
さらに
ソース
編集
 arvinsim
arvinsim
質問

{exp:channel:form}でグリッドテーブルヘッダーを変換できる方法はありますか?

{exp:channel:form}のグリッドテーブル内でデータを変換する方法はありますか?

私は翻訳される表の見出しを変更したい。

また、ボタンを変更して、新しい行を翻訳可能な単語(「行の追加」など)に追加する必要があります。

これはGridで可能ですか?あるいは、私たちはチャンネルに入力したものにこだわっていますか?

EDIT:

私の質問はチャンネルフォームタグ内の公開フォームにのみ適用されます。私は、EEコントロールパネルで動作するソリューションを探しているわけではありません。

1 2014-02-12T06:28:09+00:00 2
 arvinsim
arvinsim
編集された質問 4日 3月 2014 в 11:57
ExpressionEngine
grid
Chris Marasti-Georg
2日 3月 2014 в 7:08
2014-03-02T19:08:13+00:00
さらに
ソース
編集
#56794094

序文:これは単なるアイデアです。

Brian Litzingerの出版社( http://devot-ee.com/add-ons/publisher )を exp:channel:form に追加してください。

ヘッダーとボタンを変更するには、グリッドをチャンネルフォームに追加するには、レンダリングされたコードをつかんでテンプレートに直接貼り付けます(フィールドにHTMLを生成させるのではなく)。その後、Publisherの言語タグを使用してヘッダーとボタン。

たとえば、チャンネルフォームを作成してグリッドを表示するように指示することがあります。私はそれが生成することがわかりますコードを見て...

Well you could now change that to use Publisher "Phrases" (https://boldminded.com/add-ons/publisher/phrases)

  Column 1 Column 2
 
<input type="text" name="testing[rows][new_row_0][col_id_1]" value="" dir="ltr" field_content_type="all" maxlength="256" />
Delete Row <input type="text" name="testing[rows][new_row_0][col_id_2]" value="" dir="ltr" field_content_type="all" maxlength="256" />
You have not added any rows of data yet. Add some data?
 
Add Row

You would then just set those phrases in your Publisher's control panel and it should do the job.

Bare in mind: this is a bit of a hacky solution, and if Grid's markup changes you'll have to rinse and repeat.

  {phrase:form_col1} {phrase:form_col1}
 
<input type="text" name="testing[rows][new_row_0][col_id_1]" value="" dir="ltr" field_content_type="all" maxlength="256" />
{phrase:form_delete} <input type="text" name="testing[rows][new_row_0][col_id_2]" value="" dir="ltr" field_content_type="all" maxlength="256" />
{phrase:form_no-rows} {phrase:form_add-data}
 
{phrase:form_add-row}
1
0
clabacchio
18日 5月 2016 в 5:15
2016-05-18T05:15:17+00:00
さらに
ソース
編集
#56794095

それは2014年の問題だと分かっています。これを見ている人が将来的に役立つように、「低置換」を使用できます。例:

{exp:low_replace find="You have not added any rows of data yet|Add some data" replace="No agregaste informacion|Agregar" multiple="yes"}
{field:estudios_en_curso_y_terminados}
{/exp:low_replace}
0
0
質問の追加
カテゴリ
すべて
技術情報
文化・レクリエーション
生活・芸術
科学
プロフェッショナル
事業内容
ユーザー
すべて
新しい
人気
1
Roxana Elizabeth CASTILLO Avalos
登録済み 6日前
2
Hideo Nakagawa
登録済み 1週間前
3
Sergiy Tytarenko
登録済み 1週間前
4
shoxrux azadov
登録済み 1週間前
5
Koreets Koreytsev
登録済み 1週間前
© de-vraag :年
ソース
expressionengine.stackexchange.com
ライセンス cc by-sa 3.0 帰属