0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MODXメモ

Last updated at Posted at 2021-01-25

MODXメモ

随時更新予定

ID指定で呼び出す

[*見出し@6*]

ID:6のテンプレート変数「見出し」を呼ぶ

URLを取得

[~306~]

ID:306のURLを取得

コメントアウト

<!--@IGNORE:BEGIN-->
内容
<!--@IGNORE:END-->

HTMLソースにも表示されないコメントアウト

条件分岐

<@IF: [*メール*]>
<a href="mailto:[*メール*]">[*メール*]</a>
<@ELSE>
なし
<@ENDIF>

テンプレート変数「メール」の中身が空なら「なし」と表示する

スニペット<作成系>

リソースIDからURLを取得

$url = $modx->makeUrl($docid, '', '', 'full');

結果:
https://~~
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?