echo '<form name="form" action="[~5~]" method="get"><input type="text" name="q" /> <input type="submit" name="Submit" value="Search" /></form>';
action="[[~[[*id]]]]" redirects me to: http://www.mysite.com/modx/index.php?q=rembrandt&Submit=Search action="index.php?id=5" redirects me to: http://www.mysite.com/modx/index.php?q=rembrandt&Submit=Search action="[~5~]" redirects me to: http://mysite.com/modx/~5~?q=rembrandt&Submit=Search action="[[~[[*id]]]]" redirects me to: http://www.mysite.com/modx/index.php?q=rembrandt&Submit=Search
[ed. note: strooman last edited this post 12 years, 10 months ago.]
[[~5]]
[[!~[[*id]]]]
$output = '<form name="form" action="[[~5]]" method="get"><input type="text" name="q" /> <input type="submit" name="Submit" value="Search" /></form>'; /* ... */ return $output;
$docId = $modx->resource->get('id');
$url = $modx->makeUrl($docId, "", "", "full");
$output = '<form name="form" action="' . $url . '" method="get"><input type="text" name="q" />
<input type="submit" name="Submit" value="Search" /></form>';




<html>
<head>
</head>
<body>
<p>Enter a name</p>
[[!GetArtist]]
</body>
</html><p>Enter a name</p>
<form name="form" action="[[~5]]"
$docId = $modx->resource->get('id');
$url = $modx->makeUrl($docId, "", "", "full");
$output = '
<form name="form" action="' . $url . '" method="get">
<input type="text" name="q" />
<input type="submit" name="Submit" value="Search" /></form>';
$docId = $modx->getOption('landing',$scriptProperties,$modx->resource->get('id'));[[!yourSnippet? &landing=`5`]]
$docId = $modx->resource->get('id');
$url = $modx->makeUrl($docId, "", "", "full");
$output = '
<form name="form" action="' . $url . '" method="get">
<input type="text" name="q" />
<input type="submit" name="Submit" value="Search" /></form>';
but with no result.
return $output;
<html>
<head>
</head>
<body>
<p>Enter a name</p>
[[!GetArtist]]
</body>
</html>
$docId = $modx->resource->get('id');
$url = $modx->makeUrl($docId, "", "", "full");
return $output = '
<form name="form" action="' . $url . '" method="get">
<input type="text" name="q" />
<input type="submit" name="Submit" value="Search" /></form>';
$docId = $modx->getOption('landing',$scriptProperties,$modx->resource->get('id'));[[!yourSnippet? &landing=`5`]]
<base href="[[++site_url]]">